mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-26 17:28:29 -05:00
32 lines
802 B
C
32 lines
802 B
C
|
/*
|
||
|
* Linux rfkill helper functions for driver wrappers
|
||
|
* Copyright (c) 2010, Jouni Malinen <j@w1.fi>
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License version 2 as
|
||
|
* published by the Free Software Foundation.
|
||
|
*
|
||
|
* Alternatively, this software may be distributed under the terms of BSD
|
||
|
* license.
|
||
|
*
|
||
|
* See README and COPYING for more details.
|
||
|
*/
|
||
|
|
||
|
#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 */
|