[libdmapsharing] Move test code to new DMAPConnection API, fix typo in dmap-connection.c. Signed-off-by: W. Michael P



commit 6bea3946486d28ec6bde27c00045dc70a90b5736
Author: W. Michael Petullo <mike flyn org>
Date:   Thu Mar 11 21:28:07 2010 -0500

    Move test code to new DMAPConnection API, fix typo in dmap-connection.c.
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-connection.c |    2 +-
 tests/test-dmap-client.c         |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libdmapsharing/dmap-connection.c b/libdmapsharing/dmap-connection.c
index 41f8707..7335909 100644
--- a/libdmapsharing/dmap-connection.c
+++ b/libdmapsharing/dmap-connection.c
@@ -1302,7 +1302,7 @@ dmap_connection_connect (DMAPConnection        *connection,
 
 	connection->priv->session = soup_session_async_new ();
 
-	connection->priv->base_uri = soup_usr_new (NULL);
+	connection->priv->base_uri = soup_uri_new (NULL);
 	soup_uri_set_scheme (connection->priv->base_uri, SOUP_URI_SCHEME_HTTP);
 	soup_uri_set_host (connection->priv->base_uri, connection->priv->host);
 	soup_uri_set_port (connection->priv->base_uri, connection->priv->port);
diff --git a/tests/test-dmap-client.c b/tests/test-dmap-client.c
index 3b86fc2..ff62ea9 100644
--- a/tests/test-dmap-client.c
+++ b/tests/test-dmap-client.c
@@ -87,13 +87,13 @@ service_added_cb (DMAPMdnsBrowser *browser,
         if (factory == NULL) {
    	    g_error ("Error creating record factory");
         }
-        conn = DMAP_CONNECTION (daap_connection_new (service->name, service->host, service->port, FALSE, db, factory));
+        conn = DMAP_CONNECTION (dmap_connection_new (service->name, service->host, service->port, FALSE, db, factory));
     } else {
         factory = DMAP_RECORD_FACTORY (test_dpap_record_factory_new ());
         if (factory == NULL) {
    	    g_error ("Error creating record factory");
         }
-        conn = DMAP_CONNECTION (dpap_connection_new (service->name, service->host, service->port, FALSE, db, factory));
+        conn = DMAP_CONNECTION (dmap_connection_new (service->name, service->host, service->port, FALSE, db, factory));
     }
     dmap_connection_connect (DMAP_CONNECTION (conn), (DMAPConnectionCallback) connected_cb, db);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]