From 866c918072dcfd9f9f44ef075833fc56e0f35337 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 27 Jan 2011 11:23:38 -0600 Subject: [PATCH] gobject: ga_service_browser_new() should accept const gchar* ga_service_browser_new() and ga_service_browser_new_full() should accept const gchar*. --- avahi-gobject/ga-service-browser.c | 4 ++-- avahi-gobject/ga-service-browser.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5