[libdmapsharing] Allow dmap-mdns-*-dnssd.c to compile Signed-off-by: W. Michael Petullo <mike flyn org>



commit 5ea1402768195750dd5a8a4dbf0929ad15dee425
Author: W. Michael Petullo <mike flyn org>
Date:   Tue Sep 7 23:30:32 2010 -0500

    Allow dmap-mdns-*-dnssd.c to compile
    Signed-off-by: W. Michael Petullo <mike flyn org>

 ChangeLog                                  |    4 ++++
 configure.ac                               |    4 ++--
 libdmapsharing/dmap-mdns-browser-dnssd.c   |    8 ++++++++
 libdmapsharing/dmap-mdns-publisher-dnssd.c |   15 ++++++++++-----
 4 files changed, 24 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 74a18ed..95ef0c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+07 September 2010 W. Michael Petullo <mike flyn org>
+
+	* Allow dmap-mdns-*-dnssd.c to compile.
+
 06 September 2010 W. Michael Petullo <mike flyn org>
 
 	* Fix serving to iTunes 10.
diff --git a/configure.ac b/configure.ac
index 959fe8f..06dd066 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,8 +1,8 @@
-AC_INIT(libdmapsharing, 2.1.1)
+AC_INIT(libdmapsharing, 2.1.2)
 
 dnl when going to/from release please set the nano (fourth number) right !
 dnl releases only do Wall, cvs and prerelease does Werror too
-AS_VERSION(libdmapsharing, LIBDMAPSHARING, 2, 1, 1, LIBDMAPSHARING_CVS="no", LIBDMAPSHARING_CVS="yes")
+AS_VERSION(libdmapsharing, LIBDMAPSHARING, 2, 1, 2, LIBDMAPSHARING_CVS="no", LIBDMAPSHARING_CVS="yes")
 
 dnl FIXME:
 dnl would like to automate this off the above definitions, but API might be 2.2 with version 2.1.
diff --git a/libdmapsharing/dmap-mdns-browser-dnssd.c b/libdmapsharing/dmap-mdns-browser-dnssd.c
index 1132dad..f652f84 100644
--- a/libdmapsharing/dmap-mdns-browser-dnssd.c
+++ b/libdmapsharing/dmap-mdns-browser-dnssd.c
@@ -38,3 +38,11 @@ dmap_mdns_browser_start (DMAPMdnsBrowser *browser,
 	g_error ("Not implemented");
 	return FALSE;
 }
+
+gboolean
+dmap_mdns_browser_stop (DMAPMdnsBrowser *browser,
+                        GError **error)
+{
+	g_error ("Not implemented");
+	return FALSE;
+}
diff --git a/libdmapsharing/dmap-mdns-publisher-dnssd.c b/libdmapsharing/dmap-mdns-publisher-dnssd.c
index 4e83328..e02a86b 100644
--- a/libdmapsharing/dmap-mdns-publisher-dnssd.c
+++ b/libdmapsharing/dmap-mdns-publisher-dnssd.c
@@ -136,14 +136,19 @@ dmap_mdns_publisher_set_password_required (DmapMdnsPublisher *publisher,
 
 gboolean
 dmap_mdns_publisher_publish (DmapMdnsPublisher *publisher,
-                                const char          *name,
-                                guint                port,
-                                const char          *type_of_service,
-                                gboolean             password_required,
-                                GError             **error)
+                             const char          *name,
+                             guint                port,
+                             const char          *type_of_service,
+                             gboolean             password_required,
+			     gchar              **txt_records,
+                             GError             **error)
 {
 	int dns_err;
 
+	/* FIXME: does not do anything with txt_records yet */
+	if (txt_records != NULL)
+		g_error ("dmap_mdns_publisher_publish() can not handle txt_records yet");
+
         publisher_set_name_internal (publisher, name, NULL);
         publisher_set_port_internal (publisher, port, NULL);
         publisher_set_type_of_service_internal (publisher, type_of_service, NULL);



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