From ca581e1b9fd397d1121ea962c9d2bd432625eded Mon Sep 17 00:00:00 2001
From: Stef Walter <stefw@collabora.co.uk>
Date: Thu, 27 Jan 2011 11:23:38 -0600
Subject: [PATCH] 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
|
b
|
|
| 330 | 330 | } |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | | GaServiceBrowser *ga_service_browser_new(gchar * type) { |
| | 333 | GaServiceBrowser *ga_service_browser_new(const gchar * type) { |
| 334 | 334 | return ga_service_browser_new_full(AVAHI_IF_UNSPEC, |
| 335 | 335 | AVAHI_PROTO_UNSPEC, type, NULL, 0); |
| 336 | 336 | } |
| 337 | 337 | |
| 338 | 338 | GaServiceBrowser *ga_service_browser_new_full(AvahiIfIndex interface, |
| 339 | 339 | AvahiProtocol protocol, |
| 340 | | gchar * type, gchar * domain, |
| | 340 | const gchar * type, gchar * domain, |
| 341 | 341 | GaLookupFlags flags) { |
| 342 | 342 | return g_object_new(GA_TYPE_SERVICE_BROWSER, |
| 343 | 343 | "interface", interface, |
diff --git a/avahi-gobject/ga-service-browser.h b/avahi-gobject/ga-service-browser.h
index d625279..eaead4b 100644
|
a
|
b
|
|
| 55 | 55 | #define GA_SERVICE_BROWSER_GET_CLASS(obj) \ |
| 56 | 56 | (G_TYPE_INSTANCE_GET_CLASS ((obj), GA_TYPE_SERVICE_BROWSER, GaServiceBrowserClass)) |
| 57 | 57 | |
| 58 | | GaServiceBrowser *ga_service_browser_new(gchar * type); |
| | 58 | GaServiceBrowser *ga_service_browser_new(const gchar * type); |
| 59 | 59 | |
| 60 | 60 | GaServiceBrowser *ga_service_browser_new_full(AvahiIfIndex interface, |
| 61 | 61 | AvahiProtocol protocol, |
| 62 | | gchar * type, gchar * domain, |
| | 62 | const gchar * type, gchar * domain, |
| 63 | 63 | GaLookupFlags flags); |
| 64 | 64 | |
| 65 | 65 | gboolean |