diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-03-11 21:30:51 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-03-11 21:30:51 +0100 |
commit | c23a88af4f9b3e55d7c76dcf0c25070d05ba8cf1 (patch) | |
tree | 86d1665d27b759ee4612b0aa7f086d26808674be /plugins/iospm.c | |
parent | 87d190b3060eac7409f9c893e0a69ace65081f54 (diff) | |
download | connman-c23a88af4f9b3e55d7c76dcf0c25070d05ba8cf1.tar.gz connman-c23a88af4f9b3e55d7c76dcf0c25070d05ba8cf1.tar.bz2 connman-c23a88af4f9b3e55d7c76dcf0c25070d05ba8cf1.zip |
Add event callbacks for device state and offline mode changes
Diffstat (limited to 'plugins/iospm.c')
-rw-r--r-- | plugins/iospm.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/iospm.c b/plugins/iospm.c index b9d657d9..9d5db44b 100644 --- a/plugins/iospm.c +++ b/plugins/iospm.c @@ -28,9 +28,22 @@ #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) |