3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +01:00

network: Make network object opaque

This commit is contained in:
Denis Kenzior 2016-05-16 16:14:26 -05:00
parent 0e106d8534
commit 74689303df
2 changed files with 13 additions and 13 deletions

View File

@ -48,6 +48,19 @@ struct network_info {
struct timespec connected_time; /* Time last connected */
};
struct network {
char *object_path;
struct netdev *netdev;
char ssid[33];
unsigned char *psk;
unsigned int agent_request;
enum security security;
struct l_queue *bss_list;
struct l_settings *settings;
bool update_psk:1; /* Whether PSK should be written to storage */
bool ask_psk:1; /* Whether we should force-ask agent for PSK */
};
static struct l_queue *networks = NULL;
static int timespec_compare(const void *a, const void *b, void *user_data)

View File

@ -24,19 +24,6 @@
struct netdev;
struct network {
char *object_path;
struct netdev *netdev;
char ssid[33];
unsigned char *psk;
unsigned int agent_request;
enum security security;
struct l_queue *bss_list;
struct l_settings *settings;
bool update_psk:1; /* Whether PSK should be written to storage */
bool ask_psk:1; /* Whether we should force-ask agent for PSK */
};
bool network_seen(uint32_t type, const char *ssid);
bool network_connected(uint32_t type, const char *ssid);
double network_rankmod(uint32_t type, const char *ssid);