dbus_new_handlers_p2p.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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_primary_device_type(
  86. DBusMessageIter *iter, DBusError *error, void *user_data);
  87. dbus_bool_t wpas_dbus_getter_p2p_peer_config_method(DBusMessageIter *iter,
  88. DBusError *error,
  89. void *user_data);
  90. dbus_bool_t wpas_dbus_getter_p2p_peer_level(DBusMessageIter *iter,
  91. DBusError *error,
  92. void *user_data);
  93. dbus_bool_t wpas_dbus_getter_p2p_peer_device_capability(DBusMessageIter *iter,
  94. DBusError *error,
  95. void *user_data);
  96. dbus_bool_t wpas_dbus_getter_p2p_peer_group_capability(DBusMessageIter *iter,
  97. DBusError *error,
  98. void *user_data);
  99. dbus_bool_t wpas_dbus_getter_p2p_peer_secondary_device_types(
  100. DBusMessageIter *iter, DBusError *error, void *user_data);
  101. dbus_bool_t wpas_dbus_getter_p2p_peer_vendor_extension(DBusMessageIter *iter,
  102. DBusError *error,
  103. void *user_data);
  104. dbus_bool_t wpas_dbus_getter_p2p_peer_ies(DBusMessageIter *iter,
  105. DBusError *error,
  106. void *user_data);
  107. dbus_bool_t wpas_dbus_getter_p2p_peer_device_address(DBusMessageIter *iter,
  108. DBusError *error,
  109. void *user_data);
  110. dbus_bool_t wpas_dbus_getter_p2p_peer_groups(DBusMessageIter *iter,
  111. DBusError *error,
  112. void *user_data);
  113. /*
  114. * P2P Group properties
  115. */
  116. dbus_bool_t wpas_dbus_getter_p2p_group_members(DBusMessageIter *iter,
  117. DBusError *error,
  118. void *user_data);
  119. dbus_bool_t wpas_dbus_getter_p2p_group_ssid(DBusMessageIter *iter,
  120. DBusError *error,
  121. void *user_data);
  122. dbus_bool_t wpas_dbus_getter_p2p_group_bssid(DBusMessageIter *iter,
  123. DBusError *error,
  124. void *user_data);
  125. dbus_bool_t wpas_dbus_getter_p2p_group_frequency(DBusMessageIter *iter,
  126. DBusError *error,
  127. void *user_data);
  128. dbus_bool_t wpas_dbus_getter_p2p_group_passphrase(DBusMessageIter *iter,
  129. DBusError *error,
  130. void *user_data);
  131. dbus_bool_t wpas_dbus_getter_p2p_group_psk(DBusMessageIter *iter,
  132. DBusError *error,
  133. void *user_data);
  134. dbus_bool_t wpas_dbus_getter_p2p_group_vendor_ext(DBusMessageIter *iter,
  135. DBusError *error,
  136. void *user_data);
  137. dbus_bool_t wpas_dbus_setter_p2p_group_vendor_ext(DBusMessageIter *iter,
  138. DBusError *error,
  139. void *user_data);
  140. /*
  141. * P2P Persistent Groups and properties
  142. */
  143. dbus_bool_t wpas_dbus_getter_persistent_groups(DBusMessageIter *iter,
  144. DBusError *error,
  145. void *user_data);
  146. dbus_bool_t wpas_dbus_getter_persistent_group_properties(DBusMessageIter *iter,
  147. DBusError *error, void *user_data);
  148. dbus_bool_t wpas_dbus_setter_persistent_group_properties(DBusMessageIter *iter,
  149. DBusError *error,
  150. void *user_data);
  151. DBusMessage * wpas_dbus_handler_add_persistent_group(
  152. DBusMessage *message, struct wpa_supplicant *wpa_s);
  153. DBusMessage * wpas_dbus_handler_remove_persistent_group(
  154. DBusMessage *message, struct wpa_supplicant *wpa_s);
  155. DBusMessage * wpas_dbus_handler_remove_all_persistent_groups(
  156. DBusMessage *message, struct wpa_supplicant *wpa_s);
  157. #ifdef CONFIG_WIFI_DISPLAY
  158. dbus_bool_t wpas_dbus_getter_global_wfd_ies(DBusMessageIter *iter,
  159. DBusError *error,
  160. void *user_data);
  161. dbus_bool_t wpas_dbus_setter_global_wfd_ies(DBusMessageIter *iter,
  162. DBusError *error,
  163. void *user_data);
  164. #endif /* CONFIG_WIFI_DISPLAY */
  165. #endif /* DBUS_NEW_HANDLERS_P2P_H */