mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
device: Remove unneeded typedefs/enums
This commit is contained in:
parent
9ca72b9527
commit
a277a424f3
@ -47,14 +47,6 @@
|
|||||||
#include "src/ap.h"
|
#include "src/ap.h"
|
||||||
#include "src/adhoc.h"
|
#include "src/adhoc.h"
|
||||||
|
|
||||||
struct device_watchlist_item {
|
|
||||||
uint32_t id;
|
|
||||||
device_watch_func_t added;
|
|
||||||
device_watch_func_t removed;
|
|
||||||
void *userdata;
|
|
||||||
device_destroy_func_t destroy;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct autoconnect_entry {
|
struct autoconnect_entry {
|
||||||
uint16_t rank;
|
uint16_t rank;
|
||||||
struct network *network;
|
struct network *network;
|
||||||
|
@ -28,12 +28,6 @@ struct wiphy;
|
|||||||
struct netdev;
|
struct netdev;
|
||||||
struct device;
|
struct device;
|
||||||
|
|
||||||
enum device_event {
|
|
||||||
DEVICE_EVENT_INSERTED,
|
|
||||||
DEVICE_EVENT_REMOVED,
|
|
||||||
DEVICE_EVENT_MODE_CHANGED,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum device_state {
|
enum device_state {
|
||||||
DEVICE_STATE_OFF = 0, /* Interface down */
|
DEVICE_STATE_OFF = 0, /* Interface down */
|
||||||
DEVICE_STATE_DISCONNECTED, /* Disconnected, no auto-connect */
|
DEVICE_STATE_DISCONNECTED, /* Disconnected, no auto-connect */
|
||||||
@ -44,9 +38,6 @@ enum device_state {
|
|||||||
DEVICE_STATE_ROAMING
|
DEVICE_STATE_ROAMING
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*device_watch_func_t)(struct device *device,
|
|
||||||
enum device_event event,
|
|
||||||
void *userdata);
|
|
||||||
typedef void (*device_state_watch_func_t)(enum device_state, void *userdata);
|
typedef void (*device_state_watch_func_t)(enum device_state, void *userdata);
|
||||||
typedef void (*device_destroy_func_t)(void *userdata);
|
typedef void (*device_destroy_func_t)(void *userdata);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user