Commit 6bea3946 authored by W. Michael Petullo's avatar W. Michael Petullo
Browse files

Move test code to new DMAPConnection API, fix typo in dmap-connection.c.


Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent 44d77603
......@@ -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);
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment