ctrl_iface.h 998 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * hostapd / UNIX domain socket -based control interface
  3. * Copyright (c) 2004, 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 CTRL_IFACE_H
  9. #define CTRL_IFACE_H
  10. #ifndef CONFIG_NO_CTRL_IFACE
  11. int hostapd_ctrl_iface_init(struct hostapd_data *hapd);
  12. void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd);
  13. int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface);
  14. void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface);
  15. #else /* CONFIG_NO_CTRL_IFACE */
  16. static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd)
  17. {
  18. return 0;
  19. }
  20. static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd)
  21. {
  22. }
  23. static inline int
  24. hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface)
  25. {
  26. return 0;
  27. }
  28. static inline void
  29. hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface)
  30. {
  31. }
  32. #endif /* CONFIG_NO_CTRL_IFACE */
  33. #endif /* CTRL_IFACE_H */