From f85685c9e4efb61502ecbf9a445ef818784fbe57 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 14 Sep 2018 02:53:36 -0500 Subject: [PATCH] client: Add proxy_interface_get_path --- client/dbus-proxy.c | 5 +++++ client/dbus-proxy.h | 1 + 2 files changed, 6 insertions(+) diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c index 74e1264a..8695204e 100644 --- a/client/dbus-proxy.c +++ b/client/dbus-proxy.c @@ -677,6 +677,11 @@ const char *proxy_interface_get_interface(const struct proxy_interface *proxy) return proxy->type->interface; } +const char *proxy_interface_get_path(const struct proxy_interface *proxy) +{ + return proxy->path; +} + const char *proxy_interface_get_identity_str( const struct proxy_interface *proxy) { diff --git a/client/dbus-proxy.h b/client/dbus-proxy.h index dd2b9139..0b413b61 100644 --- a/client/dbus-proxy.h +++ b/client/dbus-proxy.h @@ -97,6 +97,7 @@ char *proxy_property_str_completion(const struct proxy_interface_type *type, void *proxy_interface_get_data(const struct proxy_interface *proxy); const char *proxy_interface_get_interface(const struct proxy_interface *proxy); +const char *proxy_interface_get_path(const struct proxy_interface *proxy); const char *proxy_interface_get_identity_str( const struct proxy_interface *proxy);