rfkill.h 541 B

12345678910111213141516171819202122232425
  1. #include <stdint.h>
  2. #define RFKILL_TYPE_WLAN 1
  3. #define RFKILL_TYPE_BLUETOOTH 2
  4. #define RFKILL_TYPE_UWB 3
  5. #define RFKILL_TYPE_WIMAX 4
  6. #define RFKILL_TYPE_WWAN 5
  7. #define RFKILL_TYPE_GPS 6
  8. #define RFKILL_TYPE_FM 7
  9. #define RFKILL_TYPE_NFC 8
  10. #define RFKILL_OP_ADD 0
  11. #define RFKILL_OP_DEL 1
  12. #define RFKILL_OP_CHANGE 2
  13. #define RFKILL_OP_CHANGE_ALL 3
  14. struct rfkill_event {
  15. int32_t idx;
  16. uint8_t type;
  17. uint8_t op;
  18. uint8_t soft;
  19. uint8_t hard;
  20. } __attribute__((packed));