summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/connman-docs.xml1
-rw-r--r--include/Makefile.am2
-rw-r--r--include/ipv4.h46
-rw-r--r--src/connman.h1
4 files changed, 49 insertions, 1 deletions
diff --git a/doc/connman-docs.xml b/doc/connman-docs.xml
index 542c4e18..a0e12e23 100644
--- a/doc/connman-docs.xml
+++ b/doc/connman-docs.xml
@@ -104,6 +104,7 @@
<xi:include href="xml/security.xml" />
<xi:include href="xml/element.xml" />
<xi:include href="xml/driver.xml" />
+ <xi:include href="xml/ipv4.xml" />
</reference>
<appendix id="license">
diff --git a/include/Makefile.am b/include/Makefile.am
index 704ac561..8c6617e6 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 00000000..3cbf85b2
--- /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 965a2839..44a56ef2 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 <connman/ipv4.h>
#include <connman/resolver.h>
#include <connman/driver.h>