Commit 59782ef8 authored by W. Michael Petullo's avatar W. Michael Petullo
Browse files

.*_connection_new now takes a guint port instead of an int port


Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent 384ff08b
Realtime transcode: must g_input_stream_close what is returned from
daap_record_read, unless I change API (see also dmapd.c)
service-added callback takes a void *, not nice with Vala see also
dpapview.vala.
Reduce memory needed to send entire listing to client:
get bdb dmapd backend working well
review changes
......
......@@ -165,7 +165,7 @@ daap_connection_class_init (DAAPConnectionClass *klass)
DAAPConnection *
daap_connection_new (const char *name,
const char *host,
int port,
guint port,
gboolean password_protected,
DMAPDb *db,
DMAPRecordFactory *factory)
......
......@@ -87,7 +87,7 @@ GType daap_connection_get_type (void);
DAAPConnection * daap_connection_new (const char *name,
const char *host,
int port,
guint port,
gboolean password_protected,
DMAPDb *db,
DMAPRecordFactory *factory);
......
......@@ -1128,7 +1128,7 @@ handle_logout (DMAPConnection *connection,
DMAPConnection *
dmap_connection_new (const char *name,
const char *host,
int port,
guint port,
gboolean password_protected,
DMAPDb *db,
DMAPRecordFactory *factory)
......
......@@ -147,11 +147,11 @@ typedef void (* DMAPResponseHandler) (DMAPConnection *connection,
GType dmap_connection_get_type (void);
DMAPConnection * dmap_connection_new (const char *name,
const char *host,
int port,
gboolean password_protected,
DMAPDb *db,
DMAPRecordFactory *factory);
const char *host,
guint port,
gboolean password_protected,
DMAPDb *db,
DMAPRecordFactory *factory);
gboolean dmap_connection_is_connected (DMAPConnection *connection);
void dmap_connection_setup (DMAPConnection *connection);
......
......@@ -153,7 +153,7 @@ dpap_connection_class_init (DPAPConnectionClass *klass)
DPAPConnection *
dpap_connection_new (const char *name,
const char *host,
int port,
guint port,
gboolean password_protected,
DMAPDb *db,
DMAPRecordFactory *factory)
......
......@@ -87,7 +87,7 @@ GType dpap_connection_get_type (void);
DPAPConnection * dpap_connection_new (const char *name,
const char *host,
int port,
guint port,
gboolean password_protected,
DMAPDb *db,
DMAPRecordFactory *factory);
......
......@@ -58,11 +58,8 @@ private class DPAPCopy {
return true;
}
private void service_added_cb (void *service) {
/* FIXME: fix void * argument, see libdmapsharing TODO: */
DMAP.MdnsBrowserService *FIXME = service;
/* FIXME: fix int cast: should not be requried: */
connection = (DMAP.Connection) new DPAP.Connection (FIXME->service_name, FIXME->host, (int) FIXME->port, false, db, factory);
private void service_added_cb (DMAP.MdnsBrowserService *service) {
connection = (DMAP.Connection) new DPAP.Connection (service->service_name, service->host, service->port, false, db, factory);
connection.connect (connected_cb);
}
......
......@@ -49,11 +49,8 @@ private class DPAPViewer {
return true;
}
private void service_added_cb (void *service) {
/* FIXME: fix void * argument, see libdmapsharing TODO: */
DMAP.MdnsBrowserService *FIXME = service;
/* FIXME: fix int cast: should not be requried: */
connection = (DMAP.Connection) new DPAP.Connection (FIXME->service_name, FIXME->host, (int) FIXME->port, false, db, factory);
private void service_added_cb (DMAP.MdnsBrowserService *service) {
connection = (DMAP.Connection) new DPAP.Connection (service->service_name, service->host, service->port, false, db, factory);
connection.connect (connected_cb);
}
......
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