From 68cb90edd4b5b27813f937cca498c298305095cb Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 11 Dec 2008 17:12:27 +0100 Subject: [PATCH] Add definitions for IPv4 methods --- doc/connman-docs.xml | 1 + include/Makefile.am | 2 +- include/ipv4.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ src/connman.h | 1 + 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 include/ipv4.h diff --git a/doc/connman-docs.xml b/doc/connman-docs.xml index 542c4e1..a0e12e2 100644 --- a/doc/connman-docs.xml +++ b/doc/connman-docs.xml @@ -104,6 +104,7 @@ + diff --git a/include/Makefile.am b/include/Makefile.am index 704ac56..8c6617e 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -2,7 +2,7 @@ includedir = @includedir@/connman include_HEADERS = log.h plugin.h security.h resolver.h driver.h \ - element.h property.h network.h rtnl.h dbus.h + element.h property.h network.h ipv4.h rtnl.h dbus.h noinst_HEADERS = device.h diff --git a/include/ipv4.h b/include/ipv4.h new file mode 100644 index 0000000..3cbf85b --- /dev/null +++ b/include/ipv4.h @@ -0,0 +1,46 @@ +/* + * + * 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_IPV4_H +#define __CONNMAN_IPV4_H + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * SECTION:ipv4 + * @title: IPv4 premitives + * @short_description: Functions for handling IPv4 + */ + +enum connman_ipv4_method { + CONNMAN_IPV4_METHOD_UNKNOWN = 0, + CONNMAN_IPV4_METHOD_OFF = 1, + CONNMAN_IPV4_METHOD_STATIC = 2, + CONNMAN_IPV4_METHOD_DHCP = 3, +}; + +#ifdef __cplusplus +} +#endif + +#endif /* __CONNMAN_IPV4_H */ diff --git a/src/connman.h b/src/connman.h index 965a283..44a56ef 100644 --- a/src/connman.h +++ b/src/connman.h @@ -62,6 +62,7 @@ void __connman_plugin_cleanup(void); int __connman_security_check_privileges(DBusMessage *message); +#include #include #include -- 1.7.9.5