Make /etc/resolv.conf modification part of the daemon
[connman] / src / connman.h
index 948fe77..cb5f72a 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  Connection Manager
  *
- *  Copyright (C) 2007-2008  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2009  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
@@ -77,6 +77,9 @@ enum connman_ipv4_method __connman_ipv4_string2method(const char *method);
 
 #include <connman/resolver.h>
 
+int __connman_resolver_init(void);
+void __connman_resolver_cleanup(void);
+
 int __connman_resolver_selftest(void);
 
 #include <connman/driver.h>
@@ -90,6 +93,12 @@ void __connman_element_start(void);
 void __connman_element_stop(void);
 void __connman_element_cleanup(void);
 
+typedef void (* element_cb_t) (struct connman_element *element,
+                                                       gpointer user_data);
+
+void __connman_element_foreach(struct connman_element *element,
+                               enum connman_element_type type,
+                               element_cb_t callback, gpointer user_data);
 void __connman_element_list(struct connman_element *element,
                                        enum connman_element_type type,
                                                        DBusMessageIter *iter);
@@ -116,6 +125,20 @@ static inline void __connman_element_unlock(struct connman_element *element)
 int __connman_detect_init(void);
 void __connman_detect_cleanup(void);
 
+#ifdef HAVE_UDEV
+int __connman_udev_init(void);
+void __connman_udev_cleanup(void);
+#else
+static inline int __connman_udev_init(void)
+{
+       return 0;
+}
+
+static inline void __connman_udev_cleanup(void)
+{
+}
+#endif
+
 #include <connman/device.h>
 
 int __connman_device_init(void);