]> git.meshlink.io Git - catta/commitdiff
gobject: ga_service_browser_new() should accept const gchar*
authorStef Walter <stefw@collabora.co.uk>
Thu, 27 Jan 2011 17:23:38 +0000 (11:23 -0600)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Feb 2011 22:43:24 +0000 (23:43 +0100)
ga_service_browser_new() and ga_service_browser_new_full() should
accept const gchar*.

avahi-gobject/ga-service-browser.c
avahi-gobject/ga-service-browser.h

index abd03cd2b6829c3474161bf555edf43d3d64aba6..3c3b80e231c4dc5d4e8b45d4455b396826c291e9 100644 (file)
@@ -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,
index d625279445cdb4db418c1bac1cf76061758e7503..eaead4be83cbc90619f07ab3d2631fb7a628ecb8 100644 (file)
@@ -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