3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

wired: Add accessor for bus connection object

This commit is contained in:
Marcel Holtmann 2018-09-16 00:45:59 +02:00
parent a924de37c3
commit 8bc97d7caa
2 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,11 @@
static struct l_dbus *dbus = NULL;
struct l_dbus *dbus_get(void)
{
return dbus;
}
struct dbus_info {
char *name;
dbus_ready_func_t ready_func;

View File

@ -23,6 +23,8 @@
enum l_dbus_bus;
struct l_dbus;
struct l_dbus *dbus_get(void);
typedef void (*dbus_ready_func_t) (struct l_dbus *dbus, void *user_data);
typedef void (*dbus_shutdown_func_t) (struct l_dbus *dbus, void *user_data);