summaryrefslogtreecommitdiff
path: root/tools/supplicant-test.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-23 05:31:21 -0800
committerMarcel Holtmann <marcel@holtmann.org>2009-12-23 05:31:21 -0800
commitf034d0bca38b1fca601fdeafbd9aaa78debd0b6f (patch)
tree61a50e9bfb8e379ed21fb3a2c8e247db9e422c27 /tools/supplicant-test.c
parent12e1ac58c3f4728079a9d5053c5d1fc722df2b8c (diff)
downloadconnman-f034d0bca38b1fca601fdeafbd9aaa78debd0b6f.tar.gz
connman-f034d0bca38b1fca601fdeafbd9aaa78debd0b6f.tar.bz2
connman-f034d0bca38b1fca601fdeafbd9aaa78debd0b6f.zip
Add code for retrieving supplicant global properties
Diffstat (limited to 'tools/supplicant-test.c')
-rw-r--r--tools/supplicant-test.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/supplicant-test.c b/tools/supplicant-test.c
index 24fd5d8f..d2bb3c28 100644
--- a/tools/supplicant-test.c
+++ b/tools/supplicant-test.c
@@ -31,9 +31,7 @@
#include <gdbus.h>
-#define DBG(fmt, arg...) do { \
- syslog(LOG_DEBUG, "%s:%s() " fmt, __FILE__, __FUNCTION__ , ## arg); \
-} while (0)
+#include "supplicant.h"
static GMainLoop *main_loop = NULL;
@@ -82,8 +80,16 @@ int main(int argc, char *argv[])
syslog(LOG_INFO, "Startup");
+ if (supplicant_init() < 0) {
+ syslog(LOG_ERR, "Failed to init supplicant");
+ goto done;
+ }
+
g_main_loop_run(main_loop);
+ supplicant_exit();
+
+done:
syslog(LOG_INFO, "Exit");
dbus_connection_unref(conn);