diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-29 04:07:06 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-29 04:07:06 -0800 |
commit | 3497514256cdbc94a7c72e4f48c1f38e7b1e559a (patch) | |
tree | 5627ffcb55cfca759759a0fda6872b71b743981f /tools/supplicant-dbus.h | |
parent | 13e490f8b49927898121d0949aee62913bbebed7 (diff) | |
download | connman-3497514256cdbc94a7c72e4f48c1f38e7b1e559a.tar.gz connman-3497514256cdbc94a7c72e4f48c1f38e7b1e559a.tar.bz2 connman-3497514256cdbc94a7c72e4f48c1f38e7b1e559a.zip |
Add interface and network handling to supplicant test program
Diffstat (limited to 'tools/supplicant-dbus.h')
-rw-r--r-- | tools/supplicant-dbus.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tools/supplicant-dbus.h b/tools/supplicant-dbus.h new file mode 100644 index 00000000..04cf0f54 --- /dev/null +++ b/tools/supplicant-dbus.h @@ -0,0 +1,46 @@ +/* + * + * Connection Manager + * + * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#include <dbus/dbus.h> + +#define SUPPLICANT_SERVICE "fi.w1.wpa_supplicant1" +#define SUPPLICANT_INTERFACE "fi.w1.wpa_supplicant1" +#define SUPPLICANT_PATH "/fi/w1/wpa_supplicant1" + +typedef void (* supplicant_dbus_array_function) (DBusMessageIter *iter, + void *user_data); + +typedef void (* supplicant_dbus_property_function) (const char *key, + DBusMessageIter *iter, void *user_data); + +void supplicant_dbus_setup(DBusConnection *conn); + +void supplicant_dbus_array_foreach(DBusMessageIter *iter, + supplicant_dbus_array_function function, + void *user_data); + +void supplicant_dbus_property_foreach(DBusMessageIter *iter, + supplicant_dbus_property_function function, + void *user_data); + +int supplicant_dbus_property_get_all(const char *path, const char *interface, + supplicant_dbus_property_function function, + void *user_data); |