diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-07-24 00:44:08 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-24 00:44:08 +0200 |
commit | 8bdd2e999bd2466908224a2e53b0b9ef77c52c90 (patch) | |
tree | 39c9142922408a22df40289fd894cf036f2970a0 /plugins | |
parent | 313c742d900ad04bd70230bf2bf59907b75b1aed (diff) | |
download | connman-8bdd2e999bd2466908224a2e53b0b9ef77c52c90.tar.gz connman-8bdd2e999bd2466908224a2e53b0b9ef77c52c90.tar.bz2 connman-8bdd2e999bd2466908224a2e53b0b9ef77c52c90.zip |
Fix notification to use service types instead of device types
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/iospm.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/plugins/iospm.c b/plugins/iospm.c index e6443699..02e532ed 100644 --- a/plugins/iospm.c +++ b/plugins/iospm.c @@ -61,23 +61,17 @@ static void send_indication(const char *path, connman_bool_t enabled) dbus_message_unref(message); } -static void iospm_device_enabled(enum connman_device_type type, +static void iospm_service_enabled(enum connman_service_type type, connman_bool_t enabled) { switch (type) { - case CONNMAN_DEVICE_TYPE_UNKNOWN: - case CONNMAN_DEVICE_TYPE_VENDOR: - case CONNMAN_DEVICE_TYPE_ETHERNET: - case CONNMAN_DEVICE_TYPE_WIFI: - case CONNMAN_DEVICE_TYPE_WIMAX: - case CONNMAN_DEVICE_TYPE_GPS: - case CONNMAN_DEVICE_TYPE_MBM: - case CONNMAN_DEVICE_TYPE_HSO: - case CONNMAN_DEVICE_TYPE_NOZOMI: - case CONNMAN_DEVICE_TYPE_HUAWEI: - case CONNMAN_DEVICE_TYPE_NOVATEL: + case CONNMAN_SERVICE_TYPE_UNKNOWN: + case CONNMAN_SERVICE_TYPE_ETHERNET: + case CONNMAN_SERVICE_TYPE_WIFI: + case CONNMAN_SERVICE_TYPE_WIMAX: + case CONNMAN_SERVICE_TYPE_CELLULAR: break; - case CONNMAN_DEVICE_TYPE_BLUETOOTH: + case CONNMAN_SERVICE_TYPE_BLUETOOTH: send_indication(IOSPM_BLUETOOTH, enabled); break; } @@ -91,7 +85,7 @@ static void iospm_offline_mode(connman_bool_t enabled) static struct connman_notifier iospm_notifier = { .name = "iospm", .priority = CONNMAN_NOTIFIER_PRIORITY_DEFAULT, - .device_enabled = iospm_device_enabled, + .service_enabled= iospm_service_enabled, .offline_mode = iospm_offline_mode, }; |