[libdmapsharing/LIBDMAPSHARING_3_0] Backport from 4.0 series: replace use of deprecated G_CONST_RETURN
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing/LIBDMAPSHARING_3_0] Backport from 4.0 series: replace use of deprecated G_CONST_RETURN
- Date: Tue, 30 Jun 2020 20:44:16 +0000 (UTC)
commit a825146809f5acc8e444184fac8b1d31ffd7ad36
Author: W. Michael Petullo <mike flyn org>
Date: Tue Jun 30 11:52:49 2020 -0400
Backport from 4.0 series: replace use of deprecated G_CONST_RETURN
libdmapsharing/dmap-mdns-browser-avahi.c | 2 +-
libdmapsharing/dmap-mdns-browser-dnssd.c | 2 +-
libdmapsharing/dmap-mdns-browser.h | 3 +--
3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/libdmapsharing/dmap-mdns-browser-avahi.c b/libdmapsharing/dmap-mdns-browser-avahi.c
index 8daa8d0..17c0d3f 100644
--- a/libdmapsharing/dmap-mdns-browser-avahi.c
+++ b/libdmapsharing/dmap-mdns-browser-avahi.c
@@ -278,7 +278,7 @@ dmap_mdns_browser_stop (DMAPMdnsBrowser * browser, GError ** error)
return TRUE;
}
-G_CONST_RETURN GSList *
+const GSList *
dmap_mdns_browser_get_services (DMAPMdnsBrowser * browser)
{
g_return_val_if_fail (browser != NULL, NULL);
diff --git a/libdmapsharing/dmap-mdns-browser-dnssd.c b/libdmapsharing/dmap-mdns-browser-dnssd.c
index c2c0cf0..b6fa677 100644
--- a/libdmapsharing/dmap-mdns-browser-dnssd.c
+++ b/libdmapsharing/dmap-mdns-browser-dnssd.c
@@ -565,7 +565,7 @@ dmap_mdns_browser_error_quark (void)
return quark;
}
-G_CONST_RETURN GSList *
+const GSList *
dmap_mdns_browser_get_services (DMAPMdnsBrowser * browser)
{
g_return_val_if_fail (browser != NULL, NULL);
diff --git a/libdmapsharing/dmap-mdns-browser.h b/libdmapsharing/dmap-mdns-browser.h
index e9114dd..b027f47 100644
--- a/libdmapsharing/dmap-mdns-browser.h
+++ b/libdmapsharing/dmap-mdns-browser.h
@@ -176,8 +176,7 @@ gboolean dmap_mdns_browser_start (DMAPMdnsBrowser * browser, GError ** error);
*/
gboolean dmap_mdns_browser_stop (DMAPMdnsBrowser * browser, GError ** error);
-G_CONST_RETURN GSList *dmap_mdns_browser_get_services (DMAPMdnsBrowser *
- browser);
+const GSList *dmap_mdns_browser_get_services (DMAPMdnsBrowser * browser);
DMAPMdnsBrowserServiceType dmap_mdns_browser_get_service_type (DMAPMdnsBrowser
* browser);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]