1/*
2 * WPA Supplicant / dbus-based control interface
3 * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#ifndef CTRL_IFACE_DBUS_H
10#define CTRL_IFACE_DBUS_H
11
12struct wps_credential;
13
14#ifdef CONFIG_CTRL_IFACE_DBUS
--- 56 unchanged lines hidden (view full) ---
71int wpa_supplicant_dbus_ctrl_iface_init(struct wpas_dbus_priv *iface);
72void wpa_supplicant_dbus_notify_scan_results(struct wpa_supplicant *wpa_s);
73void wpa_supplicant_dbus_notify_scanning(struct wpa_supplicant *wpa_s);
74void wpa_supplicant_dbus_notify_state_change(struct wpa_supplicant *wpa_s,
75 enum wpa_states new_state,
76 enum wpa_states old_state);
77void wpa_supplicant_dbus_notify_wps_cred(struct wpa_supplicant *wpa_s,
78 const struct wps_credential *cred);
79void wpa_supplicant_dbus_notify_certification(struct wpa_supplicant *wpa_s,
80 int depth, const char *subject,
81 const char *cert_hash,
82 const struct wpabuf *cert);
83
84char * wpas_dbus_decompose_object_path(const char *path, char **network,
85 char **bssid);
86
87int wpas_dbus_register_iface(struct wpa_supplicant *wpa_s);
88int wpas_dbus_unregister_iface(struct wpa_supplicant *wpa_s);
89
90
--- 16 unchanged lines hidden (view full) ---
107#define wpa_supplicant_dbus_notify_state_change(w,n,o) do { } while (0)
108
109static inline void
110wpa_supplicant_dbus_notify_wps_cred(struct wpa_supplicant *wpa_s,
111 const struct wps_credential *cred)
112{
113}
114
115static inline void
116wpa_supplicant_dbus_notify_certification(struct wpa_supplicant *wpa_s,
117 int depth, const char *subject,
118 const char *cert_hash,
119 const struct wpabuf *cert)
120{
121}
122
123static inline int
124wpas_dbus_register_iface(struct wpa_supplicant *wpa_s)
125{
126 return 0;
127}
128
129static inline int
130wpas_dbus_unregister_iface(struct wpa_supplicant *wpa_s)
131{
132 return 0;
133}
134
135#endif /* CONFIG_CTRL_IFACE_DBUS */
136
137#endif /* CTRL_IFACE_DBUS_H */
2 * WPA Supplicant / dbus-based control interface
3 * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#ifndef CTRL_IFACE_DBUS_H
10#define CTRL_IFACE_DBUS_H
11
12struct wps_credential;
13
14#ifdef CONFIG_CTRL_IFACE_DBUS
--- 56 unchanged lines hidden (view full) ---
71int wpa_supplicant_dbus_ctrl_iface_init(struct wpas_dbus_priv *iface);
72void wpa_supplicant_dbus_notify_scan_results(struct wpa_supplicant *wpa_s);
73void wpa_supplicant_dbus_notify_scanning(struct wpa_supplicant *wpa_s);
74void wpa_supplicant_dbus_notify_state_change(struct wpa_supplicant *wpa_s,
75 enum wpa_states new_state,
76 enum wpa_states old_state);
77void wpa_supplicant_dbus_notify_wps_cred(struct wpa_supplicant *wpa_s,
78 const struct wps_credential *cred);
79void wpa_supplicant_dbus_notify_certification(struct wpa_supplicant *wpa_s,
80 int depth, const char *subject,
81 const char *cert_hash,
82 const struct wpabuf *cert);
83
84char * wpas_dbus_decompose_object_path(const char *path, char **network,
85 char **bssid);
86
87int wpas_dbus_register_iface(struct wpa_supplicant *wpa_s);
88int wpas_dbus_unregister_iface(struct wpa_supplicant *wpa_s);
89
90
--- 16 unchanged lines hidden (view full) ---
107#define wpa_supplicant_dbus_notify_state_change(w,n,o) do { } while (0)
108
109static inline void
110wpa_supplicant_dbus_notify_wps_cred(struct wpa_supplicant *wpa_s,
111 const struct wps_credential *cred)
112{
113}
114
115static inline void
116wpa_supplicant_dbus_notify_certification(struct wpa_supplicant *wpa_s,
117 int depth, const char *subject,
118 const char *cert_hash,
119 const struct wpabuf *cert)
120{
121}
122
123static inline int
124wpas_dbus_register_iface(struct wpa_supplicant *wpa_s)
125{
126 return 0;
127}
128
129static inline int
130wpas_dbus_unregister_iface(struct wpa_supplicant *wpa_s)
131{
132 return 0;
133}
134
135#endif /* CONFIG_CTRL_IFACE_DBUS */
136
137#endif /* CTRL_IFACE_DBUS_H */