summaryrefslogtreecommitdiff
path: root/gdbus/gdbus.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-09-14 12:43:09 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-09-14 12:45:05 -0700
commit8f3a62684d251354b0e3a690a57f82aa1ab266eb (patch)
tree5b20f8d6f8ebb3f3acbbab438c452b22de6c1a52 /gdbus/gdbus.h
parent18e10e0c89f7df485517c422477f1ceffc8e58b7 (diff)
downloadbluez-8f3a62684d251354b0e3a690a57f82aa1ab266eb.tar.gz
gdbus: Make g_dbus_proxy_get_path take const proxy
This makes g_dbus_proxy_get_path take const proxy since it doesn't change anything on the proxy and avoid pointless casts.
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r--gdbus/gdbus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 1a601c591..9bdff9eba 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -333,7 +333,7 @@ GDBusProxy *g_dbus_proxy_new(GDBusClient *client, const char *path,
GDBusProxy *g_dbus_proxy_ref(GDBusProxy *proxy);
void g_dbus_proxy_unref(GDBusProxy *proxy);
-const char *g_dbus_proxy_get_path(GDBusProxy *proxy);
+const char *g_dbus_proxy_get_path(const GDBusProxy *proxy);
const char *g_dbus_proxy_get_interface(GDBusProxy *proxy);
gboolean g_dbus_proxy_get_property(GDBusProxy *proxy, const char *name,