1*3ff40c12SJohn Marino /*
2*3ff40c12SJohn Marino  * Linux rfkill helper functions for driver wrappers
3*3ff40c12SJohn Marino  * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
4*3ff40c12SJohn Marino  *
5*3ff40c12SJohn Marino  * This software may be distributed under the terms of the BSD license.
6*3ff40c12SJohn Marino  * See README for more details.
7*3ff40c12SJohn Marino  */
8*3ff40c12SJohn Marino 
9*3ff40c12SJohn Marino #ifndef RFKILL_H
10*3ff40c12SJohn Marino #define RFKILL_H
11*3ff40c12SJohn Marino 
12*3ff40c12SJohn Marino struct rfkill_data;
13*3ff40c12SJohn Marino 
14*3ff40c12SJohn Marino struct rfkill_config {
15*3ff40c12SJohn Marino 	void *ctx;
16*3ff40c12SJohn Marino 	char ifname[IFNAMSIZ];
17*3ff40c12SJohn Marino 	void (*blocked_cb)(void *ctx);
18*3ff40c12SJohn Marino 	void (*unblocked_cb)(void *ctx);
19*3ff40c12SJohn Marino };
20*3ff40c12SJohn Marino 
21*3ff40c12SJohn Marino struct rfkill_data * rfkill_init(struct rfkill_config *cfg);
22*3ff40c12SJohn Marino void rfkill_deinit(struct rfkill_data *rfkill);
23*3ff40c12SJohn Marino int rfkill_is_blocked(struct rfkill_data *rfkill);
24*3ff40c12SJohn Marino 
25*3ff40c12SJohn Marino #endif /* RFKILL_H */
26