mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 17:39:28 +01:00
device: Make device object opaque
This commit is contained in:
parent
74add19057
commit
311a6cf5b1
18
src/device.c
18
src/device.c
@ -56,6 +56,24 @@ struct autoconnect_entry {
|
||||
struct scan_bss *bss;
|
||||
};
|
||||
|
||||
struct device {
|
||||
uint32_t index;
|
||||
enum device_state state;
|
||||
struct l_queue *bss_list;
|
||||
struct l_queue *old_bss_list;
|
||||
struct l_dbus_message *scan_pending;
|
||||
struct l_hashmap *networks;
|
||||
struct l_queue *networks_sorted;
|
||||
struct scan_bss *connected_bss;
|
||||
struct network *connected_network;
|
||||
struct l_queue *autoconnect_list;
|
||||
struct l_dbus_message *connect_pending;
|
||||
struct l_dbus_message *disconnect_pending;
|
||||
|
||||
struct wiphy *wiphy;
|
||||
struct netdev *netdev;
|
||||
};
|
||||
|
||||
static struct l_queue *device_watches = NULL;
|
||||
static uint32_t device_next_watch_id = 0;
|
||||
|
||||
|
18
src/device.h
18
src/device.h
@ -38,24 +38,6 @@ enum device_state {
|
||||
typedef void (*device_watch_func_t)(struct device *device, void *userdata);
|
||||
typedef void (*device_destroy_func_t)(void *userdata);
|
||||
|
||||
struct device {
|
||||
uint32_t index;
|
||||
enum device_state state;
|
||||
struct l_queue *bss_list;
|
||||
struct l_queue *old_bss_list;
|
||||
struct l_dbus_message *scan_pending;
|
||||
struct l_hashmap *networks;
|
||||
struct l_queue *networks_sorted;
|
||||
struct scan_bss *connected_bss;
|
||||
struct network *connected_network;
|
||||
struct l_queue *autoconnect_list;
|
||||
struct l_dbus_message *connect_pending;
|
||||
struct l_dbus_message *disconnect_pending;
|
||||
|
||||
struct wiphy *wiphy;
|
||||
struct netdev *netdev;
|
||||
};
|
||||
|
||||
uint32_t device_watch_add(device_watch_func_t added,
|
||||
device_watch_func_t removed,
|
||||
void *userdata, device_destroy_func_t destroy);
|
||||
|
Loading…
Reference in New Issue
Block a user