notify.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /*
  2. * wpa_supplicant - Event notifications
  3. * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * Alternatively, this software may be distributed under the terms of BSD
  10. * license.
  11. *
  12. * See README and COPYING for more details.
  13. */
  14. #include "includes.h"
  15. #include "common.h"
  16. #include "config.h"
  17. #include "wpa_supplicant_i.h"
  18. #include "wps_supplicant.h"
  19. #include "ctrl_iface_dbus.h"
  20. #include "notify.h"
  21. void wpas_notify_state_changed(struct wpa_supplicant *wpa_s,
  22. wpa_states new_state, wpa_states old_state)
  23. {
  24. /* notify the old DBus API */
  25. wpa_supplicant_dbus_notify_state_change(wpa_s, new_state,
  26. old_state);
  27. }
  28. void wpas_notify_network_changed(struct wpa_supplicant *wpa_s)
  29. {
  30. }
  31. void wpas_notify_ap_scan_changed(struct wpa_supplicant *wpa_s)
  32. {
  33. }
  34. void wpas_notify_bssid_changed(struct wpa_supplicant *wpa_s)
  35. {
  36. }
  37. void wpas_notify_network_enabled_changed(struct wpa_supplicant *wpa_s,
  38. struct wpa_ssid *ssid)
  39. {
  40. }
  41. void wpas_notify_network_selected(struct wpa_supplicant *wpa_s,
  42. struct wpa_ssid *ssid)
  43. {
  44. }
  45. void wpas_notify_unregister_interface(struct wpa_supplicant *wpa_s)
  46. {
  47. /* unregister interface in old DBus ctrl iface */
  48. wpas_dbus_unregister_iface(wpa_s);
  49. }
  50. void wpas_notify_scanning(struct wpa_supplicant *wpa_s)
  51. {
  52. /* notify the old DBus API */
  53. wpa_supplicant_dbus_notify_scanning(wpa_s);
  54. }
  55. void wpas_notify_scan_done(struct wpa_supplicant *wpa_s, int success)
  56. {
  57. }
  58. void wpas_notify_scan_results(struct wpa_supplicant *wpa_s)
  59. {
  60. /* notify the old DBus API */
  61. wpa_supplicant_dbus_notify_scan_results(wpa_s);
  62. wpas_wps_notify_scan_results(wpa_s);
  63. }
  64. void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s,
  65. const struct wps_credential *cred)
  66. {
  67. /* notify the old DBus API */
  68. wpa_supplicant_dbus_notify_wps_cred(wpa_s, cred);
  69. }
  70. void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s,
  71. struct wps_event_m2d *m2d)
  72. {
  73. }
  74. void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s,
  75. struct wps_event_fail *fail)
  76. {
  77. }
  78. void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s)
  79. {
  80. }
  81. void wpas_notify_network_added(struct wpa_supplicant *wpa_s,
  82. struct wpa_ssid *ssid)
  83. {
  84. }
  85. void wpas_notify_network_removed(struct wpa_supplicant *wpa_s,
  86. struct wpa_ssid *ssid)
  87. {
  88. }
  89. void wpas_notify_blob_added(struct wpa_supplicant *wpa_s, const char *name)
  90. {
  91. }
  92. void wpas_notify_blob_removed(struct wpa_supplicant *wpa_s, const char *name)
  93. {
  94. }
  95. void wpas_notify_debug_params_changed(struct wpa_global *global)
  96. {
  97. }