2010-05-23 09:27:32 +02:00
|
|
|
/*
|
|
|
|
* Linux rfkill helper functions for driver wrappers
|
|
|
|
* Copyright (c) 2010, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2010-05-23 09:27:32 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RFKILL_H
|
|
|
|
#define RFKILL_H
|
|
|
|
|
|
|
|
struct rfkill_data;
|
|
|
|
|
|
|
|
struct rfkill_config {
|
|
|
|
void *ctx;
|
|
|
|
char ifname[IFNAMSIZ];
|
|
|
|
void (*blocked_cb)(void *ctx);
|
|
|
|
void (*unblocked_cb)(void *ctx);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct rfkill_data * rfkill_init(struct rfkill_config *cfg);
|
|
|
|
void rfkill_deinit(struct rfkill_data *rfkill);
|
|
|
|
int rfkill_is_blocked(struct rfkill_data *rfkill);
|
|
|
|
|
|
|
|
#endif /* RFKILL_H */
|