dbus_new_handlers_p2p.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. /*
  2. * WPA Supplicant / dbus-based control interface for p2p
  3. * Copyright (c) 2011-2012, Intel Corporation
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef DBUS_NEW_HANDLERS_P2P_H
  9. #define DBUS_NEW_HANDLERS_P2P_H
  10. struct peer_handler_args {
  11. struct wpa_supplicant *wpa_s;
  12. u8 p2p_device_addr[ETH_ALEN];
  13. };
  14. /*
  15. * P2P Device methods
  16. */
  17. DBusMessage *wpas_dbus_handler_p2p_find(
  18. DBusMessage *message, struct wpa_supplicant *wpa_s);
  19. DBusMessage *wpas_dbus_handler_p2p_stop_find(
  20. DBusMessage *message, struct wpa_supplicant *wpa_s);
  21. DBusMessage *wpas_dbus_handler_p2p_rejectpeer(
  22. DBusMessage *message, struct wpa_supplicant *wpa_s);
  23. DBusMessage *wpas_dbus_handler_p2p_listen(
  24. DBusMessage *message, struct wpa_supplicant *wpa_s);
  25. DBusMessage *wpas_dbus_handler_p2p_extendedlisten(
  26. DBusMessage *message, struct wpa_supplicant *wpa_s);
  27. DBusMessage *wpas_dbus_handler_p2p_presence_request(
  28. DBusMessage *message, struct wpa_supplicant *wpa_s);
  29. DBusMessage *wpas_dbus_handler_p2p_prov_disc_req(
  30. DBusMessage *message, struct wpa_supplicant *wpa_s);
  31. DBusMessage *wpas_dbus_handler_p2p_group_add(
  32. DBusMessage *message, struct wpa_supplicant *wpa_s);
  33. DBusMessage *wpas_dbus_handler_p2p_connect(
  34. DBusMessage *message,
  35. struct wpa_supplicant *wpa_s);
  36. DBusMessage * wpas_dbus_handler_p2p_cancel(DBusMessage *message,
  37. struct wpa_supplicant *wpa_s);
  38. DBusMessage *wpas_dbus_handler_p2p_invite(
  39. DBusMessage *message,
  40. struct wpa_supplicant *wpa_s);
  41. DBusMessage *wpas_dbus_handler_p2p_disconnect(
  42. DBusMessage *message, struct wpa_supplicant *wpa_s);
  43. DBusMessage *wpas_dbus_handler_p2p_flush(
  44. DBusMessage *message, struct wpa_supplicant *wpa_s);
  45. DBusMessage *wpas_dbus_handler_p2p_add_service(
  46. DBusMessage *message, struct wpa_supplicant *wpa_s);
  47. DBusMessage *wpas_dbus_handler_p2p_delete_service(
  48. DBusMessage *message, struct wpa_supplicant *wpa_s);
  49. DBusMessage *wpas_dbus_handler_p2p_flush_service(
  50. DBusMessage *message, struct wpa_supplicant *wpa_s);
  51. DBusMessage *wpas_dbus_handler_p2p_service_sd_req(
  52. DBusMessage *message, struct wpa_supplicant *wpa_s);
  53. DBusMessage *wpas_dbus_handler_p2p_service_sd_res(
  54. DBusMessage *message, struct wpa_supplicant *wpa_s);
  55. DBusMessage *wpas_dbus_handler_p2p_service_sd_cancel_req(
  56. DBusMessage *message, struct wpa_supplicant *wpa_s);
  57. DBusMessage *wpas_dbus_handler_p2p_service_update(
  58. DBusMessage *message, struct wpa_supplicant *wpa_s);
  59. DBusMessage *wpas_dbus_handler_p2p_serv_disc_external(
  60. DBusMessage *message, struct wpa_supplicant *wpa_s);
  61. /*
  62. * P2P Device property accessor methods.
  63. */
  64. dbus_bool_t wpas_dbus_setter_p2p_device_config(DBusMessageIter *iter,
  65. DBusError *error,
  66. void *user_data);
  67. dbus_bool_t wpas_dbus_getter_p2p_device_config(DBusMessageIter *iter,
  68. DBusError *error,
  69. void *user_data);
  70. dbus_bool_t wpas_dbus_getter_p2p_peers(DBusMessageIter *iter, DBusError *error,
  71. void *user_data);
  72. dbus_bool_t wpas_dbus_getter_p2p_role(DBusMessageIter *iter, DBusError *error,
  73. void *user_data);
  74. dbus_bool_t wpas_dbus_getter_p2p_group(DBusMessageIter *iter, DBusError *error,
  75. void *user_data);
  76. dbus_bool_t wpas_dbus_getter_p2p_peergo(DBusMessageIter *iter,
  77. DBusError *error,
  78. void *user_data);
  79. /*
  80. * P2P Peer properties.
  81. */
  82. dbus_bool_t wpas_dbus_getter_p2p_peer_device_name(DBusMessageIter *iter,
  83. DBusError *error,
  84. void *user_data);
  85. dbus_bool_t wpas_dbus_getter_p2p_peer_manufacturer(DBusMessageIter *iter,
  86. DBusError *error,
  87. void *user_data);
  88. dbus_bool_t wpas_dbus_getter_p2p_peer_modelname(DBusMessageIter *iter,
  89. DBusError *error,
  90. void *user_data);
  91. dbus_bool_t wpas_dbus_getter_p2p_peer_modelnumber(DBusMessageIter *iter,
  92. DBusError *error,
  93. void *user_data);
  94. dbus_bool_t wpas_dbus_getter_p2p_peer_serialnumber(DBusMessageIter *iter,
  95. DBusError *error,
  96. void *user_data);
  97. dbus_bool_t wpas_dbus_getter_p2p_peer_primary_device_type(
  98. DBusMessageIter *iter, DBusError *error, void *user_data);
  99. dbus_bool_t wpas_dbus_getter_p2p_peer_config_method(DBusMessageIter *iter,
  100. DBusError *error,
  101. void *user_data);
  102. dbus_bool_t wpas_dbus_getter_p2p_peer_level(DBusMessageIter *iter,
  103. DBusError *error,
  104. void *user_data);
  105. dbus_bool_t wpas_dbus_getter_p2p_peer_device_capability(DBusMessageIter *iter,
  106. DBusError *error,
  107. void *user_data);
  108. dbus_bool_t wpas_dbus_getter_p2p_peer_group_capability(DBusMessageIter *iter,
  109. DBusError *error,
  110. void *user_data);
  111. dbus_bool_t wpas_dbus_getter_p2p_peer_secondary_device_types(
  112. DBusMessageIter *iter, DBusError *error, void *user_data);
  113. dbus_bool_t wpas_dbus_getter_p2p_peer_vendor_extension(DBusMessageIter *iter,
  114. DBusError *error,
  115. void *user_data);
  116. dbus_bool_t wpas_dbus_getter_p2p_peer_ies(DBusMessageIter *iter,
  117. DBusError *error,
  118. void *user_data);
  119. dbus_bool_t wpas_dbus_getter_p2p_peer_device_address(DBusMessageIter *iter,
  120. DBusError *error,
  121. void *user_data);
  122. dbus_bool_t wpas_dbus_getter_p2p_peer_groups(DBusMessageIter *iter,
  123. DBusError *error,
  124. void *user_data);
  125. /*
  126. * P2P Group properties
  127. */
  128. dbus_bool_t wpas_dbus_getter_p2p_group_members(DBusMessageIter *iter,
  129. DBusError *error,
  130. void *user_data);
  131. dbus_bool_t wpas_dbus_getter_p2p_group_ssid(DBusMessageIter *iter,
  132. DBusError *error,
  133. void *user_data);
  134. dbus_bool_t wpas_dbus_getter_p2p_group_bssid(DBusMessageIter *iter,
  135. DBusError *error,
  136. void *user_data);
  137. dbus_bool_t wpas_dbus_getter_p2p_group_frequency(DBusMessageIter *iter,
  138. DBusError *error,
  139. void *user_data);
  140. dbus_bool_t wpas_dbus_getter_p2p_group_passphrase(DBusMessageIter *iter,
  141. DBusError *error,
  142. void *user_data);
  143. dbus_bool_t wpas_dbus_getter_p2p_group_psk(DBusMessageIter *iter,
  144. DBusError *error,
  145. void *user_data);
  146. dbus_bool_t wpas_dbus_getter_p2p_group_vendor_ext(DBusMessageIter *iter,
  147. DBusError *error,
  148. void *user_data);
  149. dbus_bool_t wpas_dbus_setter_p2p_group_vendor_ext(DBusMessageIter *iter,
  150. DBusError *error,
  151. void *user_data);
  152. /*
  153. * P2P Persistent Groups and properties
  154. */
  155. dbus_bool_t wpas_dbus_getter_persistent_groups(DBusMessageIter *iter,
  156. DBusError *error,
  157. void *user_data);
  158. dbus_bool_t wpas_dbus_getter_persistent_group_properties(DBusMessageIter *iter,
  159. DBusError *error, void *user_data);
  160. dbus_bool_t wpas_dbus_setter_persistent_group_properties(DBusMessageIter *iter,
  161. DBusError *error,
  162. void *user_data);
  163. DBusMessage * wpas_dbus_handler_add_persistent_group(
  164. DBusMessage *message, struct wpa_supplicant *wpa_s);
  165. DBusMessage * wpas_dbus_handler_remove_persistent_group(
  166. DBusMessage *message, struct wpa_supplicant *wpa_s);
  167. DBusMessage * wpas_dbus_handler_remove_all_persistent_groups(
  168. DBusMessage *message, struct wpa_supplicant *wpa_s);
  169. #ifdef CONFIG_WIFI_DISPLAY
  170. dbus_bool_t wpas_dbus_getter_global_wfd_ies(DBusMessageIter *iter,
  171. DBusError *error,
  172. void *user_data);
  173. dbus_bool_t wpas_dbus_setter_global_wfd_ies(DBusMessageIter *iter,
  174. DBusError *error,
  175. void *user_data);
  176. #endif /* CONFIG_WIFI_DISPLAY */
  177. #endif /* DBUS_NEW_HANDLERS_P2P_H */