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