huangcm
2025-07-01 676035278781360996553c427a12bf358249ebf7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Linux rfkill helper functions for driver wrappers
 * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
 *
 * This software may be distributed under the terms of the BSD license.
 * See README 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 */