Add event callbacks for device state and offline mode changes
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 11 Mar 2009 20:30:51 +0000 (21:30 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 11 Mar 2009 20:30:51 +0000 (21:30 +0100)
plugins/iospm.c

index b9d657d..9d5db44 100644 (file)
 #include <connman/notifier.h>
 #include <connman/log.h>
 
+static void iospm_device_enabled(enum connman_device_type type,
+                                               connman_bool_t enabled)
+{
+       DBG("type %d enabled %d", type, enabled);
+}
+
+static void iospm_offline_mode(connman_bool_t enabled)
+{
+       DBG("enabled %d", enabled);
+}
+
 static struct connman_notifier iospm_notifier = {
        .name           = "iospm",
        .priority       = CONNMAN_NOTIFIER_PRIORITY_DEFAULT,
+       .device_enabled = iospm_device_enabled,
+       .offline_mode   = iospm_offline_mode,
 };
 
 static int iospm_init(void)