From: Stef Walter Date: Thu, 27 Jan 2011 17:23:38 +0000 (-0600) Subject: gobject: ga_service_browser_new() should accept const gchar* X-Git-Url: http://git.meshlink.io/?p=catta;a=commitdiff_plain;h=866c918072dcfd9f9f44ef075833fc56e0f35337 gobject: ga_service_browser_new() should accept const gchar* ga_service_browser_new() and ga_service_browser_new_full() should accept const gchar*. --- diff --git a/avahi-gobject/ga-service-browser.c b/avahi-gobject/ga-service-browser.c index abd03cd..3c3b80e 100644 --- a/avahi-gobject/ga-service-browser.c +++ b/avahi-gobject/ga-service-browser.c @@ -330,14 +330,14 @@ static void _avahi_service_browser_cb(AvahiServiceBrowser * b, AvahiIfIndex inte } } -GaServiceBrowser *ga_service_browser_new(gchar * type) { +GaServiceBrowser *ga_service_browser_new(const gchar * type) { return ga_service_browser_new_full(AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, type, NULL, 0); } GaServiceBrowser *ga_service_browser_new_full(AvahiIfIndex interface, AvahiProtocol protocol, - gchar * type, gchar * domain, + const gchar * type, gchar * domain, GaLookupFlags flags) { return g_object_new(GA_TYPE_SERVICE_BROWSER, "interface", interface, diff --git a/avahi-gobject/ga-service-browser.h b/avahi-gobject/ga-service-browser.h index d625279..eaead4b 100644 --- a/avahi-gobject/ga-service-browser.h +++ b/avahi-gobject/ga-service-browser.h @@ -55,11 +55,11 @@ GType ga_service_browser_get_type(void); #define GA_SERVICE_BROWSER_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), GA_TYPE_SERVICE_BROWSER, GaServiceBrowserClass)) -GaServiceBrowser *ga_service_browser_new(gchar * type); +GaServiceBrowser *ga_service_browser_new(const gchar * type); GaServiceBrowser *ga_service_browser_new_full(AvahiIfIndex interface, AvahiProtocol protocol, - gchar * type, gchar * domain, + const gchar * type, gchar * domain, GaLookupFlags flags); gboolean