You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. /*
  2. * WPA Supplicant / dbus-based control interface
  3. * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
  4. * Copyright (c) 2009-2010, Witold Sowa <witold.sowa@gmail.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Alternatively, this software may be distributed under the terms of BSD
  11. * license.
  12. *
  13. * See README and COPYING for more details.
  14. */
  15. #ifndef CTRL_IFACE_DBUS_NEW_HANDLERS_H
  16. #define CTRL_IFACE_DBUS_NEW_HANDLERS_H
  17. struct network_handler_args {
  18. struct wpa_supplicant *wpa_s;
  19. struct wpa_ssid *ssid;
  20. };
  21. struct bss_handler_args {
  22. struct wpa_supplicant *wpa_s;
  23. unsigned int id;
  24. };
  25. DBusMessage * wpas_dbus_simple_property_getter(DBusMessage *message,
  26. const int type,
  27. const void *val);
  28. DBusMessage * wpas_dbus_simple_property_setter(DBusMessage *message,
  29. const int type, void *val);
  30. DBusMessage * wpas_dbus_simple_array_property_getter(DBusMessage *message,
  31. const int type,
  32. const void *array,
  33. size_t array_len);
  34. DBusMessage * wpas_dbus_handler_create_interface(DBusMessage *message,
  35. struct wpa_global *global);
  36. DBusMessage * wpas_dbus_handler_remove_interface(DBusMessage *message,
  37. struct wpa_global *global);
  38. DBusMessage * wpas_dbus_handler_get_interface(DBusMessage *message,
  39. struct wpa_global *global);
  40. DBusMessage * wpas_dbus_getter_debug_level(DBusMessage *message,
  41. struct wpa_global *global);
  42. DBusMessage * wpas_dbus_getter_debug_timestamp(DBusMessage *message,
  43. struct wpa_global *global);
  44. DBusMessage * wpas_dbus_getter_debug_show_keys(DBusMessage *message,
  45. struct wpa_global *global);
  46. DBusMessage * wpas_dbus_setter_debug_level(DBusMessage *message,
  47. struct wpa_global *global);
  48. DBusMessage * wpas_dbus_setter_debug_timestamp(DBusMessage *message,
  49. struct wpa_global *global);
  50. DBusMessage * wpas_dbus_setter_debug_show_keys(DBusMessage *message,
  51. struct wpa_global *global);
  52. DBusMessage * wpas_dbus_getter_interfaces(DBusMessage *message,
  53. struct wpa_global *global);
  54. DBusMessage * wpas_dbus_getter_eap_methods(DBusMessage *message,
  55. void *nothing);
  56. DBusMessage * wpas_dbus_handler_scan(DBusMessage *message,
  57. struct wpa_supplicant *wpa_s);
  58. DBusMessage * wpas_dbus_handler_disconnect(DBusMessage *message,
  59. struct wpa_supplicant *wpa_s);
  60. DBusMessage * wpas_dbus_handler_add_network(DBusMessage *message,
  61. struct wpa_supplicant *wpa_s);
  62. DBusMessage * wpas_dbus_handler_remove_network(DBusMessage *message,
  63. struct wpa_supplicant *wpa_s);
  64. DBusMessage * wpas_dbus_handler_remove_all_networks(
  65. DBusMessage *message, struct wpa_supplicant *wpa_s);
  66. DBusMessage * wpas_dbus_handler_select_network(DBusMessage *message,
  67. struct wpa_supplicant *wpa_s);
  68. DBusMessage * wpas_dbus_handler_add_blob(DBusMessage *message,
  69. struct wpa_supplicant *wpa_s);
  70. DBusMessage * wpas_dbus_handler_get_blob(DBusMessage *message,
  71. struct wpa_supplicant *wpa_s);
  72. DBusMessage * wpas_dbus_handler_remove_blob(DBusMessage *message,
  73. struct wpa_supplicant *wpa_s);
  74. DBusMessage * wpas_dbus_handler_flush_bss(DBusMessage *message,
  75. struct wpa_supplicant *wpa_s);
  76. DBusMessage * wpas_dbus_getter_capabilities(DBusMessage *message,
  77. struct wpa_supplicant *wpa_s);
  78. DBusMessage * wpas_dbus_getter_state(DBusMessage *message,
  79. struct wpa_supplicant *wpa_s);
  80. DBusMessage * wpas_dbus_getter_scanning(DBusMessage *message,
  81. struct wpa_supplicant *wpa_s);
  82. DBusMessage * wpas_dbus_getter_ap_scan(DBusMessage *message,
  83. struct wpa_supplicant *wpa_s);
  84. DBusMessage * wpas_dbus_setter_ap_scan(DBusMessage *message,
  85. struct wpa_supplicant *wpa_s);
  86. DBusMessage * wpas_dbus_getter_bss_expire_age(DBusMessage *message,
  87. struct wpa_supplicant *wpa_s);
  88. DBusMessage * wpas_dbus_setter_bss_expire_age(DBusMessage *message,
  89. struct wpa_supplicant *wpa_s);
  90. DBusMessage * wpas_dbus_getter_bss_expire_count(DBusMessage *message,
  91. struct wpa_supplicant *wpa_s);
  92. DBusMessage * wpas_dbus_setter_bss_expire_count(DBusMessage *message,
  93. struct wpa_supplicant *wpa_s);
  94. DBusMessage * wpas_dbus_getter_country(DBusMessage *message,
  95. struct wpa_supplicant *wpa_s);
  96. DBusMessage * wpas_dbus_setter_country(DBusMessage *message,
  97. struct wpa_supplicant *wpa_s);
  98. DBusMessage * wpas_dbus_getter_ifname(DBusMessage *message,
  99. struct wpa_supplicant *wpa_s);
  100. DBusMessage * wpas_dbus_getter_driver(DBusMessage *message,
  101. struct wpa_supplicant *wpa_s);
  102. DBusMessage * wpas_dbus_getter_bridge_ifname(DBusMessage *message,
  103. struct wpa_supplicant *wpa_s);
  104. DBusMessage * wpas_dbus_getter_current_bss(DBusMessage *message,
  105. struct wpa_supplicant *wpa_s);
  106. DBusMessage * wpas_dbus_getter_current_network(DBusMessage *message,
  107. struct wpa_supplicant *wpa_s);
  108. DBusMessage * wpas_dbus_getter_current_auth_mode(DBusMessage *message,
  109. struct wpa_supplicant *wpa_s);
  110. DBusMessage * wpas_dbus_getter_bsss(DBusMessage *message,
  111. struct wpa_supplicant *wpa_s);
  112. DBusMessage * wpas_dbus_getter_networks(DBusMessage *message,
  113. struct wpa_supplicant *wpa_s);
  114. DBusMessage * wpas_dbus_getter_blobs(DBusMessage *message,
  115. struct wpa_supplicant *bss);
  116. DBusMessage * wpas_dbus_getter_bss_bssid(DBusMessage *message,
  117. struct bss_handler_args *bss);
  118. DBusMessage * wpas_dbus_getter_bss_ssid(DBusMessage *message,
  119. struct bss_handler_args *bss);
  120. DBusMessage * wpas_dbus_getter_bss_privacy(DBusMessage *message,
  121. struct bss_handler_args *bss);
  122. DBusMessage * wpas_dbus_getter_bss_mode(DBusMessage *message,
  123. struct bss_handler_args *bss);
  124. DBusMessage * wpas_dbus_getter_bss_signal(DBusMessage *message,
  125. struct bss_handler_args *bss);
  126. DBusMessage * wpas_dbus_getter_bss_frequency(DBusMessage *message,
  127. struct bss_handler_args *bss);
  128. DBusMessage * wpas_dbus_getter_bss_rates(DBusMessage *message,
  129. struct bss_handler_args *bss);
  130. DBusMessage * wpas_dbus_getter_bss_wpa(DBusMessage *message,
  131. struct bss_handler_args *bss);
  132. DBusMessage * wpas_dbus_getter_bss_rsn(DBusMessage *message,
  133. struct bss_handler_args *bss);
  134. DBusMessage * wpas_dbus_getter_bss_ies(DBusMessage *message,
  135. struct bss_handler_args *bss);
  136. DBusMessage * wpas_dbus_getter_enabled(DBusMessage *message,
  137. struct network_handler_args *net);
  138. DBusMessage * wpas_dbus_setter_enabled(DBusMessage *message,
  139. struct network_handler_args *net);
  140. DBusMessage * wpas_dbus_getter_network_properties(
  141. DBusMessage *message, struct network_handler_args *net);
  142. DBusMessage * wpas_dbus_setter_network_properties(
  143. DBusMessage *message, struct network_handler_args *net);
  144. DBusMessage * wpas_dbus_handler_wps_start(DBusMessage *message,
  145. struct wpa_supplicant *wpa_s);
  146. DBusMessage * wpas_dbus_getter_process_credentials(
  147. DBusMessage *message, struct wpa_supplicant *wpa_s);
  148. DBusMessage * wpas_dbus_setter_process_credentials(
  149. DBusMessage *message, struct wpa_supplicant *wpa_s);
  150. DBusMessage * wpas_dbus_getter_credentials(DBusMessage *message,
  151. struct wpa_supplicant *wpa_s);
  152. DBusMessage * wpas_dbus_error_invalid_args(DBusMessage *message,
  153. const char *arg);
  154. DBusMessage * wpas_dbus_error_unknown_error(DBusMessage *message,
  155. const char *arg);
  156. #endif /* CTRL_IFACE_DBUS_HANDLERS_NEW_H */