summaryrefslogtreecommitdiff
path: root/tools/supplicant-test.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-30 20:29:50 -0800
committerMarcel Holtmann <marcel@holtmann.org>2009-12-30 20:29:50 -0800
commit7eb2d1dbb241b1fc258402f57a6fac4dd2229feb (patch)
treeb7a6f0f349b8fe7e942c1d7bba6f1098d172d97d /tools/supplicant-test.c
parent692a2f90b8944b73f27a95b9490c2f94109b8733 (diff)
downloadconnman-7eb2d1dbb241b1fc258402f57a6fac4dd2229feb.tar.gz
connman-7eb2d1dbb241b1fc258402f57a6fac4dd2229feb.tar.bz2
connman-7eb2d1dbb241b1fc258402f57a6fac4dd2229feb.zip
Add ready and killed callbacks to supplicant test program
Diffstat (limited to 'tools/supplicant-test.c')
-rw-r--r--tools/supplicant-test.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/supplicant-test.c b/tools/supplicant-test.c
index 988d4920..e7fa4d67 100644
--- a/tools/supplicant-test.c
+++ b/tools/supplicant-test.c
@@ -37,6 +37,18 @@
syslog(LOG_DEBUG, "%s() " fmt, __FUNCTION__ , ## arg); \
} while (0)
+static void system_ready(void)
+{
+ DBG("");
+
+ //supplicant_set_debug_level(1);
+}
+
+static void system_killed(void)
+{
+ DBG("");
+}
+
static void interface_added(struct supplicant_interface *interface)
{
const char *ifname = supplicant_interface_get_ifname(interface);
@@ -68,6 +80,8 @@ static void network_removed(struct supplicant_network *network)
}
static const struct supplicant_callbacks callbacks = {
+ .system_ready = system_ready,
+ .system_killed = system_killed,
.interface_added = interface_added,
.interface_removed = interface_removed,
.network_added = network_added,