diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c index 6adf54bd..21f1bbd1 100644 --- a/client/dbus-proxy.c +++ b/client/dbus-proxy.c @@ -269,6 +269,12 @@ static struct l_queue *proxy_interface_find_by_path(const char *path) return match; } +bool proxy_interface_is_same(const struct proxy_interface *a, + const struct proxy_interface *b) +{ + return !strcmp(a->path, b->path); +} + static void properties_changed_callback(struct l_dbus_message *message, void *data) { diff --git a/client/dbus-proxy.h b/client/dbus-proxy.h index 75a30786..b6caef11 100644 --- a/client/dbus-proxy.h +++ b/client/dbus-proxy.h @@ -64,6 +64,9 @@ struct l_queue *proxy_interface_find_all(const char *interface, proxy_property_match_func_t function, const void *value); +bool proxy_interface_is_same(const struct proxy_interface *a, + const struct proxy_interface *b); + bool dbus_message_has_error(struct l_dbus_message *message); bool proxy_interface_method_call(const struct proxy_interface *proxy,