xref: /third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/rfkill.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
1e5b75505Sopenharmony_ci/*
2e5b75505Sopenharmony_ci * Linux rfkill helper functions for driver wrappers
3e5b75505Sopenharmony_ci * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
4e5b75505Sopenharmony_ci *
5e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license.
6e5b75505Sopenharmony_ci * See README for more details.
7e5b75505Sopenharmony_ci */
8e5b75505Sopenharmony_ci
9e5b75505Sopenharmony_ci#ifndef RFKILL_H
10e5b75505Sopenharmony_ci#define RFKILL_H
11e5b75505Sopenharmony_ci
12e5b75505Sopenharmony_cistruct rfkill_data;
13e5b75505Sopenharmony_ci
14e5b75505Sopenharmony_cistruct rfkill_config {
15e5b75505Sopenharmony_ci	void *ctx;
16e5b75505Sopenharmony_ci	char ifname[IFNAMSIZ];
17e5b75505Sopenharmony_ci	void (*blocked_cb)(void *ctx);
18e5b75505Sopenharmony_ci	void (*unblocked_cb)(void *ctx);
19e5b75505Sopenharmony_ci};
20e5b75505Sopenharmony_ci
21e5b75505Sopenharmony_cistruct rfkill_data * rfkill_init(struct rfkill_config *cfg);
22e5b75505Sopenharmony_civoid rfkill_deinit(struct rfkill_data *rfkill);
23e5b75505Sopenharmony_ciint rfkill_is_blocked(struct rfkill_data *rfkill);
24e5b75505Sopenharmony_ci
25e5b75505Sopenharmony_ci#endif /* RFKILL_H */
26

Indexes created Thu Nov 07 10:32:03 CST 2024