1/*
2 * WPA Supplicant / dbus-based control interface
3 * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
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
15#ifndef CTRL_IFACE_DBUS_H
16#define CTRL_IFACE_DBUS_H
17
18struct wps_credential;
19
20#ifdef CONFIG_CTRL_IFACE_DBUS
--- 56 unchanged lines hidden (view full) ---
77int wpa_supplicant_dbus_ctrl_iface_init(struct wpas_dbus_priv *iface);
78void wpa_supplicant_dbus_notify_scan_results(struct wpa_supplicant *wpa_s);
79void wpa_supplicant_dbus_notify_scanning(struct wpa_supplicant *wpa_s);
80void wpa_supplicant_dbus_notify_state_change(struct wpa_supplicant *wpa_s,
81 enum wpa_states new_state,
82 enum wpa_states old_state);
83void wpa_supplicant_dbus_notify_wps_cred(struct wpa_supplicant *wpa_s,
84 const struct wps_credential *cred);
85
86char * wpas_dbus_decompose_object_path(const char *path, char **network,
87 char **bssid);
88
89int wpas_dbus_register_iface(struct wpa_supplicant *wpa_s);
90int wpas_dbus_unregister_iface(struct wpa_supplicant *wpa_s);
91
92
--- 16 unchanged lines hidden (view full) ---
109#define wpa_supplicant_dbus_notify_state_change(w,n,o) do { } while (0)
110
111static inline void
112wpa_supplicant_dbus_notify_wps_cred(struct wpa_supplicant *wpa_s,
113 const struct wps_credential *cred)
114{
115}
116
117static inline int
118wpas_dbus_register_iface(struct wpa_supplicant *wpa_s)
119{
120 return 0;
121}
122
123static inline int
124wpas_dbus_unregister_iface(struct wpa_supplicant *wpa_s)
125{
126 return 0;
127}
128
129#endif /* CONFIG_CTRL_IFACE_DBUS */
130
131#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 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
15#ifndef CTRL_IFACE_DBUS_H
16#define CTRL_IFACE_DBUS_H
17
18struct wps_credential;
19
20#ifdef CONFIG_CTRL_IFACE_DBUS
--- 56 unchanged lines hidden (view full) ---
77int wpa_supplicant_dbus_ctrl_iface_init(struct wpas_dbus_priv *iface);
78void wpa_supplicant_dbus_notify_scan_results(struct wpa_supplicant *wpa_s);
79void wpa_supplicant_dbus_notify_scanning(struct wpa_supplicant *wpa_s);
80void wpa_supplicant_dbus_notify_state_change(struct wpa_supplicant *wpa_s,
81 enum wpa_states new_state,
82 enum wpa_states old_state);
83void wpa_supplicant_dbus_notify_wps_cred(struct wpa_supplicant *wpa_s,
84 const struct wps_credential *cred);
85
86char * wpas_dbus_decompose_object_path(const char *path, char **network,
87 char **bssid);
88
89int wpas_dbus_register_iface(struct wpa_supplicant *wpa_s);
90int wpas_dbus_unregister_iface(struct wpa_supplicant *wpa_s);
91
92
--- 16 unchanged lines hidden (view full) ---
109#define wpa_supplicant_dbus_notify_state_change(w,n,o) do { } while (0)
110
111static inline void
112wpa_supplicant_dbus_notify_wps_cred(struct wpa_supplicant *wpa_s,
113 const struct wps_credential *cred)
114{
115}
116
117static inline int
118wpas_dbus_register_iface(struct wpa_supplicant *wpa_s)
119{
120 return 0;
121}
122
123static inline int
124wpas_dbus_unregister_iface(struct wpa_supplicant *wpa_s)
125{
126 return 0;
127}
128
129#endif /* CONFIG_CTRL_IFACE_DBUS */
130
131#endif /* CTRL_IFACE_DBUS_H */