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