Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[mb-commits] r8247 - in libmusicbrainz/branches/xmlws: examples src: msg#00250

audio.musicbrainz.cvs

Subject: [mb-commits] r8247 - in libmusicbrainz/branches/xmlws: examples src

Author: luks
Date: 2006-07-22 19:29:52 +0000 (Sat, 22 Jul 2006)
New Revision: 8247

Modified:
libmusicbrainz/branches/xmlws/examples/findartist.cpp
libmusicbrainz/branches/xmlws/examples/findtrack.cpp
libmusicbrainz/branches/xmlws/examples/getartist.cpp
libmusicbrainz/branches/xmlws/examples/getartist_c.c
libmusicbrainz/branches/xmlws/examples/getuser.cpp
libmusicbrainz/branches/xmlws/src/webservice.cpp
Log:
Removing WebService::init() from the examples. Compatibility with libneon 0.25

Modified: libmusicbrainz/branches/xmlws/examples/findartist.cpp
===================================================================
--- libmusicbrainz/branches/xmlws/examples/findartist.cpp 2006-07-22
18:52:44 UTC (rev 8246)
+++ libmusicbrainz/branches/xmlws/examples/findartist.cpp 2006-07-22
19:29:52 UTC (rev 8247)
@@ -16,8 +16,6 @@
int
main(int argc, char **argv)
{
- WebService::init();
-
if (argc < 2) {
cout << "Usage: findartist 'artist name'" << endl;
return 1;

Modified: libmusicbrainz/branches/xmlws/examples/findtrack.cpp
===================================================================
--- libmusicbrainz/branches/xmlws/examples/findtrack.cpp 2006-07-22
18:52:44 UTC (rev 8246)
+++ libmusicbrainz/branches/xmlws/examples/findtrack.cpp 2006-07-22
19:29:52 UTC (rev 8247)
@@ -16,8 +16,6 @@
int
main(int argc, char **argv)
{
- WebService::init();
-
if (argc < 2) {
cout << "Usage: findtrack 'track name' ['artist name']" <<
endl;
return 1;

Modified: libmusicbrainz/branches/xmlws/examples/getartist.cpp
===================================================================
--- libmusicbrainz/branches/xmlws/examples/getartist.cpp 2006-07-22
18:52:44 UTC (rev 8246)
+++ libmusicbrainz/branches/xmlws/examples/getartist.cpp 2006-07-22
19:29:52 UTC (rev 8247)
@@ -16,8 +16,6 @@
int
main(int argc, char **argv)
{
- WebService::init();
-
if (argc < 2) {
cout << "Usage: getartist 'artist id'" << endl;
return 1;

Modified: libmusicbrainz/branches/xmlws/examples/getartist_c.c
===================================================================
--- libmusicbrainz/branches/xmlws/examples/getartist_c.c 2006-07-22
18:52:44 UTC (rev 8246)
+++ libmusicbrainz/branches/xmlws/examples/getartist_c.c 2006-07-22
19:29:52 UTC (rev 8247)
@@ -21,8 +21,6 @@
return 1;
}

- mb_webservice_init();
-
query = mb_query_new(NULL, NULL);

artist = mb_query_get_artist_by_id(query, argv[1], NULL);

Modified: libmusicbrainz/branches/xmlws/examples/getuser.cpp
===================================================================
--- libmusicbrainz/branches/xmlws/examples/getuser.cpp 2006-07-22 18:52:44 UTC
(rev 8246)
+++ libmusicbrainz/branches/xmlws/examples/getuser.cpp 2006-07-22 19:29:52 UTC
(rev 8247)
@@ -17,8 +17,6 @@
int
main(int argc, char **argv)
{
- WebService::init();
-
string username;
cout << "User name: ";
cin >> username;

Modified: libmusicbrainz/branches/xmlws/src/webservice.cpp
===================================================================
--- libmusicbrainz/branches/xmlws/src/webservice.cpp 2006-07-22 18:52:44 UTC
(rev 8246)
+++ libmusicbrainz/branches/xmlws/src/webservice.cpp 2006-07-22 19:29:52 UTC
(rev 8247)
@@ -79,6 +79,8 @@
systemProxyHost = string(uri.host);
if (uri.port)
systemProxyPort = uri.port;
+// neon 0.26
+#ifdef NE_FEATURE_I18N
if (uri.userinfo) {
char *pos = strchr(uri.userinfo, ':');
if (pos) {
@@ -90,6 +92,20 @@
systemProxyUserName =
string(uri.userinfo);
}
}
+// neon 0.25
+#else
+ if (uri.authinfo) {
+ char *pos = strchr(uri.authinfo, ':');
+ if (pos) {
+ *pos = '\0';
+ systemProxyUserName =
string(uri.authinfo);
+ systemProxyPassword = string(pos + 1);
+ }
+ else {
+ systemProxyUserName =
string(uri.authinfo);
+ }
+ }
+#endif
}
ne_uri_free(&uri);
}


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation