rfkill.h 583 B

12345678910111213141516171819202122232425
  1. /*
  2. * Linux rfkill helper functions for driver wrappers
  3. * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef RFKILL_H
  9. #define RFKILL_H
  10. struct rfkill_data;
  11. struct rfkill_config {
  12. void *ctx;
  13. char ifname[IFNAMSIZ];
  14. void (*blocked_cb)(void *ctx);
  15. void (*unblocked_cb)(void *ctx);
  16. };
  17. struct rfkill_data * rfkill_init(struct rfkill_config *cfg);
  18. void rfkill_deinit(struct rfkill_data *rfkill);
  19. int rfkill_is_blocked(struct rfkill_data *rfkill);
  20. #endif /* RFKILL_H */