mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 20:12:37 +01:00
network: Make network object opaque
This commit is contained in:
parent
0e106d8534
commit
74689303df
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user