mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
client: Add interface_type_register/unregister
This commit is contained in:
parent
5e3a8bcd9d
commit
e3f823061e
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user