blob: 0412ac33054c96f43516bff5b7e4b4cfd1ab927e [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * Linux rfkill helper functions for driver wrappers
3 * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
4 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
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 */