Add definitions for IPv4 methods
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 11 Dec 2008 16:12:27 +0000 (17:12 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 11 Dec 2008 16:12:27 +0000 (17:12 +0100)
doc/connman-docs.xml
include/Makefile.am
include/ipv4.h [new file with mode: 0644]
src/connman.h

index 542c4e1..a0e12e2 100644 (file)
     <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">
index 704ac56..8c6617e 100644 (file)
@@ -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 (file)
index 0000000..3cbf85b
--- /dev/null
@@ -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 */
index 965a283..44a56ef 100644 (file)
@@ -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>