diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-30 01:38:52 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-30 01:38:52 +0100 |
commit | f2d194037974daa0f57a7c5943e1bede13f8e92b (patch) | |
tree | 00bdb0a66ee4fd684f15d4efdfd721e1e7e1674c | |
parent | 3753d353f974dfc7033a380d7d598c0cf821eeb8 (diff) | |
download | connman-f2d194037974daa0f57a7c5943e1bede13f8e92b.tar.gz connman-f2d194037974daa0f57a7c5943e1bede13f8e92b.tar.bz2 connman-f2d194037974daa0f57a7c5943e1bede13f8e92b.zip |
Add header file for common types
-rw-r--r-- | include/Makefile.am | 3 | ||||
-rw-r--r-- | include/types.h | 43 |
2 files changed, 45 insertions, 1 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 67dbbcf9..67ffb4ed 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/types.h b/include/types.h new file mode 100644 index 00000000..f99ff079 --- /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 */ |