This email list is read-only.  Emails sent to this list will be discarded
----------------------------------
 include/Makefile.am |    3 ++-
 include/device.h    |    7 ++++---
 include/types.h     |   43 +++++++++++++++++++++++++++++++++++++++++++
 src/device.c        |    6 +++---
 4 files changed, 52 insertions(+), 7 deletions(-)

New commits:
commit 0eb5877de5a276486a8aa9bf57efa3d4ec0714b1
Author: Marcel Holtmann <[email protected]>
Date:   Tue Dec 30 01:45:13 2008 +0100

    Make use of connman_bool_t type

commit f2d194037974daa0f57a7c5943e1bede13f8e92b
Author: Marcel Holtmann <[email protected]>
Date:   Tue Dec 30 01:38:52 2008 +0100

    Add header file for common types


Diff in this email is a maximum of 400 lines.
diff --git a/include/Makefile.am b/include/Makefile.am
index 67dbbcf..67ffb4e 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,7 +1,8 @@
 
 includedir = @includedir@/connman
 
-include_HEADERS = log.h plugin.h security.h resolver.h device.h network.h
+include_HEADERS = types.h log.h plugin.h security.h resolver.h \
+                                               device.h network.h
 
 noinst_HEADERS = driver.h element.h property.h ipv4.h rtnl.h dbus.h
 
diff --git a/include/device.h b/include/device.h
index 7d26cc9..8eba617 100644
--- a/include/device.h
+++ b/include/device.h
@@ -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);
diff --git a/include/types.h b/include/types.h
new file mode 100644
index 0000000..f99ff07
--- /dev/null
+++ b/include/types.h
@@ -0,0 +1,43 @@
+/*
+ *
+ *  Connection Manager
+ *
+ *  Copyright (C) 2007-2008  Intel Corporation. All rights reserved.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License version 2 as
+ *  published by the Free Software Foundation.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ */
+
+#ifndef __CONNMAN_TYPES_H
+#define __CONNMAN_TYPES_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef        FALSE
+#define        FALSE   (0)
+#endif
+
+#ifndef        TRUE
+#define        TRUE    (!FALSE)
+#endif
+
+typedef int    connman_bool_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CONNMAN_TYPES_H */
diff --git a/src/device.c b/src/device.c
index e92798e..07129ba 100644
--- a/src/device.c
+++ b/src/device.c
@@ -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;
_______________________________________________
Commits mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/commits

Reply via email to