Add header file for common types
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Dec 2008 00:38:52 +0000 (01:38 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Dec 2008 00:38:52 +0000 (01:38 +0100)
include/Makefile.am
include/types.h [new file with mode: 0644]

index 67dbbcf..67ffb4e 100644 (file)
@@ -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/types.h b/include/types.h
new file mode 100644 (file)
index 0000000..f99ff07
--- /dev/null
@@ -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 */