1 /* 2 * Linux rfkill helper functions for driver wrappers 3 * Copyright (c) 2010, Jouni Malinen <j (at) w1.fi> 4 * 5 * This software may be distributed under the terms of the BSD license. 6 * See README for more details. 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 */ 26