[libdmapsharing] Move definition of service_type_name to header file Signed-off-by: W. Michael Petullo <mike flyn org



commit ef6737c0b3ea221abb1f59be406c98355a3f84f6
Author: W. Michael Petullo <mike flyn org>
Date:   Wed Mar 30 22:25:39 2011 -0500

    Move definition of service_type_name to header file
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-mdns-browser-avahi.c |    7 -------
 libdmapsharing/dmap-mdns-browser-dnssd.c |    7 -------
 libdmapsharing/dmap-mdns-browser.h       |    7 +++++++
 3 files changed, 7 insertions(+), 14 deletions(-)
---
diff --git a/libdmapsharing/dmap-mdns-browser-avahi.c b/libdmapsharing/dmap-mdns-browser-avahi.c
index 9d27fe0..12890fc 100644
--- a/libdmapsharing/dmap-mdns-browser-avahi.c
+++ b/libdmapsharing/dmap-mdns-browser-avahi.c
@@ -108,13 +108,6 @@ static guint dmap_mdns_browser_signals[LAST_SIGNAL] = { 0, };
 
 G_DEFINE_TYPE (DMAPMdnsBrowser, dmap_mdns_browser, G_TYPE_OBJECT);
 
-static gchar *service_type_name[] = {
-	NULL,
-	"_daap._tcp",
-	"_dpap._tcp",
-	"_touch-remote._tcp"
-};
-
 GQuark
 dmap_mdns_browser_error_quark (void)
 {
diff --git a/libdmapsharing/dmap-mdns-browser-dnssd.c b/libdmapsharing/dmap-mdns-browser-dnssd.c
index f456f50..6857580 100644
--- a/libdmapsharing/dmap-mdns-browser-dnssd.c
+++ b/libdmapsharing/dmap-mdns-browser-dnssd.c
@@ -106,13 +106,6 @@ dns_service_resolve_reply (DNSServiceRef sdRef,
 
 gboolean dmap_mdns_browser_stop (DMAPMdnsBrowser * browser, GError ** error);
 
-static const char *service_type_name[] = {
-	NULL,
-	"_daap._tcp",
-	"_dpap._tcp",
-	"_touch-remote._tcp"
-};
-
 #define DMAP_MDNS_BROWSER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DMAP_TYPE_MDNS_BROWSER, DMAPMdnsBrowserPrivate))
 
 static guint dmap_mdns_browser_signals[LAST_SIGNAL] = { 0, };
diff --git a/libdmapsharing/dmap-mdns-browser.h b/libdmapsharing/dmap-mdns-browser.h
index dd79380..e48b235 100644
--- a/libdmapsharing/dmap-mdns-browser.h
+++ b/libdmapsharing/dmap-mdns-browser.h
@@ -87,6 +87,13 @@ typedef enum
 		DMAP_MDNS_BROWSER_SERVICE_TYPE_DACP
 } DMAPMdnsBrowserServiceType;
 
+static const char *service_type_name[] = {
+	NULL,
+	"_daap._tcp",
+	"_dpap._tcp",
+	"_touch-remote._tcp"
+};
+
 typedef enum
 {
 	DMAP_MDNS_BROWSER_ERROR_NOT_RUNNING = 0,



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