summaryrefslogtreecommitdiff
path: root/plugins/iospm.c
diff options
context:
space:
mode:
authorZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
committerZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
commit1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 (patch)
tree6e991827d28537f7f40f20786c2354fd04a9fdad /plugins/iospm.c
parentfbe905ab58ecc31fe64c410c5f580cadc30e7f04 (diff)
downloadconnman-upstream/1.24.zip
connman-upstream/1.24.tar.gz
connman-upstream/1.24.tar.bz2
Imported Upstream version 1.24upstream/1.24
Diffstat (limited to 'plugins/iospm.c')
-rw-r--r--plugins/iospm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/iospm.c b/plugins/iospm.c
index 3b014d3..fcb4cea 100644
--- a/plugins/iospm.c
+++ b/plugins/iospm.c
@@ -37,21 +37,21 @@
static DBusConnection *connection;
-static void send_indication(const char *path, connman_bool_t enabled)
+static void send_indication(const char *path, bool enabled)
{
DBusMessage *message;
const char *method;
DBG("path %s enabled %d", path, enabled);
- if (enabled == TRUE)
+ if (enabled)
method = "IndicateStart";
else
method = "IndicateStop";
message = dbus_message_new_method_call(IOSPM_SERVICE, path,
IOSPM_INTERFACE, method);
- if (message == NULL)
+ if (!message)
return;
dbus_message_set_no_reply(message, TRUE);
@@ -62,7 +62,7 @@ static void send_indication(const char *path, connman_bool_t enabled)
}
static void iospm_service_enabled(enum connman_service_type type,
- connman_bool_t enabled)
+ bool enabled)
{
switch (type) {
case CONNMAN_SERVICE_TYPE_UNKNOWN:
@@ -73,6 +73,7 @@ static void iospm_service_enabled(enum connman_service_type type,
case CONNMAN_SERVICE_TYPE_GPS:
case CONNMAN_SERVICE_TYPE_VPN:
case CONNMAN_SERVICE_TYPE_GADGET:
+ case CONNMAN_SERVICE_TYPE_P2P:
break;
case CONNMAN_SERVICE_TYPE_BLUETOOTH:
send_indication(IOSPM_BLUETOOTH, enabled);
@@ -80,7 +81,7 @@ static void iospm_service_enabled(enum connman_service_type type,
}
}
-static void iospm_offline_mode(connman_bool_t enabled)
+static void iospm_offline_mode(bool enabled)
{
send_indication(IOSPM_FLIGHT_MODE, enabled);
}