wpa_supplicant / hostapd 2.0

notify.h

Go to the documentation of this file.
00001 
00010 #ifndef NOTIFY_H
00011 #define NOTIFY_H
00012 
00013 #include "p2p/p2p.h"
00014 
00015 struct wps_credential;
00016 struct wps_event_m2d;
00017 struct wps_event_fail;
00018 
00019 int wpas_notify_supplicant_initialized(struct wpa_global *global);
00020 void wpas_notify_supplicant_deinitialized(struct wpa_global *global);
00021 int wpas_notify_iface_added(struct wpa_supplicant *wpa_s);
00022 void wpas_notify_iface_removed(struct wpa_supplicant *wpa_s);
00023 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s,
00024                                enum wpa_states new_state,
00025                                enum wpa_states old_state);
00026 void wpas_notify_network_changed(struct wpa_supplicant *wpa_s);
00027 void wpas_notify_ap_scan_changed(struct wpa_supplicant *wpa_s);
00028 void wpas_notify_bssid_changed(struct wpa_supplicant *wpa_s);
00029 void wpas_notify_auth_changed(struct wpa_supplicant *wpa_s);
00030 void wpas_notify_network_enabled_changed(struct wpa_supplicant *wpa_s,
00031                                          struct wpa_ssid *ssid);
00032 void wpas_notify_network_selected(struct wpa_supplicant *wpa_s,
00033                                   struct wpa_ssid *ssid);
00034 void wpas_notify_network_request(struct wpa_supplicant *wpa_s,
00035                                  struct wpa_ssid *ssid,
00036                                  enum wpa_ctrl_req_type rtype,
00037                                  const char *default_txt);
00038 void wpas_notify_scanning(struct wpa_supplicant *wpa_s);
00039 void wpas_notify_scan_done(struct wpa_supplicant *wpa_s, int success);
00040 void wpas_notify_scan_results(struct wpa_supplicant *wpa_s);
00041 void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s,
00042                                 const struct wps_credential *cred);
00043 void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s,
00044                                struct wps_event_m2d *m2d);
00045 void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s,
00046                                 struct wps_event_fail *fail);
00047 void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s);
00048 void wpas_notify_network_added(struct wpa_supplicant *wpa_s,
00049                                struct wpa_ssid *ssid);
00050 void wpas_notify_network_removed(struct wpa_supplicant *wpa_s,
00051                                  struct wpa_ssid *ssid);
00052 void wpas_notify_bss_added(struct wpa_supplicant *wpa_s, u8 bssid[],
00053                            unsigned int id);
00054 void wpas_notify_bss_removed(struct wpa_supplicant *wpa_s, u8 bssid[],
00055                              unsigned int id);
00056 void wpas_notify_bss_freq_changed(struct wpa_supplicant *wpa_s,
00057                                   unsigned int id);
00058 void wpas_notify_bss_signal_changed(struct wpa_supplicant *wpa_s,
00059                                     unsigned int id);
00060 void wpas_notify_bss_privacy_changed(struct wpa_supplicant *wpa_s,
00061                                      unsigned int id);
00062 void wpas_notify_bss_mode_changed(struct wpa_supplicant *wpa_s,
00063                                   unsigned int id);
00064 void wpas_notify_bss_wpaie_changed(struct wpa_supplicant *wpa_s,
00065                                    unsigned int id);
00066 void wpas_notify_bss_rsnie_changed(struct wpa_supplicant *wpa_s,
00067                                    unsigned int id);
00068 void wpas_notify_bss_wps_changed(struct wpa_supplicant *wpa_s,
00069                                  unsigned int id);
00070 void wpas_notify_bss_ies_changed(struct wpa_supplicant *wpa_s,
00071                                  unsigned int id);
00072 void wpas_notify_bss_rates_changed(struct wpa_supplicant *wpa_s,
00073                                    unsigned int id);
00074 void wpas_notify_blob_added(struct wpa_supplicant *wpa_s, const char *name);
00075 void wpas_notify_blob_removed(struct wpa_supplicant *wpa_s, const char *name);
00076 
00077 void wpas_notify_debug_level_changed(struct wpa_global *global);
00078 void wpas_notify_debug_timestamp_changed(struct wpa_global *global);
00079 void wpas_notify_debug_show_keys_changed(struct wpa_global *global);
00080 void wpas_notify_suspend(struct wpa_global *global);
00081 void wpas_notify_resume(struct wpa_global *global);
00082 
00083 void wpas_notify_sta_authorized(struct wpa_supplicant *wpa_s,
00084                                 const u8 *mac_addr, int authorized,
00085                                 const u8 *p2p_dev_addr);
00086 void wpas_notify_p2p_device_found(struct wpa_supplicant *wpa_s,
00087                                   const u8 *dev_addr, int new_device);
00088 void wpas_notify_p2p_device_lost(struct wpa_supplicant *wpa_s,
00089                                  const u8 *dev_addr);
00090 void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s,
00091                                    const struct wpa_ssid *ssid,
00092                                    const char *role);
00093 void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
00094                                 const u8 *src, u16 dev_passwd_id);
00095 void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s,
00096                                       struct p2p_go_neg_results *res);
00097 void wpas_notify_p2p_invitation_result(struct wpa_supplicant *wpa_s,
00098                                        int status, const u8 *bssid);
00099 void wpas_notify_p2p_sd_request(struct wpa_supplicant *wpa_s,
00100                                 int freq, const u8 *sa, u8 dialog_token,
00101                                 u16 update_indic, const u8 *tlvs,
00102                                 size_t tlvs_len);
00103 void wpas_notify_p2p_sd_response(struct wpa_supplicant *wpa_s,
00104                                  const u8 *sa, u16 update_indic,
00105                                  const u8 *tlvs, size_t tlvs_len);
00106 void wpas_notify_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
00107                                          const u8 *dev_addr, int request,
00108                                          enum p2p_prov_disc_status status,
00109                                          u16 config_methods,
00110                                          unsigned int generated_pin);
00111 void wpas_notify_p2p_group_started(struct wpa_supplicant *wpa_s,
00112                                    struct wpa_ssid *ssid, int network_id,
00113                                    int client);
00114 void wpas_notify_persistent_group_added(struct wpa_supplicant *wpa_s,
00115                                         struct wpa_ssid *ssid);
00116 void wpas_notify_persistent_group_removed(struct wpa_supplicant *wpa_s,
00117                                           struct wpa_ssid *ssid);
00118 
00119 void wpas_notify_p2p_wps_failed(struct wpa_supplicant *wpa_s,
00120                                 struct wps_event_fail *fail);
00121 
00122 void wpas_notify_certification(struct wpa_supplicant *wpa_s, int depth,
00123                                const char *subject, const char *cert_hash,
00124                                const struct wpabuf *cert);
00125 void wpas_notify_preq(struct wpa_supplicant *wpa_s,
00126                       const u8 *addr, const u8 *dst, const u8 *bssid,
00127                       const u8 *ie, size_t ie_len, u32 ssi_signal);
00128 
00129 #endif /* NOTIFY_H */
00130 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines