Send signals for service state changes
[connman] / src / connman.h
index 6da4c7a..f370e0d 100644 (file)
@@ -36,6 +36,7 @@ DBusMessage *__connman_error_failed(DBusMessage *msg);
 DBusMessage *__connman_error_invalid_arguments(DBusMessage *msg);
 DBusMessage *__connman_error_permission_denied(DBusMessage *msg);
 DBusMessage *__connman_error_not_supported(DBusMessage *msg);
+DBusMessage *__connman_error_not_implemented(DBusMessage *msg);
 
 int __connman_selftest(void);
 
@@ -52,17 +53,21 @@ int __connman_profile_init(DBusConnection *conn);
 void __connman_profile_cleanup(void);
 
 void __connman_profile_list(DBusMessageIter *iter);
+const char *__connman_profile_active(void);
+
+void __connman_profile_changed(void);
 
 #include <connman/log.h>
 
 int __connman_log_init(gboolean detach, gboolean debug);
 void __connman_log_cleanup(void);
 
+void __connman_toggle_debug(void);
 gboolean __connman_debug_enabled(void);
 
 #include <connman/plugin.h>
 
-int __connman_plugin_init(const char *pattern);
+int __connman_plugin_init(const char *pattern, const char *exclude);
 void __connman_plugin_cleanup(void);
 
 #include <connman/security.h>
@@ -75,6 +80,8 @@ int __connman_security_check_privilege(DBusMessage *message,
 const char *__connman_ipv4_method2string(enum connman_ipv4_method method);
 enum connman_ipv4_method __connman_ipv4_string2method(const char *method);
 
+#include <connman/ipconfig.h>
+
 #include <connman/resolver.h>
 
 int __connman_resolver_init(void);
@@ -100,7 +107,8 @@ void __connman_driver_rescan(struct connman_driver *driver);
 
 #include <connman/element.h>
 
-int __connman_element_init(DBusConnection *conn, const char *device);
+int __connman_element_init(DBusConnection *conn, const char *device,
+                                                       const char *nodevice);
 void __connman_element_start(void);
 void __connman_element_stop(void);
 void __connman_element_cleanup(void);
@@ -132,6 +140,11 @@ static inline void __connman_element_unlock(struct connman_element *element)
 {
 }
 
+int __connman_element_append_ipv4(struct connman_element *element,
+                                               DBusMessageIter *dict);
+int __connman_element_set_ipv4(struct connman_element *element,
+                               const char *name, DBusMessageIter *value);
+
 int __connman_detect_init(void);
 void __connman_detect_cleanup(void);
 
@@ -166,12 +179,18 @@ void __connman_device_decrease_connections(struct connman_device *device);
 void __connman_device_set_network(struct connman_device *device,
                                        struct connman_network *network);
 
-void __connman_device_disconnect(struct connman_device *device);
+int __connman_device_connect(struct connman_device *device);
+int __connman_device_disconnect(struct connman_device *device);
 
 connman_bool_t __connman_device_has_driver(struct connman_device *device);
 
+const char *__connman_device_get_type(struct connman_device *device);
+
 int __connman_device_set_offlinemode(connman_bool_t offlinemode);
 
+int __connman_profile_add_device(struct connman_device *device);
+int __connman_profile_remove_device(struct connman_device *device);
+
 #include <connman/network.h>
 
 int __connman_network_init(void);
@@ -184,6 +203,38 @@ int __connman_network_disconnect(struct connman_network *network);
 
 connman_bool_t __connman_network_has_driver(struct connman_network *network);
 
+const char *__connman_network_get_type(struct connman_network *network);
+const char *__connman_network_get_group(struct connman_network *network);
+
+int __connman_profile_add_network(struct connman_network *network);
+int __connman_profile_remove_network(struct connman_network *network);
+
+#include <connman/service.h>
+
+int __connman_service_init(void);
+void __connman_service_cleanup(void);
+
+void __connman_service_list(DBusMessageIter *iter);
+
+struct connman_service *__connman_service_lookup_from_device(struct connman_device *device);
+struct connman_service *__connman_service_create_from_device(struct connman_device *device);
+
+struct connman_service *__connman_service_lookup_from_network(struct connman_network *network);
+struct connman_service *__connman_service_create_from_network(struct connman_network *network);
+
+int __connman_service_set_carrier(struct connman_service *service,
+                                               connman_bool_t carrier);
+int __connman_service_indicate_configuration(struct connman_service *service);
+
+#include <connman/notifier.h>
+
+int __connman_notifier_init(void);
+void __connman_notifier_cleanup(void);
+
+void __connman_notifier_device_type_increase(enum connman_device_type type);
+void __connman_notifier_device_type_decrease(enum connman_device_type type);
+void __connman_notifier_offline_mode(connman_bool_t enabled);
+
 #include <connman/rtnl.h>
 
 int __connman_rtnl_init(void);