]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/drivers/rfkill.h
Remove the GPL notification from files contributed by Jouni Malinen
[thirdparty/hostap.git] / src / drivers / rfkill.h
CommitLineData
8401a6b0
JM
1/*
2 * Linux rfkill helper functions for driver wrappers
3 * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
4 *
0f3d578e
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
8401a6b0
JM
7 */
8
9#ifndef RFKILL_H
10#define RFKILL_H
11
12struct rfkill_data;
13
14struct rfkill_config {
15 void *ctx;
16 char ifname[IFNAMSIZ];
17 void (*blocked_cb)(void *ctx);
18 void (*unblocked_cb)(void *ctx);
19};
20
21struct rfkill_data * rfkill_init(struct rfkill_config *cfg);
22void rfkill_deinit(struct rfkill_data *rfkill);
23int rfkill_is_blocked(struct rfkill_data *rfkill);
24
25#endif /* RFKILL_H */