dbus_new_handlers_p2p.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /*
  2. * WPA Supplicant / dbus-based control interface for p2p
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * Alternatively, this software may be distributed under the terms of BSD
  9. * license.
  10. *
  11. * See README and COPYING for more details.
  12. */
  13. #ifndef DBUS_NEW_HANDLERS_P2P_H
  14. #define DBUS_NEW_HANDLERS_P2P_H
  15. struct peer_handler_args {
  16. struct wpa_supplicant *wpa_s;
  17. u8 p2p_device_addr[ETH_ALEN];
  18. };
  19. struct groupmember_handler_args {
  20. struct wpa_supplicant *wpa_s;
  21. u8 member_addr[ETH_ALEN];
  22. };
  23. /*
  24. * P2P Device methods
  25. */
  26. DBusMessage *wpas_dbus_handler_p2p_find(
  27. DBusMessage *message, struct wpa_supplicant *wpa_s);
  28. DBusMessage *wpas_dbus_handler_p2p_stop_find(
  29. DBusMessage *message, struct wpa_supplicant *wpa_s);
  30. DBusMessage *wpas_dbus_handler_p2p_rejectpeer(
  31. DBusMessage *message, struct wpa_supplicant *wpa_s);
  32. DBusMessage *wpas_dbus_handler_p2p_listen(
  33. DBusMessage *message, struct wpa_supplicant *wpa_s);
  34. DBusMessage *wpas_dbus_handler_p2p_extendedlisten(
  35. DBusMessage *message, struct wpa_supplicant *wpa_s);
  36. DBusMessage *wpas_dbus_handler_p2p_presence_request(
  37. DBusMessage *message, struct wpa_supplicant *wpa_s);
  38. DBusMessage *wpas_dbus_handler_p2p_prov_disc_req(
  39. DBusMessage *message, struct wpa_supplicant *wpa_s);
  40. DBusMessage *wpas_dbus_handler_p2p_group_add(
  41. DBusMessage *message, struct wpa_supplicant *wpa_s);
  42. DBusMessage *wpas_dbus_handler_p2p_connect(
  43. DBusMessage *message,
  44. struct wpa_supplicant *wpa_s);
  45. DBusMessage *wpas_dbus_handler_p2p_invite(
  46. DBusMessage *message,
  47. struct wpa_supplicant *wpa_s);
  48. DBusMessage *wpas_dbus_handler_p2p_disconnect(
  49. DBusMessage *message, struct wpa_supplicant *wpa_s);
  50. DBusMessage *wpas_dbus_handler_p2p_flush(
  51. DBusMessage *message, struct wpa_supplicant *wpa_s);
  52. DBusMessage *wpas_dbus_handler_p2p_add_service(
  53. DBusMessage *message, struct wpa_supplicant *wpa_s);
  54. DBusMessage *wpas_dbus_handler_p2p_delete_service(
  55. DBusMessage *message, struct wpa_supplicant *wpa_s);
  56. DBusMessage *wpas_dbus_handler_p2p_flush_service(
  57. DBusMessage *message, struct wpa_supplicant *wpa_s);
  58. DBusMessage *wpas_dbus_handler_p2p_service_sd_req(
  59. DBusMessage *message, struct wpa_supplicant *wpa_s);
  60. DBusMessage *wpas_dbus_handler_p2p_service_sd_res(
  61. DBusMessage *message, struct wpa_supplicant *wpa_s);
  62. DBusMessage *wpas_dbus_handler_p2p_service_sd_cancel_req(
  63. DBusMessage *message, struct wpa_supplicant *wpa_s);
  64. DBusMessage *wpas_dbus_handler_p2p_service_update(
  65. DBusMessage *message, struct wpa_supplicant *wpa_s);
  66. DBusMessage *wpas_dbus_handler_p2p_serv_disc_external(
  67. DBusMessage *message, struct wpa_supplicant *wpa_s);
  68. /*
  69. * P2P Device property accessor methods.
  70. */
  71. DBusMessage *wpas_dbus_setter_p2p_device_properties(DBusMessage *message,
  72. struct wpa_supplicant *wpa_s);
  73. DBusMessage *wpas_dbus_getter_p2p_device_properties(DBusMessage *message,
  74. struct wpa_supplicant *wpa_s);
  75. DBusMessage *wpas_dbus_getter_p2p_peers(DBusMessage *message,
  76. struct wpa_supplicant *wpa_s);
  77. DBusMessage *wpas_dbus_getter_p2p_role(DBusMessage *message,
  78. struct wpa_supplicant *wpa_s);
  79. DBusMessage *wpas_dbus_getter_p2p_group(DBusMessage *message,
  80. struct wpa_supplicant *wpa_s);
  81. DBusMessage *wpas_dbus_getter_p2p_peergo(DBusMessage *message,
  82. struct wpa_supplicant *wpa_s);
  83. /*
  84. * P2P Peer properties.
  85. */
  86. DBusMessage *wpas_dbus_getter_p2p_peer_properties(
  87. DBusMessage *message,
  88. struct peer_handler_args *peer);
  89. DBusMessage *wpas_dbus_getter_p2p_peer_ies(
  90. DBusMessage *message,
  91. struct peer_handler_args *peer);
  92. /*
  93. * P2P Group properties
  94. */
  95. DBusMessage *wpas_dbus_getter_p2p_group_members(
  96. DBusMessage *message,
  97. struct wpa_supplicant *wpa_s);
  98. DBusMessage *wpas_dbus_getter_p2p_group_properties(
  99. DBusMessage *message,
  100. struct wpa_supplicant *wpa_s);
  101. DBusMessage *wpas_dbus_setter_p2p_group_properties(
  102. DBusMessage *message,
  103. struct wpa_supplicant *wpa_s);
  104. #endif /* DBUS_NEW_HANDLERS_P2P_H */