Make use of connman_bool_t type
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Dec 2008 00:45:13 +0000 (01:45 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Dec 2008 00:45:13 +0000 (01:45 +0100)
include/device.h
src/device.c

index 7d26cc9..8eba617 100644 (file)
@@ -26,6 +26,7 @@
 extern "C" {
 #endif
 
+#include <connman/types.h>
 #include <connman/network.h>
 
 /**
@@ -81,11 +82,11 @@ extern void connman_device_set_mode(struct connman_device *device,
                                                enum connman_device_mode mode);
 
 extern int connman_device_set_powered(struct connman_device *device,
-                                                       gboolean powered);
+                                               connman_bool_t powered);
 extern int connman_device_set_carrier(struct connman_device *device,
-                                                       gboolean carrier);
+                                               connman_bool_t carrier);
 extern int connman_device_set_scanning(struct connman_device *device,
-                                                       gboolean scanning);
+                                               connman_bool_t scanning);
 
 extern int connman_device_add_network(struct connman_device *device,
                                        struct connman_network *network);
index e92798e..07129ba 100644 (file)
@@ -699,7 +699,7 @@ void connman_device_set_mode(struct connman_device *device,
  * Change power state of device
  */
 int connman_device_set_powered(struct connman_device *device,
-                                                       gboolean powered)
+                                               connman_bool_t powered)
 {
        DBusMessage *signal;
        DBusMessageIter entry, value;
@@ -739,7 +739,7 @@ int connman_device_set_powered(struct connman_device *device,
  * Change carrier state of device (only for device without scanning)
  */
 int connman_device_set_carrier(struct connman_device *device,
-                                                       gboolean carrier)
+                                               connman_bool_t carrier)
 {
        DBG("driver %p carrier %d", device, carrier);
 
@@ -778,7 +778,7 @@ int connman_device_set_carrier(struct connman_device *device,
  * Change scanning state of device
  */
 int connman_device_set_scanning(struct connman_device *device,
-                                                       gboolean scanning)
+                                               connman_bool_t scanning)
 {
        DBusMessage *signal;
        DBusMessageIter entry, value;