3
0
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:
Denis Kenzior 2016-06-16 16:23:00 -05:00
parent 74add19057
commit 311a6cf5b1
2 changed files with 18 additions and 18 deletions

View File

@ -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;

View File

@ -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);