From f2d194037974daa0f57a7c5943e1bede13f8e92b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 30 Dec 2008 01:38:52 +0100 Subject: [PATCH] Add header file for common types --- include/Makefile.am | 3 ++- include/types.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 include/types.h 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/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 */ -- 1.7.9.5