client: Add interface_type_register/unregister

This commit is contained in:
Tim Kourt 2017-04-10 13:16:46 -07:00 committed by Denis Kenzior
parent 5e3a8bcd9d
commit e3f823061e
2 changed files with 17 additions and 0 deletions

View File

@ -321,6 +321,18 @@ static void dbus_disconnect_callback(void *user_data)
l_main_quit();
}
void proxy_interface_type_register(
const struct proxy_interface_type *interface_type)
{
l_queue_push_tail(proxy_interface_types, (void *) interface_type);
}
void proxy_interface_type_unregister(
const struct proxy_interface_type *interface_type)
{
l_queue_remove(proxy_interface_types, (void *) interface_type);
}
bool dbus_proxy_init(void)
{
if (dbus)

View File

@ -42,5 +42,10 @@ struct proxy_interface_type {
struct proxy_interface *proxy_interface_find(const char *interface,
const char *path);
void proxy_interface_type_register(
const struct proxy_interface_type *interface_type);
void proxy_interface_type_unregister(
const struct proxy_interface_type *interface_type);
bool dbus_proxy_init(void);
bool dbus_proxy_exit(void);