]>
git.ipfire.org Git - thirdparty/hostap.git/blob - wpa_supplicant/notify.c
2 * wpa_supplicant - Event notifications
3 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
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.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
19 #include "wpa_supplicant_i.h"
20 #include "wps_supplicant.h"
21 #include "ctrl_iface_dbus.h"
25 void wpas_notify_state_changed(struct wpa_supplicant
*wpa_s
,
26 wpa_states new_state
, wpa_states old_state
)
28 /* notify the old DBus API */
29 wpa_supplicant_dbus_notify_state_change(wpa_s
, new_state
,
34 void wpas_notify_network_changed(struct wpa_supplicant
*wpa_s
)
39 void wpas_notify_ap_scan_changed(struct wpa_supplicant
*wpa_s
)
44 void wpas_notify_bssid_changed(struct wpa_supplicant
*wpa_s
)
49 void wpas_notify_network_enabled_changed(struct wpa_supplicant
*wpa_s
,
50 struct wpa_ssid
*ssid
)
55 void wpas_notify_network_selected(struct wpa_supplicant
*wpa_s
,
56 struct wpa_ssid
*ssid
)
61 void wpas_notify_unregister_interface(struct wpa_supplicant
*wpa_s
)
63 /* unregister interface in old DBus ctrl iface */
64 wpas_dbus_unregister_iface(wpa_s
);
68 void wpas_notify_scanning(struct wpa_supplicant
*wpa_s
)
70 /* notify the old DBus API */
71 wpa_supplicant_dbus_notify_scanning(wpa_s
);
75 void wpas_notify_scan_done(struct wpa_supplicant
*wpa_s
, int success
)
80 void wpas_notify_scan_results(struct wpa_supplicant
*wpa_s
)
82 /* notify the old DBus API */
83 wpa_supplicant_dbus_notify_scan_results(wpa_s
);
85 wpas_wps_notify_scan_results(wpa_s
);
89 void wpas_notify_wps_credential(struct wpa_supplicant
*wpa_s
,
90 const struct wps_credential
*cred
)
92 /* notify the old DBus API */
93 wpa_supplicant_dbus_notify_wps_cred(wpa_s
, cred
);
97 void wpas_notify_wps_event_m2d(struct wpa_supplicant
*wpa_s
,
98 struct wps_event_m2d
*m2d
)
103 void wpas_notify_wps_event_fail(struct wpa_supplicant
*wpa_s
,
104 struct wps_event_fail
*fail
)
109 void wpas_notify_wps_event_success(struct wpa_supplicant
*wpa_s
)
114 void wpas_notify_network_added(struct wpa_supplicant
*wpa_s
,
115 struct wpa_ssid
*ssid
)
120 void wpas_notify_network_removed(struct wpa_supplicant
*wpa_s
,
121 struct wpa_ssid
*ssid
)
126 void wpas_notify_blob_added(struct wpa_supplicant
*wpa_s
, const char *name
)
131 void wpas_notify_blob_removed(struct wpa_supplicant
*wpa_s
, const char *name
)
136 void wpas_notify_debug_params_changed(struct wpa_global
*global
)