From 5cf5986084d5c8b68ee824a463b8ef41838465b0 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 5 Jan 2009 02:18:50 +0100 Subject: [PATCH] Use dbus_bool_t for exported variables --- src/device.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/device.c b/src/device.c index 832146f..9a8f07a 100644 --- a/src/device.c +++ b/src/device.c @@ -33,9 +33,9 @@ struct connman_device { enum connman_device_type type; enum connman_device_mode mode; enum connman_device_policy policy; - gboolean powered; - gboolean carrier; - gboolean scanning; + connman_bool_t powered; + connman_bool_t carrier; + connman_bool_t scanning; char *name; char *node; char *interface; @@ -128,7 +128,7 @@ static enum connman_device_policy string2policy(const char *policy) return CONNMAN_DEVICE_POLICY_UNKNOWN; } -static int set_powered(struct connman_device *device, gboolean powered) +static int set_powered(struct connman_device *device, connman_bool_t powered) { struct connman_device_driver *driver = device->driver; int err; @@ -321,7 +321,7 @@ static DBusMessage *set_property(DBusConnection *conn, return __connman_error_permission_denied(msg); if (g_str_equal(name, "Powered") == TRUE) { - gboolean powered; + connman_bool_t powered; int err; dbus_message_iter_get_basic(&value, &powered); -- 2.7.4