e_dbus: uncrustify connman module
authorlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 16 Sep 2010 01:05:02 +0000 (01:05 +0000)
committerlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 16 Sep 2010 01:05:02 +0000 (01:05 +0000)
The following exceptions apply to current uncrustify config:

mod_add_long_function_closebrace_comment=0
mod_add_long_switch_closebrace_comment=0
mod_add_long_ifdef_endif_comment=0
mod_add_long_ifdef_else_comment=0
mod_full_brace_if_chain=true

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@52331 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/connman/E_Connman.h
src/lib/connman/e_connman.c
src/lib/connman/e_connman_device.c
src/lib/connman/e_connman_element.c
src/lib/connman/e_connman_manager.c
src/lib/connman/e_connman_network.c
src/lib/connman/e_connman_private.h
src/lib/connman/e_connman_profile.c
src/lib/connman/e_connman_service.c
src/lib/connman/e_connman_technology.c

index ee80f63..393d7c5 100644 (file)
 extern "C" {
 #endif
 
-  /* Ecore Events */
-  extern int E_CONNMAN_EVENT_MANAGER_IN;
-  extern int E_CONNMAN_EVENT_MANAGER_OUT;
-  extern int E_CONNMAN_EVENT_ELEMENT_ADD;
-  extern int E_CONNMAN_EVENT_ELEMENT_DEL;
-  extern int E_CONNMAN_EVENT_ELEMENT_UPDATED;
+/* Ecore Events */
+extern int E_CONNMAN_EVENT_MANAGER_IN;
+extern int E_CONNMAN_EVENT_MANAGER_OUT;
+extern int E_CONNMAN_EVENT_ELEMENT_ADD;
+extern int E_CONNMAN_EVENT_ELEMENT_DEL;
+extern int E_CONNMAN_EVENT_ELEMENT_UPDATED;
 
-  typedef struct _E_Connman_Element E_Connman_Element;
+typedef struct _E_Connman_Element   E_Connman_Element;
+
+struct _E_Connman_Element
+{
+   const char            *path;
+   const char            *interface;
+   E_DBus_Signal_Handler *signal_handler;
+   Eina_Inlist           *props;
+
+   /* private */
+   struct
+   {
+      Eina_Inlist *properties_get;
+      Eina_Inlist *property_set;
+      Eina_Inlist *agent_register;
+      Eina_Inlist *agent_unregister;
+      Eina_Inlist *request_scan;
+      Eina_Inlist *technology_enable;
+      Eina_Inlist *technology_disable;
+      Eina_Inlist *profile_remove;
+      Eina_Inlist *device_propose_scan;
+      Eina_Inlist *service_connect;
+      Eina_Inlist *service_disconnect;
+      Eina_Inlist *service_remove;
+      Eina_Inlist *service_move_before;
+      Eina_Inlist *service_move_after;
+      Eina_Inlist *service_clear_property;
+   } _pending;
+   struct
+   {
+      Ecore_Idler *changed;
+   } _idler;
+   Eina_Inlist *_listeners;
+   int          _references;
+};
 
-  struct _E_Connman_Element
-  {
-     const char *path;
-     const char *interface;
-     E_DBus_Signal_Handler *signal_handler;
-     Eina_Inlist *props;
+/* General Public API */
+EAPI unsigned int           e_connman_system_init(E_DBus_Connection *edbus_conn) EINA_ARG_NONNULL(1);
+EAPI unsigned int           e_connman_system_shutdown(void);
 
-     /* private */
-     struct {
-       Eina_Inlist *properties_get;
-       Eina_Inlist *property_set;
-       Eina_Inlist *agent_register;
-       Eina_Inlist *agent_unregister;
-       Eina_Inlist *request_scan;
-       Eina_Inlist *technology_enable;
-       Eina_Inlist *technology_disable;
-       Eina_Inlist *profile_remove;
-       Eina_Inlist *device_propose_scan;
-       Eina_Inlist *service_connect;
-       Eina_Inlist *service_disconnect;
-       Eina_Inlist *service_remove;
-       Eina_Inlist *service_move_before;
-       Eina_Inlist *service_move_after;
-       Eina_Inlist *service_clear_property;
-     } _pending;
-     struct {
-       Ecore_Idler *changed;
-     } _idler;
-     Eina_Inlist *_listeners;
-     int _references;
-  };
+/* Manager Methods */
+EAPI E_Connman_Element *    e_connman_manager_get(void) EINA_WARN_UNUSED_RESULT;
 
-  /* General Public API */
-  EAPI unsigned int e_connman_system_init(E_DBus_Connection *edbus_conn) EINA_ARG_NONNULL(1);
-  EAPI unsigned int e_connman_system_shutdown(void);
+EAPI bool                   e_connman_manager_agent_register(const char *object_path, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_agent_unregister(const char *object_path, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  /* Manager Methods */
-  EAPI E_Connman_Element *e_connman_manager_get(void) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_state_get(const char **state) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_manager_agent_register(const char *object_path, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_manager_agent_unregister(const char *object_path, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_offline_mode_get(bool *offline) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_offline_mode_set(bool offline, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_manager_state_get(const char **state) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_profiles_get(unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_services_get(unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2)  EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_technologies_get(unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2)  EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_manager_offline_mode_get(bool *offline) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_manager_offline_mode_set(bool offline, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_request_scan(const char *type, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_manager_profiles_get(unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_manager_services_get(unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2)  EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_manager_technologies_get(unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2)  EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_technology_default_get(const char **type) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_manager_request_scan(const char *type, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_technology_enable(const char *type, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_technology_disable(const char *type, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_manager_technology_default_get(const char **type) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_technologies_available_get(unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_technologies_enabled_get(unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_technologies_connected_get(unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_manager_technology_enable(const char *type, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_manager_technology_disable(const char *type, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_profile_remove(const E_Connman_Element *profile, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_manager_technologies_available_get(unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_manager_technologies_enabled_get(unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_manager_technologies_connected_get(unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_profile_active_get(E_Connman_Element **profile) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_manager_profile_active_set(const E_Connman_Element *profile, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_manager_profile_remove(const E_Connman_Element *profile, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT;
+// TODO: profile_create()
+// TODO: service_connect() (actually creates and connect)
+// TODO: signal E_CONNMAN_EVENT_MANAGER_STATE_CHANGED
 
-  EAPI bool e_connman_manager_profile_active_get(E_Connman_Element **profile) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_manager_profile_active_set(const E_Connman_Element *profile, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT;
+/* Profile Methods */
+EAPI E_Connman_Element *    e_connman_profile_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
+EAPI bool                   e_connman_profile_name_get(const E_Connman_Element *profile, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_profile_name_set(E_Connman_Element *profile, const char *name, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  // TODO: profile_create()
-  // TODO: service_connect() (actually creates and connect)
-  // TODO: signal E_CONNMAN_EVENT_MANAGER_STATE_CHANGED
+EAPI bool                   e_connman_profile_offline_mode_get(const E_Connman_Element *profile, bool *offline) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_profile_offline_mode_set(E_Connman_Element *profile, bool offline, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
+EAPI bool                   e_connman_profile_services_get(const E_Connman_Element *profile, unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
 
-  /* Profile Methods */
-  EAPI E_Connman_Element *e_connman_profile_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+/* Services Methods */
+EAPI E_Connman_Element *    e_connman_service_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_profile_name_get(const E_Connman_Element *profile, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_profile_name_set(E_Connman_Element *profile, const char *name, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_clear_property(E_Connman_Element *service, const char *property, E_DBus_Method_Return_Cb cb, const void *data);
 
-  EAPI bool e_connman_profile_offline_mode_get(const E_Connman_Element *profile, bool *offline) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_profile_offline_mode_set(E_Connman_Element *profile, bool offline, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_remove(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_profile_services_get(const E_Connman_Element *profile, unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_connect(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_disconnect(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
+EAPI bool                   e_connman_service_move_before(E_Connman_Element *service, const char *object_path, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_move_after(E_Connman_Element *service, const char *object_path, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  /* Services Methods */
-  EAPI E_Connman_Element *e_connman_service_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_state_get(const E_Connman_Element *service, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_error_get(const E_Connman_Element *service, const char **error) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_name_get(const E_Connman_Element *service, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_type_get(const E_Connman_Element *service, const char **type) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_mode_get(const E_Connman_Element *service, const char **mode) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_security_get(const E_Connman_Element *service, const char **security) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_clear_property(E_Connman_Element *service, const char *property, E_DBus_Method_Return_Cb cb, const void *data);
+EAPI bool                   e_connman_service_passphrase_get(const E_Connman_Element *service, const char **passphrase) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_passphrase_set(E_Connman_Element *service, const char *passphrase, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_remove(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_strength_get(const E_Connman_Element *service, unsigned char *strength) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_connect(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_disconnect(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_favorite_get(const E_Connman_Element *service, bool *favorite) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_immutable_get(const E_Connman_Element *service, bool *immutable) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_move_before(E_Connman_Element *service, const char *object_path, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_move_after(E_Connman_Element *service, const char *object_path, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_auto_connect_get(const E_Connman_Element *service, bool *auto_connect) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_auto_connect_set(E_Connman_Element *service, bool auto_connect, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_state_get(const E_Connman_Element *service, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_error_get(const E_Connman_Element *service, const char **error) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_name_get(const E_Connman_Element *service, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_type_get(const E_Connman_Element *service, const char **type) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_mode_get(const E_Connman_Element *service, const char **mode) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_security_get(const E_Connman_Element *service, const char **security) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_setup_required_get(const E_Connman_Element *service, bool *setup_required) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_passphrase_required_get(const E_Connman_Element *service, bool *passphrase_required) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_passphrase_get(const E_Connman_Element *service, const char **passphrase) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_passphrase_set(E_Connman_Element *service, const char *passphrase, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_apn_get(const E_Connman_Element *service, const char **apn) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_apn_set(E_Connman_Element *service, const char *apn, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_strength_get(const E_Connman_Element *service, unsigned char *strength) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_mcc_get(const E_Connman_Element *service, const char **mcc) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_mnc_get(const E_Connman_Element *service, const char **mnc) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_roaming_get(const E_Connman_Element *service, bool *roaming) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_favorite_get(const E_Connman_Element *service, bool *favorite) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_immutable_get(const E_Connman_Element *service, bool *immutable) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ipv4_method_get(const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ipv4_address_get(const E_Connman_Element *service, const char **address) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ipv4_gateway_get(const E_Connman_Element *service, const char **gateway) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ipv4_netmask_get(const E_Connman_Element *service, const char **netmask) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_auto_connect_get(const E_Connman_Element *service, bool *auto_connect) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_auto_connect_set(E_Connman_Element *service, bool auto_connect, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ipv4_configuration_method_get(const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ipv4_configuration_address_get(const E_Connman_Element *service, const char **address) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ipv4_configuration_gateway_get(const E_Connman_Element *service, const char **gateway) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ipv4_configuration_netmask_get(const E_Connman_Element *service, const char **netmask) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_setup_required_get(const E_Connman_Element *service, bool *setup_required) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_passphrase_required_get(const E_Connman_Element *service, bool *passphrase_required) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ethernet_method_get(const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ethernet_address_get(const E_Connman_Element *service, const char **address) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ethernet_mtu_get(const E_Connman_Element *service, unsigned short *mtu) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ethernet_netmask_get(const E_Connman_Element *service, const char **netmask) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_apn_get(const E_Connman_Element *service, const char **apn) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_apn_set(E_Connman_Element *service, const char *apn, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+/* Methods to configure IPv4 service */
+EAPI bool                   e_connman_service_ipv4_configure_dhcp(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_service_ipv4_configure_manual(E_Connman_Element *service, const char *address, const char *netmask, const char *gateway, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_mcc_get(const E_Connman_Element *service, const char **mcc) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_mnc_get(const E_Connman_Element *service, const char **mnc) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_roaming_get(const E_Connman_Element *service, bool *roaming) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+/* Technologies methods */
+EAPI E_Connman_Element *    e_connman_technology_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_ipv4_method_get(const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ipv4_address_get(const E_Connman_Element *service, const char **address) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ipv4_gateway_get(const E_Connman_Element *service, const char **gateway) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ipv4_netmask_get(const E_Connman_Element *service, const char **netmask) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_technology_state_get(const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_technology_name_get(const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_technology_type_get(const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_technology_devices_get(const E_Connman_Element *technology, unsigned int *count, E_Connman_Element ***t_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_service_ipv4_configuration_method_get(const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ipv4_configuration_address_get(const E_Connman_Element *service, const char **address) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ipv4_configuration_gateway_get(const E_Connman_Element *service, const char **gateway) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ipv4_configuration_netmask_get(const E_Connman_Element *service, const char **netmask) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+// TODO: ethernet_speed_get (not in connman yet)
+// TODO: ethernet_duplex_get (not in connman yet)
 
-  EAPI bool e_connman_service_ethernet_method_get(const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ethernet_address_get(const E_Connman_Element *service, const char **address) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ethernet_mtu_get(const E_Connman_Element *service, unsigned short *mtu) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ethernet_netmask_get(const E_Connman_Element *service, const char **netmask) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-
-  /* Methods to configure IPv4 service */
-  EAPI bool e_connman_service_ipv4_configure_dhcp(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_service_ipv4_configure_manual(E_Connman_Element *service, const char *address, const char *netmask, const char *gateway, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-
-  /* Technologies methods */
-  EAPI E_Connman_Element *e_connman_technology_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-
-  EAPI bool e_connman_technology_state_get(const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_technology_name_get(const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_technology_type_get(const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_technology_devices_get(const E_Connman_Element *technology, unsigned int *count, E_Connman_Element ***t_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
-
-  // TODO: ethernet_speed_get (not in connman yet)
-  // TODO: ethernet_duplex_get (not in connman yet)
-
-  /* Low-Level API:
-   *
-   * Should just be used to work around problems until proper solution
-   * is made into e_connman.
-   */
-  EAPI bool e_connman_manager_sync_elements(void);
+/* Low-Level API:
+ *
+ * Should just be used to work around problems until proper solution
+ * is made into e_connman.
+ */
+EAPI bool                   e_connman_manager_sync_elements(void);
 
-  EAPI bool e_connman_elements_get_all(unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_elements_get_all_type(const char *type, unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
-  EAPI E_Connman_Element *e_connman_element_get(const char *path);
+EAPI bool                   e_connman_elements_get_all(unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_elements_get_all_type(const char *type, unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
+EAPI E_Connman_Element *    e_connman_element_get(const char *path);
 
-  EAPI void e_connman_element_listener_add(E_Connman_Element *element, void (*cb)(void *data, const E_Connman_Element *element), const void *data, void (*free_data)(void *data)) EINA_ARG_NONNULL(1, 2);
-  EAPI void e_connman_element_listener_del(E_Connman_Element *element, void (*cb)(void *data, const E_Connman_Element *element), const void *data) EINA_ARG_NONNULL(1, 2);
+EAPI void                   e_connman_element_listener_add(E_Connman_Element *element, void (*cb)(void *data, const E_Connman_Element *element), const void *data, void (*free_data)(void *data)) EINA_ARG_NONNULL(1, 2);
+EAPI void                   e_connman_element_listener_del(E_Connman_Element *element, void (*cb)(void *data, const E_Connman_Element *element), const void *data) EINA_ARG_NONNULL(1, 2);
 
-  EAPI int e_connman_element_ref(E_Connman_Element *element) EINA_ARG_NONNULL(1);
-  EAPI int e_connman_element_unref(E_Connman_Element *element) EINA_ARG_NONNULL(1);
+EAPI int                    e_connman_element_ref(E_Connman_Element *element) EINA_ARG_NONNULL(1);
+EAPI int                    e_connman_element_unref(E_Connman_Element *element) EINA_ARG_NONNULL(1);
 
-  EAPI void e_connman_element_print(FILE *fp, const E_Connman_Element *element) EINA_ARG_NONNULL(1, 2);
+EAPI void                   e_connman_element_print(FILE *fp, const E_Connman_Element *element) EINA_ARG_NONNULL(1, 2);
 
-  EAPI bool e_connman_element_properties_sync(E_Connman_Element *element) EINA_ARG_NONNULL(1);
-  EAPI bool e_connman_element_properties_sync_full(E_Connman_Element *element, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1);
-  EAPI void e_connman_element_properties_list(const E_Connman_Element *element, bool (*cb)(void *data, const E_Connman_Element *element, const char *name, int type, const void *value), const void *data) EINA_ARG_NONNULL(1, 2);
+EAPI bool                   e_connman_element_properties_sync(E_Connman_Element *element) EINA_ARG_NONNULL(1);
+EAPI bool                   e_connman_element_properties_sync_full(E_Connman_Element *element, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1);
+EAPI void                   e_connman_element_properties_list(const E_Connman_Element *element, bool (*cb)(void *data, const E_Connman_Element *element, const char *name, int type, const void *value), const void *data) EINA_ARG_NONNULL(1, 2);
 
-  EAPI bool e_connman_element_property_set(E_Connman_Element *element, const char *prop, int type, const void *value) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_property_set_full(E_Connman_Element *element, const char *prop, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_property_dict_set_full(E_Connman_Element *element, const char *prop, const char *key, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_property_set(E_Connman_Element *element, const char *prop, int type, const void *value) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_property_set_full(E_Connman_Element *element, const char *prop, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_property_dict_set_full(E_Connman_Element *element, const char *prop, const char *key, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_element_property_type_get_stringshared(const E_Connman_Element *element, const char *name, int *type) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_property_type_get(const E_Connman_Element *element, const char *name, int *type) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_property_dict_get_stringshared(const E_Connman_Element *element, const char *dict_name, const char *key_name, int *type, void *value) EINA_ARG_NONNULL(1, 2, 4) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_property_get_stringshared(const E_Connman_Element *element, const char *name, int *type, void *value) EINA_ARG_NONNULL(1, 2, 4) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_property_get(const E_Connman_Element *element, const char *name, int *type, void *value) EINA_ARG_NONNULL(1, 2, 4) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_property_type_get_stringshared(const E_Connman_Element *element, const char *name, int *type) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_property_type_get(const E_Connman_Element *element, const char *name, int *type) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_property_dict_get_stringshared(const E_Connman_Element *element, const char *dict_name, const char *key_name, int *type, void *value) EINA_ARG_NONNULL(1, 2, 4) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_property_get_stringshared(const E_Connman_Element *element, const char *name, int *type, void *value) EINA_ARG_NONNULL(1, 2, 4) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_property_get(const E_Connman_Element *element, const char *name, int *type, void *value) EINA_ARG_NONNULL(1, 2, 4) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_element_is_manager(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_is_device(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_is_profile(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_is_network(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_is_service(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_element_is_technology(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_is_manager(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_is_device(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_is_profile(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_is_network(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_is_service(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_element_is_technology(const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
+/* Device Methods: Low-Level API
+ *
+ * Fine tune device, such as turn off and change scan interval.
+ */
+EAPI E_Connman_Element *    e_connman_device_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  /* Device Methods: Low-Level API
-   *
-   * Fine tune device, such as turn off and change scan interval.
-   */
-  EAPI E_Connman_Element *e_connman_device_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_propose_scan(E_Connman_Element *device, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_device_propose_scan(E_Connman_Element *device, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_address_get(const E_Connman_Element *device, const char **address);
+EAPI bool                   e_connman_device_name_get(const E_Connman_Element *device, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_type_get(const E_Connman_Element *device, const char **type) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_interface_get(const E_Connman_Element *device, const char **interface) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_device_address_get(const E_Connman_Element *device, const char **address);
-  EAPI bool e_connman_device_name_get(const E_Connman_Element *device, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_device_type_get(const E_Connman_Element *device, const char **type) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_device_interface_get(const E_Connman_Element *device, const char **interface) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_powered_get(const E_Connman_Element *device, bool *powered) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_powered_set(E_Connman_Element *device, bool powered, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_device_powered_get(const E_Connman_Element *device, bool *powered) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_device_powered_set(E_Connman_Element *device, bool powered, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_scan_interval_get(const E_Connman_Element *device, unsigned short *scan_interval) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_scan_interval_set(E_Connman_Element *device, unsigned short scan_interval, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_device_scan_interval_get(const E_Connman_Element *device, unsigned short *scan_interval) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_device_scan_interval_set(E_Connman_Element *device, unsigned short scan_interval, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_scanning_get(const E_Connman_Element *device, bool *scanning) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_device_scanning_get(const E_Connman_Element *device, bool *scanning) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-
-  EAPI bool e_connman_device_networks_get(const E_Connman_Element *device, unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
-
-
-  /* Network Methods: Low-Level API
-   *
-   * The network API is informational only, to set these parameters,
-   * use the services API instead.
-   */
-  EAPI E_Connman_Element *e_connman_network_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
-
-  EAPI bool e_connman_network_address_get(const E_Connman_Element *network, const char **address) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_name_get(const E_Connman_Element *network, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_connected_get(const E_Connman_Element *network, bool *connected) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_strength_get(const E_Connman_Element *network, unsigned char *strength) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_frequency_get(const E_Connman_Element *network, unsigned short *frequency) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_device_get(const E_Connman_Element *network, E_Connman_Element **element) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_device_networks_get(const E_Connman_Element *device, unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
 
-  EAPI bool e_connman_network_wifi_ssid_get(const E_Connman_Element *network, unsigned int *count, unsigned char **wifi_ssid) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_wifi_mode_get(const E_Connman_Element *network, const char **wifi_mode) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_wifi_security_get(const E_Connman_Element *network, const char **wifi_security) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_wifi_passphrase_get(const E_Connman_Element *network, const char **wifi_passphrase) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_wifi_channel_get(const E_Connman_Element *network, unsigned short *wifi_channel) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
-  EAPI bool e_connman_network_wifi_eap_get(const E_Connman_Element *network, const char **wifi_eap) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+/* Network Methods: Low-Level API
+ *
+ * The network API is informational only, to set these parameters,
+ * use the services API instead.
+ */
+EAPI E_Connman_Element *    e_connman_network_get(const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+
+EAPI bool                   e_connman_network_address_get(const E_Connman_Element *network, const char **address) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_name_get(const E_Connman_Element *network, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_connected_get(const E_Connman_Element *network, bool *connected) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_strength_get(const E_Connman_Element *network, unsigned char *strength) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_frequency_get(const E_Connman_Element *network, unsigned short *frequency) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_device_get(const E_Connman_Element *network, E_Connman_Element **element) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+
+EAPI bool                   e_connman_network_wifi_ssid_get(const E_Connman_Element *network, unsigned int *count, unsigned char **wifi_ssid) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_wifi_mode_get(const E_Connman_Element *network, const char **wifi_mode) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_wifi_security_get(const E_Connman_Element *network, const char **wifi_security) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_wifi_passphrase_get(const E_Connman_Element *network, const char **wifi_passphrase) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_wifi_channel_get(const E_Connman_Element *network, unsigned short *wifi_channel) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+EAPI bool                   e_connman_network_wifi_eap_get(const E_Connman_Element *network, const char **wifi_eap) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
 #ifdef __cplusplus
 }
index bcd1038..b2b6079 100644 (file)
@@ -79,10 +79,9 @@ const char *e_connman_prop_mnc = NULL;
 const char *e_connman_prop_roaming = NULL;
 const char *e_connman_prop_technology_default = NULL;
 const char *e_connman_prop_technologies_available = NULL;
-const char *e_connman_prop_technologies_enabled= NULL;
+const char *e_connman_prop_technologies_enabled = NULL;
 const char *e_connman_prop_technologies_connected = NULL;
 
-
 int _e_dbus_connman_log_dom = -1;
 
 const char *
@@ -91,10 +90,9 @@ e_connman_system_bus_name_get(void)
    return unique_name ? unique_name : bus_name;
 }
 
-
 /***********************************************************************
- * Manager
- ***********************************************************************/
+* Manager
+***********************************************************************/
 
 /**
  * Synchronize elements with server.
@@ -115,12 +113,13 @@ e_connman_manager_sync_elements(void)
    E_Connman_Element *manager;
 
    if (!unique_name)
-     return EINA_FALSE;
+      return EINA_FALSE;
+
    manager = e_connman_element_register(manager_path, e_connman_iface_manager);
    if (manager)
-     e_connman_element_properties_sync(manager);
+      e_connman_element_properties_sync(manager);
    else
-     return EINA_FALSE;
+      return EINA_FALSE;
 
    DBG("sync_manager: %s (%s)", unique_name, bus_name);
 
@@ -143,12 +142,12 @@ _e_connman_system_name_owner_enter(const char *uid)
    DBG("enter connman at %s (old was %s)", uid, unique_name);
    if (unique_name && strcmp(unique_name, uid) == 0)
      {
-       DBG("same unique_name for connman, ignore.");
-       return;
+        DBG("same unique_name for connman, ignore.");
+        return;
      }
 
    if (unique_name)
-     _e_connman_system_name_owner_exit();
+      _e_connman_system_name_owner_exit();
 
    unique_name = strdup(uid);
 
@@ -164,34 +163,38 @@ _e_connman_system_name_owner_changed(void *data __UNUSED__, DBusMessage *msg)
 
    dbus_error_init(&err);
    if (!dbus_message_get_args(msg, &err,
-                             DBUS_TYPE_STRING, &name,
-                             DBUS_TYPE_STRING, &from,
-                             DBUS_TYPE_STRING, &to,
-                             DBUS_TYPE_INVALID))
+                              DBUS_TYPE_STRING, &name,
+                              DBUS_TYPE_STRING, &from,
+                              DBUS_TYPE_STRING, &to,
+                              DBUS_TYPE_INVALID))
      {
-       ERR("could not get NameOwnerChanged arguments: %s: %s",
-           err.name, err.message);
-       dbus_error_free(&err);
-       return;
+        ERR("could not get NameOwnerChanged arguments: %s: %s",
+            err.name, err.message);
+        dbus_error_free(&err);
+        return;
      }
 
    if (strcmp(name, bus_name) != 0)
-     return;
+      return;
 
    DBG("NameOwnerChanged from=[%s] to=[%s]", from, to);
 
    if (from[0] == '\0' && to[0] != '\0')
-     _e_connman_system_name_owner_enter(to);
+     {
+        _e_connman_system_name_owner_enter(to);
+     }
    else if (from[0] != '\0' && to[0] == '\0')
      {
-       DBG("exit connman at %s", from);
-       if (strcmp(unique_name, from) != 0)
-         DBG("%s was not the known name %s, ignored.", from, unique_name);
-       else
-         _e_connman_system_name_owner_exit();
+        DBG("exit connman at %s", from);
+        if (strcmp(unique_name, from) != 0)
+           DBG("%s was not the known name %s, ignored.", from, unique_name);
+        else
+           _e_connman_system_name_owner_exit();
      }
    else
-     DBG("unknow change from %s to %s", from, to);
+     {
+        DBG("unknow change from %s to %s", from, to);
+     }
 }
 
 static void
@@ -204,17 +207,17 @@ _e_connman_get_name_owner(void *data __UNUSED__, DBusMessage *msg, DBusError *er
    pending_get_name_owner = NULL;
 
    if (!_dbus_callback_check_and_init(msg, &itr, err))
-     return;
+      return;
 
    t = dbus_message_iter_get_arg_type(&itr);
    if (!_dbus_iter_type_check(t, DBUS_TYPE_STRING))
-     return;
+      return;
 
    dbus_message_iter_get_basic(&itr, &uid);
    if (!uid)
      {
-       ERR("no name owner!");
-       return;
+        ERR("no name owner!");
+        return;
      }
 
    _e_connman_system_name_owner_enter(uid);
@@ -249,167 +252,232 @@ e_connman_system_init(E_DBus_Connection *edbus_conn)
    init_count++;
 
    if (init_count > 1)
-     return init_count;
+      return init_count;
 
    _e_dbus_connman_log_dom = eina_log_domain_register
-     ("e_dbus_connman", EINA_LOG_DEFAULT_COLOR);
+         ("e_dbus_connman", EINA_LOG_DEFAULT_COLOR);
 
    if(_e_dbus_connman_log_dom < 0)
      {
-       EINA_LOG_ERR
-         ("impossible to create a log domain for edbus_connman module");
-       return -1;
+        EINA_LOG_ERR
+           ("impossible to create a log domain for edbus_connman module");
+        return -1;
      }
 
    if (E_CONNMAN_EVENT_MANAGER_IN == 0)
-     E_CONNMAN_EVENT_MANAGER_IN = ecore_event_type_new();
+      E_CONNMAN_EVENT_MANAGER_IN = ecore_event_type_new();
+
    if (E_CONNMAN_EVENT_MANAGER_OUT == 0)
-     E_CONNMAN_EVENT_MANAGER_OUT = ecore_event_type_new();
+      E_CONNMAN_EVENT_MANAGER_OUT = ecore_event_type_new();
+
    if (E_CONNMAN_EVENT_ELEMENT_ADD == 0)
-     E_CONNMAN_EVENT_ELEMENT_ADD = ecore_event_type_new();
+      E_CONNMAN_EVENT_ELEMENT_ADD = ecore_event_type_new();
+
    if (E_CONNMAN_EVENT_ELEMENT_DEL == 0)
-     E_CONNMAN_EVENT_ELEMENT_DEL = ecore_event_type_new();
+      E_CONNMAN_EVENT_ELEMENT_DEL = ecore_event_type_new();
+
    if (E_CONNMAN_EVENT_ELEMENT_UPDATED == 0)
-     E_CONNMAN_EVENT_ELEMENT_UPDATED = ecore_event_type_new();
+      E_CONNMAN_EVENT_ELEMENT_UPDATED = ecore_event_type_new();
 
    if (!e_connman_iface_manager)
-     e_connman_iface_manager = eina_stringshare_add("org.moblin.connman.Manager");
+      e_connman_iface_manager = eina_stringshare_add("org.moblin.connman.Manager");
+
    if (!e_connman_iface_network)
-     e_connman_iface_network = eina_stringshare_add("org.moblin.connman.Network");
+      e_connman_iface_network = eina_stringshare_add("org.moblin.connman.Network");
+
    if (!e_connman_iface_profile)
-     e_connman_iface_profile = eina_stringshare_add("org.moblin.connman.Profile");
+      e_connman_iface_profile = eina_stringshare_add("org.moblin.connman.Profile");
+
    if (!e_connman_iface_service)
-     e_connman_iface_service = eina_stringshare_add("org.moblin.connman.Service");
+      e_connman_iface_service = eina_stringshare_add("org.moblin.connman.Service");
+
    if (!e_connman_iface_device)
-     e_connman_iface_device = eina_stringshare_add("org.moblin.connman.Device");
+      e_connman_iface_device = eina_stringshare_add("org.moblin.connman.Device");
+
    if (!e_connman_iface_connection)
-     e_connman_iface_connection = eina_stringshare_add("org.moblin.connman.Connection");
+      e_connman_iface_connection = eina_stringshare_add("org.moblin.connman.Connection");
+
    if (!e_connman_iface_technology)
-     e_connman_iface_technology = eina_stringshare_add("org.moblin.connman.Technology");
+      e_connman_iface_technology = eina_stringshare_add("org.moblin.connman.Technology");
 
    if (!e_connman_prop_available)
-     e_connman_prop_available = eina_stringshare_add("Available");
+      e_connman_prop_available = eina_stringshare_add("Available");
+
    if (!e_connman_prop_connected)
-     e_connman_prop_connected = eina_stringshare_add("Connected");
+      e_connman_prop_connected = eina_stringshare_add("Connected");
+
    if (!e_connman_prop_connections)
-     e_connman_prop_connections = eina_stringshare_add("Connections");
+      e_connman_prop_connections = eina_stringshare_add("Connections");
+
    if (!e_connman_prop_default)
-     e_connman_prop_default = eina_stringshare_add("Default");
+      e_connman_prop_default = eina_stringshare_add("Default");
+
    if (!e_connman_prop_device)
-     e_connman_prop_device = eina_stringshare_add("Device");
+      e_connman_prop_device = eina_stringshare_add("Device");
+
    if (!e_connman_prop_devices)
-     e_connman_prop_devices = eina_stringshare_add("Devices");
+      e_connman_prop_devices = eina_stringshare_add("Devices");
+
    if (!e_connman_prop_interface)
-     e_connman_prop_interface = eina_stringshare_add("Interface");
+      e_connman_prop_interface = eina_stringshare_add("Interface");
+
    if (!e_connman_prop_ipv4)
-     e_connman_prop_ipv4 = eina_stringshare_add("IPv4");
+      e_connman_prop_ipv4 = eina_stringshare_add("IPv4");
+
    if (!e_connman_prop_ipv4_configuration)
-     e_connman_prop_ipv4_configuration = eina_stringshare_add("IPv4.Configuration");
+      e_connman_prop_ipv4_configuration = eina_stringshare_add("IPv4.Configuration");
+
    if (!e_connman_prop_ethernet)
-     e_connman_prop_ethernet = eina_stringshare_add("Ethernet");
+      e_connman_prop_ethernet = eina_stringshare_add("Ethernet");
+
    if (!e_connman_prop_method)
-     e_connman_prop_method = eina_stringshare_add("Method");
+      e_connman_prop_method = eina_stringshare_add("Method");
+
    if (!e_connman_prop_address)
-     e_connman_prop_address = eina_stringshare_add("Address");
+      e_connman_prop_address = eina_stringshare_add("Address");
+
    if (!e_connman_prop_gateway)
-     e_connman_prop_gateway = eina_stringshare_add("Gateway");
+      e_connman_prop_gateway = eina_stringshare_add("Gateway");
+
    if (!e_connman_prop_netmask)
-     e_connman_prop_netmask = eina_stringshare_add("Netmask");
+      e_connman_prop_netmask = eina_stringshare_add("Netmask");
+
    if (!e_connman_prop_mtu)
-     e_connman_prop_mtu = eina_stringshare_add("MTU");
+      e_connman_prop_mtu = eina_stringshare_add("MTU");
+
    if (!e_connman_prop_name)
-     e_connman_prop_name = eina_stringshare_add("Name");
+      e_connman_prop_name = eina_stringshare_add("Name");
+
    if (!e_connman_prop_network)
-     e_connman_prop_network = eina_stringshare_add("Network");
+      e_connman_prop_network = eina_stringshare_add("Network");
+
    if (!e_connman_prop_networks)
-     e_connman_prop_networks = eina_stringshare_add("Networks");
+      e_connman_prop_networks = eina_stringshare_add("Networks");
+
    if (!e_connman_prop_offline_mode)
-     e_connman_prop_offline_mode = eina_stringshare_add("OfflineMode");
+      e_connman_prop_offline_mode = eina_stringshare_add("OfflineMode");
+
    if (!e_connman_prop_policy)
-     e_connman_prop_policy = eina_stringshare_add("Policy");
+      e_connman_prop_policy = eina_stringshare_add("Policy");
+
    if (!e_connman_prop_powered)
-     e_connman_prop_powered = eina_stringshare_add("Powered");
+      e_connman_prop_powered = eina_stringshare_add("Powered");
+
    if (!e_connman_prop_priority)
-     e_connman_prop_priority = eina_stringshare_add("Priority");
+      e_connman_prop_priority = eina_stringshare_add("Priority");
+
    if (!e_connman_prop_profiles)
-     e_connman_prop_profiles = eina_stringshare_add("Profiles");
+      e_connman_prop_profiles = eina_stringshare_add("Profiles");
+
    if (!e_connman_prop_profile_active)
-     e_connman_prop_profile_active = eina_stringshare_add("ActiveProfile");
+      e_connman_prop_profile_active = eina_stringshare_add("ActiveProfile");
+
    if (!e_connman_prop_services)
-     e_connman_prop_services = eina_stringshare_add("Services");
+      e_connman_prop_services = eina_stringshare_add("Services");
+
    if (!e_connman_prop_technologies)
-     e_connman_prop_technologies = eina_stringshare_add("Technologies");
+      e_connman_prop_technologies = eina_stringshare_add("Technologies");
+
    if (!e_connman_prop_remember)
-     e_connman_prop_remember = eina_stringshare_add("Remember");
+      e_connman_prop_remember = eina_stringshare_add("Remember");
+
    if (!e_connman_prop_scan_interval)
-     e_connman_prop_scan_interval = eina_stringshare_add("ScanInterval");
+      e_connman_prop_scan_interval = eina_stringshare_add("ScanInterval");
+
    if (!e_connman_prop_scanning)
-     e_connman_prop_scanning = eina_stringshare_add("Scanning");
+      e_connman_prop_scanning = eina_stringshare_add("Scanning");
+
    if (!e_connman_prop_state)
-     e_connman_prop_state = eina_stringshare_add("State");
+      e_connman_prop_state = eina_stringshare_add("State");
+
    if (!e_connman_prop_strength)
-     e_connman_prop_strength = eina_stringshare_add("Strength");
+      e_connman_prop_strength = eina_stringshare_add("Strength");
+
    if (!e_connman_prop_frequency)
-     e_connman_prop_frequency = eina_stringshare_add("Frequency");
+      e_connman_prop_frequency = eina_stringshare_add("Frequency");
+
    if (!e_connman_prop_type)
-     e_connman_prop_type = eina_stringshare_add("Type");
+      e_connman_prop_type = eina_stringshare_add("Type");
+
    if (!e_connman_prop_wifi_mode)
-     e_connman_prop_wifi_mode = eina_stringshare_add("WiFi.Mode");
+      e_connman_prop_wifi_mode = eina_stringshare_add("WiFi.Mode");
+
    if (!e_connman_prop_wifi_passphrase)
-     e_connman_prop_wifi_passphrase = eina_stringshare_add("WiFi.Passphrase");
+      e_connman_prop_wifi_passphrase = eina_stringshare_add("WiFi.Passphrase");
+
    if (!e_connman_prop_wifi_security)
-     e_connman_prop_wifi_security = eina_stringshare_add("WiFi.Security");
+      e_connman_prop_wifi_security = eina_stringshare_add("WiFi.Security");
+
    if (!e_connman_prop_wifi_ssid)
-     e_connman_prop_wifi_ssid = eina_stringshare_add("WiFi.SSID");
+      e_connman_prop_wifi_ssid = eina_stringshare_add("WiFi.SSID");
+
    if (!e_connman_prop_wifi_channel)
-     e_connman_prop_wifi_channel = eina_stringshare_add("WiFi.Channel");
+      e_connman_prop_wifi_channel = eina_stringshare_add("WiFi.Channel");
+
    if (!e_connman_prop_wifi_eap)
-     e_connman_prop_wifi_eap = eina_stringshare_add("WiFi.EAP");
+      e_connman_prop_wifi_eap = eina_stringshare_add("WiFi.EAP");
+
    if (!e_connman_prop_error)
-     e_connman_prop_error = eina_stringshare_add("Error");
+      e_connman_prop_error = eina_stringshare_add("Error");
+
    if (!e_connman_prop_mode)
-     e_connman_prop_mode = eina_stringshare_add("Mode");
+      e_connman_prop_mode = eina_stringshare_add("Mode");
+
    if (!e_connman_prop_security)
-     e_connman_prop_security = eina_stringshare_add("Security");
+      e_connman_prop_security = eina_stringshare_add("Security");
+
    if (!e_connman_prop_passphrase)
-     e_connman_prop_passphrase = eina_stringshare_add("Passphrase");
+      e_connman_prop_passphrase = eina_stringshare_add("Passphrase");
+
    if (!e_connman_prop_passphrase_required)
-     e_connman_prop_passphrase_required = eina_stringshare_add("PassphraseRequired");
+      e_connman_prop_passphrase_required = eina_stringshare_add("PassphraseRequired");
+
    if (!e_connman_prop_favorite)
-     e_connman_prop_favorite = eina_stringshare_add("Favorite");
+      e_connman_prop_favorite = eina_stringshare_add("Favorite");
+
    if (!e_connman_prop_immutable)
-     e_connman_prop_immutable = eina_stringshare_add("Immutable");
+      e_connman_prop_immutable = eina_stringshare_add("Immutable");
+
    if (!e_connman_prop_auto_connect)
-     e_connman_prop_auto_connect = eina_stringshare_add("AutoConnect");
+      e_connman_prop_auto_connect = eina_stringshare_add("AutoConnect");
+
    if (!e_connman_prop_setup_required)
-     e_connman_prop_setup_required = eina_stringshare_add("SetupRequired");
+      e_connman_prop_setup_required = eina_stringshare_add("SetupRequired");
+
    if (!e_connman_prop_apn)
-     e_connman_prop_apn = eina_stringshare_add("APN");
+      e_connman_prop_apn = eina_stringshare_add("APN");
+
    if (!e_connman_prop_mcc)
-     e_connman_prop_mcc = eina_stringshare_add("MCC");
+      e_connman_prop_mcc = eina_stringshare_add("MCC");
+
    if (!e_connman_prop_mnc)
-     e_connman_prop_mnc = eina_stringshare_add("MCN");
+      e_connman_prop_mnc = eina_stringshare_add("MCN");
+
    if (!e_connman_prop_roaming)
-     e_connman_prop_roaming = eina_stringshare_add("Roaming");
+      e_connman_prop_roaming = eina_stringshare_add("Roaming");
+
    if (!e_connman_prop_technology_default)
-     e_connman_prop_technology_default = eina_stringshare_add("DefaultTechnology");
+      e_connman_prop_technology_default = eina_stringshare_add("DefaultTechnology");
+
    if (!e_connman_prop_technologies_available)
-     e_connman_prop_technologies_available = eina_stringshare_add("AvailableTechnologies");
+      e_connman_prop_technologies_available = eina_stringshare_add("AvailableTechnologies");
+
    if (!e_connman_prop_technologies_enabled)
-     e_connman_prop_technologies_enabled = eina_stringshare_add("EnabledTechnologies");
+      e_connman_prop_technologies_enabled = eina_stringshare_add("EnabledTechnologies");
+
    if (!e_connman_prop_technologies_connected)
-     e_connman_prop_technologies_connected = eina_stringshare_add("ConnectedTechnologies");
+      e_connman_prop_technologies_connected = eina_stringshare_add("ConnectedTechnologies");
 
    e_connman_conn = edbus_conn;
    cb_name_owner_changed = e_dbus_signal_handler_add
-     (e_connman_conn, E_DBUS_FDO_BUS, E_DBUS_FDO_PATH, E_DBUS_FDO_INTERFACE, "NameOwnerChanged",
-      _e_connman_system_name_owner_changed, NULL);
+         (e_connman_conn, E_DBUS_FDO_BUS, E_DBUS_FDO_PATH, E_DBUS_FDO_INTERFACE, "NameOwnerChanged",
+         _e_connman_system_name_owner_changed, NULL);
 
    if (pending_get_name_owner)
-     dbus_pending_call_cancel(pending_get_name_owner);
+      dbus_pending_call_cancel(pending_get_name_owner);
 
    pending_get_name_owner = e_dbus_get_name_owner
-     (e_connman_conn, bus_name, _e_connman_get_name_owner, NULL);
+         (e_connman_conn, bus_name, _e_connman_get_name_owner, NULL);
 
    e_connman_elements_init();
 
@@ -420,7 +488,8 @@ static inline void
 _stringshare_del(const char **str)
 {
    if (!*str)
-     return;
+      return;
+
    eina_stringshare_del(*str);
    *str = NULL;
 }
@@ -436,12 +505,13 @@ e_connman_system_shutdown(void)
 {
    if (init_count == 0)
      {
-       ERR("connman system already shut down.");
-       return 0;
+        ERR("connman system already shut down.");
+        return 0;
      }
+
    init_count--;
    if (init_count > 0)
-     return init_count;
+      return init_count;
 
    _stringshare_del(&e_connman_iface_manager);
    _stringshare_del(&e_connman_iface_network);
@@ -510,18 +580,18 @@ e_connman_system_shutdown(void)
 
    if (pending_get_name_owner)
      {
-       dbus_pending_call_cancel(pending_get_name_owner);
-       pending_get_name_owner = NULL;
+        dbus_pending_call_cancel(pending_get_name_owner);
+        pending_get_name_owner = NULL;
      }
 
    if (cb_name_owner_changed)
      {
-       e_dbus_signal_handler_del(e_connman_conn, cb_name_owner_changed);
-       cb_name_owner_changed = NULL;
+        e_dbus_signal_handler_del(e_connman_conn, cb_name_owner_changed);
+        cb_name_owner_changed = NULL;
      }
 
    if (unique_name)
-     _e_connman_system_name_owner_exit();
+      _e_connman_system_name_owner_exit();
 
    e_connman_elements_shutdown();
    eina_log_domain_unregister(_e_dbus_connman_log_dom);
@@ -529,3 +599,4 @@ e_connman_system_shutdown(void)
 
    return init_count;
 }
+
index 1907747..e87b1f4 100644 (file)
@@ -9,12 +9,12 @@ e_connman_device_get(const char *path)
 
    device = e_connman_element_get(path);
    if (!device)
-     return NULL;
+      return NULL;
 
    if (!e_connman_element_is_device(device))
      {
-       WRN("path '%s' is not a device!", path);
-       return NULL;
+        WRN("path '%s' is not a device!", path);
+        return NULL;
      }
 
    return device;
@@ -39,7 +39,7 @@ e_connman_device_propose_scan(E_Connman_Element *device, E_DBus_Method_Return_Cb
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    return e_connman_element_call_full
-     (device, name, NULL, &device->_pending.device_propose_scan, cb, data);
+             (device, name, NULL, &device->_pending.device_propose_scan, cb, data);
 }
 
 /**
@@ -68,7 +68,7 @@ e_connman_device_address_get(const E_Connman_Element *device, const char **addre
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(address, 0);
    return e_connman_element_property_get_stringshared
-     (device, e_connman_prop_address, NULL, address);
+             (device, e_connman_prop_address, NULL, address);
 }
 
 /**
@@ -97,7 +97,7 @@ e_connman_device_name_get(const E_Connman_Element *device, const char **name)
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(name, 0);
    return e_connman_element_property_get_stringshared
-     (device, e_connman_prop_name, NULL, name);
+             (device, e_connman_prop_name, NULL, name);
 }
 
 /**
@@ -123,7 +123,7 @@ e_connman_device_type_get(const E_Connman_Element *device, const char **type)
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(type, 0);
    return e_connman_element_property_get_stringshared
-     (device, e_connman_prop_type, NULL, type);
+             (device, e_connman_prop_type, NULL, type);
 }
 
 /**
@@ -152,7 +152,7 @@ e_connman_device_interface_get(const E_Connman_Element *device, const char **int
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(interface, 0);
    return e_connman_element_property_get_stringshared
-     (device, e_connman_prop_interface, NULL, interface);
+             (device, e_connman_prop_interface, NULL, interface);
 }
 
 /**
@@ -187,7 +187,7 @@ e_connman_device_powered_get(const E_Connman_Element *device, bool *powered)
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(powered, 0);
    return e_connman_element_property_get_stringshared
-     (device, e_connman_prop_powered, NULL, powered);
+             (device, e_connman_prop_powered, NULL, powered);
 }
 
 /**
@@ -222,7 +222,7 @@ e_connman_device_powered_set(E_Connman_Element *device, bool powered, E_DBus_Met
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    return e_connman_element_property_set_full
-     (device, e_connman_prop_powered, DBUS_TYPE_BOOLEAN, &powered, cb, data);
+             (device, e_connman_prop_powered, DBUS_TYPE_BOOLEAN, &powered, cb, data);
 }
 
 /**
@@ -256,7 +256,7 @@ e_connman_device_scan_interval_get(const E_Connman_Element *device, unsigned sho
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(scan_interval, 0);
    return e_connman_element_property_get_stringshared
-     (device, e_connman_prop_scan_interval, NULL, scan_interval);
+             (device, e_connman_prop_scan_interval, NULL, scan_interval);
 }
 
 /**
@@ -290,8 +290,8 @@ e_connman_device_scan_interval_set(E_Connman_Element *device, unsigned short sca
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    return e_connman_element_property_set_full
-     (device, e_connman_prop_scan_interval, DBUS_TYPE_UINT16,
-      &scan_interval, cb, data);
+             (device, e_connman_prop_scan_interval, DBUS_TYPE_UINT16,
+             &scan_interval, cb, data);
 }
 
 /**
@@ -319,7 +319,7 @@ e_connman_device_scanning_get(const E_Connman_Element *device, bool *scanning)
    EINA_SAFETY_ON_NULL_RETURN_VAL(device, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(scanning, 0);
    return e_connman_element_property_get_stringshared
-     (device, e_connman_prop_scanning, NULL, scanning);
+             (device, e_connman_prop_scanning, NULL, scanning);
 }
 
 /**
@@ -339,5 +339,6 @@ e_connman_device_networks_get(const E_Connman_Element *device, unsigned int *cou
    EINA_SAFETY_ON_NULL_RETURN_VAL(count, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(elements, 0);
    return e_connman_element_objects_array_get_stringshared
-     (device, e_connman_prop_networks, count, elements);
+             (device, e_connman_prop_networks, count, elements);
 }
+
index 5ceea25..fb636c7 100644 (file)
@@ -4,49 +4,49 @@
 
 static Eina_Hash *elements = NULL;
 
-typedef struct _E_Connman_Array E_Connman_Array;
-typedef struct _E_Connman_Element_Pending E_Connman_Element_Pending;
-typedef struct _E_Connman_Element_Call_Data E_Connman_Element_Call_Data;
-typedef struct _E_Connman_Element_Property E_Connman_Element_Property;
-typedef struct _E_Connman_Element_Listener E_Connman_Element_Listener;
-typedef struct _E_Connman_Element_Dict_Entry E_Connman_Element_Dict_Entry;
+typedef struct _E_Connman_Array                E_Connman_Array;
+typedef struct _E_Connman_Element_Pending      E_Connman_Element_Pending;
+typedef struct _E_Connman_Element_Call_Data    E_Connman_Element_Call_Data;
+typedef struct _E_Connman_Element_Property     E_Connman_Element_Property;
+typedef struct _E_Connman_Element_Listener     E_Connman_Element_Listener;
+typedef struct _E_Connman_Element_Dict_Entry   E_Connman_Element_Dict_Entry;
 
 struct _E_Connman_Array
 {
-   int type;
+   int         type;
    Eina_Array *array;
 };
 
 struct _E_Connman_Element_Pending
 {
-   EINA_INLIST;
-   DBusPendingCall *pending;
-   void *data;
+                           EINA_INLIST;
+   DBusPendingCall        *pending;
+   void                   *data;
    E_DBus_Method_Return_Cb user_cb;
-   void *user_data;
+   void                   *user_data;
 };
 
 struct _E_Connman_Element_Call_Data
 {
-   E_Connman_Element *element;
-   E_DBus_Method_Return_Cb cb;
+   E_Connman_Element         *element;
+   E_DBus_Method_Return_Cb    cb;
    E_Connman_Element_Pending *pending;
-   Eina_Inlist **p_list;
+   Eina_Inlist              **p_list;
 };
 
 struct _E_Connman_Element_Property
 {
-   EINA_INLIST;
+               EINA_INLIST;
    const char *name;
-   int type;
+   int         type;
    union {
-      bool boolean;
-      const char *str;
-      unsigned short u16;
-      unsigned int u32;
-      unsigned char byte;
-      const char *path;
-      void *variant;
+      bool             boolean;
+      const char      *str;
+      unsigned short   u16;
+      unsigned int     u32;
+      unsigned char    byte;
+      const char      *path;
+      void            *variant;
       E_Connman_Array *array;
    } value;
 };
@@ -54,26 +54,25 @@ struct _E_Connman_Element_Property
 struct _E_Connman_Element_Dict_Entry
 {
    const char *name;
-   int type;
+   int         type;
    union {
-      bool boolean;
-      const char *str;
+      bool           boolean;
+      const char    *str;
       unsigned short u16;
-      unsigned int u32;
-      unsigned char byte;
-      const char *path;
+      unsigned int   u32;
+      unsigned char  byte;
+      const char    *path;
    } value;
 };
 
 struct _E_Connman_Element_Listener
 {
-   EINA_INLIST;
-   void (*cb)(void *data, const E_Connman_Element *element);
+         EINA_INLIST;
+   void  (*cb)(void *data, const E_Connman_Element *element);
    void *data;
-   void (*free_data)(void *data);
+   void  (*free_data)(void *data);
 };
 
-
 static void
 _e_connman_element_event_no_free(void *data __UNUSED__, void *ev)
 {
@@ -86,7 +85,7 @@ e_connman_element_event_add(int event_type, E_Connman_Element *element)
 {
    e_connman_element_ref(element);
    ecore_event_add
-     (event_type, element, _e_connman_element_event_no_free, element);
+      (event_type, element, _e_connman_element_event_no_free, element);
 }
 
 static void
@@ -99,10 +98,10 @@ e_connman_element_call_dispatch_and_free(void *d, DBusMessage *msg, DBusError *e
    pending->pending = NULL;
 
    if (data->cb)
-     data->cb(data->element, msg, err);
+      data->cb(data->element, msg, err);
 
    if (pending->user_cb)
-     pending->user_cb(pending->user_data, msg, err);
+      pending->user_cb(pending->user_data, msg, err);
 
    pending->data = NULL;
    *data->p_list = eina_inlist_remove(*data->p_list, EINA_INLIST_GET(pending));
@@ -115,15 +114,15 @@ e_connman_element_pending_cancel_and_free(Eina_Inlist **pending)
 {
    while (*pending)
      {
-       E_Connman_Element_Pending *p = (E_Connman_Element_Pending *)*pending;
-       DBusError err;
+        E_Connman_Element_Pending *p = (E_Connman_Element_Pending *)*pending;
+        DBusError err;
 
-       dbus_pending_call_cancel(p->pending);
+        dbus_pending_call_cancel(p->pending);
 
-       dbus_error_init(&err);
-       dbus_set_error(&err, "Canceled", "Pending method call was canceled.");
-       e_connman_element_call_dispatch_and_free(p->data, NULL, &err);
-       dbus_error_free(&err);
+        dbus_error_init(&err);
+        dbus_set_error(&err, "Canceled", "Pending method call was canceled.");
+        e_connman_element_call_dispatch_and_free(p->data, NULL, &err);
+        dbus_error_free(&err);
      }
 }
 
@@ -137,8 +136,8 @@ e_connman_element_listener_add(E_Connman_Element *element, void (*cb)(void *data
    l = malloc(sizeof(*l));
    if (!l)
      {
-       ERR("could not allocate E_Connman_Element_Listener");
-       goto error;
+        ERR("could not allocate E_Connman_Element_Listener");
+        goto error;
      }
 
    l->cb = cb;
@@ -146,13 +145,13 @@ e_connman_element_listener_add(E_Connman_Element *element, void (*cb)(void *data
    l->free_data = free_data;
 
    element->_listeners = eina_inlist_append
-     (element->_listeners, EINA_INLIST_GET(l));
+         (element->_listeners, EINA_INLIST_GET(l));
 
    return;
 
- error:
+error:
    if (free_data)
-     free_data((void *)data);
+      free_data((void *)data);
 }
 
 void
@@ -164,14 +163,16 @@ e_connman_element_listener_del(E_Connman_Element *element, void (*cb)(void *data
    EINA_SAFETY_ON_NULL_RETURN(cb);
 
    EINA_INLIST_FOREACH(element->_listeners, l)
-     if ((l->cb == cb) && (l->data == data))
-       {
-         element->_listeners = eina_inlist_remove
-           (element->_listeners, EINA_INLIST_GET(l));
-         if (l->free_data) l->free_data(l->data);
-         free(l);
-         return;
-       }
+   if ((l->cb == cb) && (l->data == data))
+     {
+        element->_listeners = eina_inlist_remove
+              (element->_listeners, EINA_INLIST_GET(l));
+        if (l->free_data)
+           l->free_data(l->data);
+
+        free(l);
+        return;
+     }
 }
 
 static void
@@ -186,20 +187,20 @@ _e_connman_element_listeners_call_do(E_Connman_Element *element)
     */
    count = eina_inlist_count(element->_listeners);
    if (count < 1)
-     goto end;
+      goto end;
 
    shadow = alloca(sizeof(*shadow) * count);
    if (!shadow)
-     goto end;
+      goto end;
 
    i = 0;
    EINA_INLIST_FOREACH(element->_listeners, l)
-     shadow[i++] = l;
+   shadow[i++] = l;
 
    for (i = 0; i < count; i++)
-     shadow[i]->cb(shadow[i]->data, element);
+      shadow[i]->cb(shadow[i]->data, element);
 
- end:
+end:
    e_connman_element_event_add(E_CONNMAN_EVENT_ELEMENT_UPDATED, element);
 }
 
@@ -216,14 +217,15 @@ static void
 _e_connman_element_listeners_call(E_Connman_Element *element)
 {
    if (element->_idler.changed)
-     return;
+      return;
+
    element->_idler.changed = ecore_idler_add
-     (_e_connman_element_listeners_call_idler, element);
+         (_e_connman_element_listeners_call_idler, element);
 }
 
 /***********************************************************************
- * Property
- ***********************************************************************/
+* Property
+***********************************************************************/
 
 static void
 _e_connman_element_dict_entry_free(E_Connman_Element_Dict_Entry *entry)
@@ -234,16 +236,19 @@ _e_connman_element_dict_entry_free(E_Connman_Element_Dict_Entry *entry)
       case DBUS_TYPE_BYTE:
       case DBUS_TYPE_UINT16:
       case DBUS_TYPE_UINT32:
-        break;
+         break;
+
       case DBUS_TYPE_OBJECT_PATH:
-        eina_stringshare_del(entry->value.path);
-        break;
+         eina_stringshare_del(entry->value.path);
+         break;
+
       case DBUS_TYPE_STRING:
-        eina_stringshare_del(entry->value.str);
-        break;
+         eina_stringshare_del(entry->value.str);
+         break;
+
       default:
-        ERR("don't know how to free dict entry '%s' of type %c (%d)",
-            entry->name, entry->type, entry->type);
+         ERR("don't know how to free dict entry '%s' of type %c (%d)",
+             entry->name, entry->type, entry->type);
      }
 
    eina_stringshare_del(entry->name);
@@ -264,26 +269,26 @@ _e_connman_element_dict_entry_new(DBusMessageIter *itr)
    t = dbus_message_iter_get_arg_type(&e_itr);
    if (!_dbus_iter_type_check(t, DBUS_TYPE_STRING))
      {
-       ERR("invalid format for dict entry. first type not a string: %c (%d)",
-           t, t);
-       return NULL;
+        ERR("invalid format for dict entry. first type not a string: %c (%d)",
+            t, t);
+        return NULL;
      }
 
    dbus_message_iter_get_basic(&e_itr, &key);
    if (!key || !key[0])
      {
-       ERR("invalid format for dict entry. no key.");
-       return NULL;
+        ERR("invalid format for dict entry. no key.");
+        return NULL;
      }
 
    dbus_message_iter_next(&e_itr);
    t = dbus_message_iter_get_arg_type(&e_itr);
    if (!_dbus_iter_type_check(t, DBUS_TYPE_VARIANT))
      {
-       ERR("invalid format for dict entry '%s'. "
-           "second type not a variant: %c (%d)",
-           key, t, t);
-       return NULL;
+        ERR("invalid format for dict entry '%s'. "
+            "second type not a variant: %c (%d)",
+            key, t, t);
+        return NULL;
      }
 
    dbus_message_iter_recurse(&e_itr, &v_itr);
@@ -291,44 +296,50 @@ _e_connman_element_dict_entry_new(DBusMessageIter *itr)
    t = dbus_message_iter_get_arg_type(&v_itr);
    if ((t == DBUS_TYPE_INVALID) || (t == DBUS_TYPE_ARRAY))
      {
-       ERR("invalid type for dict value for entry '%s': %c (%d)",
-           key, t, t);
-       return NULL;
+        ERR("invalid type for dict value for entry '%s': %c (%d)",
+            key, t, t);
+        return NULL;
      }
 
    entry = calloc(1, sizeof(*entry));
    if (!entry)
      {
-       ERR("could not allocate memory for dict entry.");
-       return NULL;
+        ERR("could not allocate memory for dict entry.");
+        return NULL;
      }
 
    dbus_message_iter_get_basic(&v_itr, &value);
    switch (t)
      {
       case DBUS_TYPE_BOOLEAN:
-        entry->value.boolean = (bool)(long)value;
-        break;
+         entry->value.boolean = (bool)(long)value;
+         break;
+
       case DBUS_TYPE_BYTE:
-        entry->value.byte = (unsigned char)(long)value;
-        break;
+         entry->value.byte = (unsigned char)(long)value;
+         break;
+
       case DBUS_TYPE_UINT16:
-        entry->value.u16 = (unsigned short)(long)value;
-        break;
+         entry->value.u16 = (unsigned short)(long)value;
+         break;
+
       case DBUS_TYPE_UINT32:
-        entry->value.u32 = (unsigned int)(long)value;
-        break;
+         entry->value.u32 = (unsigned int)(long)value;
+         break;
+
       case DBUS_TYPE_STRING:
-        entry->value.str = eina_stringshare_add(value);
-        break;
+         entry->value.str = eina_stringshare_add(value);
+         break;
+
       case DBUS_TYPE_OBJECT_PATH:
-        entry->value.path = eina_stringshare_add(value);
-        break;
+         entry->value.path = eina_stringshare_add(value);
+         break;
+
       default:
-        ERR("don't know how to create dict entry '%s' for of type %c (%d)",
-            key, t, t);
-        free(entry);
-        return NULL;
+         ERR("don't know how to create dict entry '%s' for of type %c (%d)",
+             key, t, t);
+         free(entry);
+         return NULL;
      }
 
    entry->name = eina_stringshare_add(key);
@@ -344,8 +355,8 @@ _e_connman_element_array_dict_find_stringshared(const E_Connman_Array *array, co
    unsigned int i;
 
    EINA_ARRAY_ITER_NEXT(array->array, i, entry, iterator)
-     if (entry->name == key)
-       return entry;
+   if (entry->name == key)
+      return entry;
 
    return NULL;
 }
@@ -358,7 +369,7 @@ _e_connman_element_array_free(E_Connman_Array *array, E_Connman_Array *new __UNU
    void *item;
 
    if (!array)
-     return;
+      return;
 
    switch (array->type)
      {
@@ -366,23 +377,27 @@ _e_connman_element_array_free(E_Connman_Array *array, E_Connman_Array *new __UNU
       case DBUS_TYPE_BYTE:
       case DBUS_TYPE_UINT16:
       case DBUS_TYPE_UINT32:
-        break;
+         break;
+
       case DBUS_TYPE_OBJECT_PATH:
-        EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-          eina_stringshare_del(item);
-        break;
+         EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
+         eina_stringshare_del(item);
+         break;
+
       case DBUS_TYPE_STRING:
-        EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-          eina_stringshare_del(item);
-        break;
+         EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
+         eina_stringshare_del(item);
+         break;
+
       case DBUS_TYPE_DICT_ENTRY:
-        EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-          _e_connman_element_dict_entry_free(item);
-        break;
+         EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
+         _e_connman_element_dict_entry_free(item);
+         break;
+
       default:
-        ERR("don't know how to free array of values of type %c (%d)",
-            array->type, array->type);
-        break;
+         ERR("don't know how to free array of values of type %c (%d)",
+             array->type, array->type);
+         break;
      }
    eina_array_free(array->array);
    free(array);
@@ -394,24 +409,29 @@ _e_connman_element_property_value_free(E_Connman_Element_Property *property)
    switch (property->type)
      {
       case 0:
-        return;
+         return;
+
       case DBUS_TYPE_BOOLEAN:
       case DBUS_TYPE_BYTE:
       case DBUS_TYPE_UINT16:
       case DBUS_TYPE_UINT32:
-        break;
+         break;
+
       case DBUS_TYPE_STRING:
-        eina_stringshare_del(property->value.str);
-        break;
+         eina_stringshare_del(property->value.str);
+         break;
+
       case DBUS_TYPE_OBJECT_PATH:
-        eina_stringshare_del(property->value.path);
-        break;
+         eina_stringshare_del(property->value.path);
+         break;
+
       case DBUS_TYPE_ARRAY:
-        _e_connman_element_array_free(property->value.array, NULL);
-        break;
+         _e_connman_element_array_free(property->value.array, NULL);
+         break;
+
       default:
-        ERR("don't know how to free value of property type %c (%d)",
-            property->type, property->type);
+         ERR("don't know how to free value of property type %c (%d)",
+             property->type, property->type);
      }
 }
 
@@ -427,31 +447,41 @@ _e_connman_element_get_interface(const char *key)
    switch (head)
      {
       case 'P':
-        if (strcmp(tail, "rofiles") == 0)
-          interface = e_connman_iface_profile;
-        break;
+         if (strcmp(tail, "rofiles") == 0)
+            interface = e_connman_iface_profile;
+
+         break;
+
       case 'D':
-        if (strcmp(tail, "evices") == 0)
-          interface = e_connman_iface_device;
-        break;
+         if (strcmp(tail, "evices") == 0)
+            interface = e_connman_iface_device;
+
+         break;
+
       case 'N':
-        if (strcmp(tail, "etworks") == 0)
-          interface = e_connman_iface_network;
-        break;
+         if (strcmp(tail, "etworks") == 0)
+            interface = e_connman_iface_network;
+
+         break;
+
       case 'S':
-        if (strcmp(tail, "ervices") == 0)
-          interface = e_connman_iface_service;
-        break;
+         if (strcmp(tail, "ervices") == 0)
+            interface = e_connman_iface_service;
+
+         break;
+
       case 'T':
-        if (strcmp(tail, "echnologies") == 0)
-          interface = e_connman_iface_technology;
-        break;
+         if (strcmp(tail, "echnologies") == 0)
+            interface = e_connman_iface_technology;
+
+         break;
+
       default:
-        break;
+         break;
      }
 
    if (!interface)
-     ERR("failed to find interface for property \"%s\"", key);
+      ERR("failed to find interface for property \"%s\"", key);
 
    return interface;
 }
@@ -464,10 +494,11 @@ _e_connman_element_item_register(const char *key, const char *item)
 
    interface = _e_connman_element_get_interface(key);
    if (!interface)
-     return;
+      return;
+
    element = e_connman_element_register(item, interface);
    if ((element) && (!e_connman_element_properties_sync(element)))
-     WRN("could not get properties of %s", element->path);
+      WRN("could not get properties of %s", element->path);
 }
 
 /* Match 2 arrays to find which are new and which are old elements
@@ -485,87 +516,94 @@ _e_connman_element_array_match(E_Connman_Array *old, E_Connman_Array *new, const
    void *data;
 
    if (!old)
-     return;
+      return;
+
    if (old->type != DBUS_TYPE_OBJECT_PATH)
-     return;
+      return;
 
    if ((!new) || (!new->array) || eina_array_count_get(new->array) == 0)
      {
-       if ((!old) || (!old->array) || eina_array_count_get(old->array) == 0)
-         return;
-       else
-         {
-            iter_old = old->array->data;
-            goto out_remove_remaining;
-         }
+        if ((!old) || (!old->array) || eina_array_count_get(old->array) == 0)
+          {
+             return;
+          }
+        else
+          {
+             iter_old = old->array->data;
+             goto out_remove_remaining;
+          }
      }
 
    iter_new = new->array->data;
    item_new = *iter_new;
    EINA_ARRAY_ITER_NEXT(old->array, i_old, item_old, iter_old)
-     {
-       if (item_old == item_new)
-         {
-            i_new++;
-            if (i_new >= eina_array_count_get(new->array))
-              {
-                 i_old++;
-                 break;
-              }
-
-            iter_new++;
-            item_new = *iter_new;
-         }
-       else
-         deleted = eina_list_append(deleted, item_old);
-     }
+   {
+      if (item_old == item_new)
+        {
+           i_new++;
+           if (i_new >= eina_array_count_get(new->array))
+             {
+                i_old++;
+                break;
+             }
+
+           iter_new++;
+           item_new = *iter_new;
+        }
+      else
+        {
+           deleted = eina_list_append(deleted, item_old);
+        }
+   }
 
    for(; i_new < eina_array_count_get(new->array); iter_new++, i_new++)
      {
-       bool found = 0;
-       item_new = *iter_new;
-       if (!item_new)
-         break;
-
-       EINA_LIST_FOREACH(deleted, l, data)
-         {
-            if (data == item_new)
-              {
-                 deleted = eina_list_remove_list(deleted, l);
-                 found = 1;
-                 break;
-              }
-         }
-       if (!found)
-         {
-           _e_connman_element_item_register(prop_name, item_new);
-           DBG("Add element %s\n", (const char *) item_new);
-         }
+        bool found = 0;
+        item_new = *iter_new;
+        if (!item_new)
+           break;
+
+        EINA_LIST_FOREACH(deleted, l, data)
+        {
+           if (data == item_new)
+             {
+                deleted = eina_list_remove_list(deleted, l);
+                found = 1;
+                break;
+             }
+        }
+        if (!found)
+          {
+             _e_connman_element_item_register(prop_name, item_new);
+             DBG("Add element %s\n", (const char *)item_new);
+          }
      }
 
    /* everybody after i_old on old->array + everybody from deleted list
       will be removed
     */
    EINA_LIST_FREE(deleted, data)
-     {
-       E_Connman_Element *e = e_connman_element_get(data);
-       if (e)
-         e_connman_element_unregister(e);
-       DBG("Delete element %s\n", (const char *) data);
-     }
+   {
+      E_Connman_Element *e = e_connman_element_get(data);
+      if (e)
+         e_connman_element_unregister(e);
+
+      DBG("Delete element %s\n", (const char *)data);
+   }
 
 out_remove_remaining:
    for(; i_old < eina_array_count_get(old->array); iter_old++, i_old++)
      {
-       E_Connman_Element *e;
-       item_old = *iter_old;
-       if (!item_old)
-         break;
-
-       e = e_connman_element_get(item_old);
-       if (e)
-         e_connman_element_unregister(e);
-       DBG("Delete element %s\n", (const char *) item_old);
+        E_Connman_Element *e;
+        item_old = *iter_old;
+        if (!item_old)
+           break;
+
+        e = e_connman_element_get(item_old);
+        if (e)
+           e_connman_element_unregister(e);
+
+        DBG("Delete element %s\n", (const char *)item_old);
      }
 }
 
@@ -575,89 +613,110 @@ _e_connman_element_property_update(E_Connman_Element_Property *property, int typ
    int changed = 0;
 
    if ((type == DBUS_TYPE_STRING || type == DBUS_TYPE_OBJECT_PATH) && data)
-     data = (char *)eina_stringshare_add(data);
+      data = (char *)eina_stringshare_add(data);
 
    if (property->type != type)
      {
-       if (property->type)
-         DBG("property type changed from '%c' to '%c'",
-             property->type, type);
-       _e_connman_element_property_value_free(property);
-       memset(&property->value, 0, sizeof(property->value));
-       property->type = type;
-       changed = 1;
+        if (property->type)
+           DBG("property type changed from '%c' to '%c'",
+               property->type, type);
+
+        _e_connman_element_property_value_free(property);
+        memset(&property->value, 0, sizeof(property->value));
+        property->type = type;
+        changed = 1;
      }
 
    switch (type)
      {
       case DBUS_TYPE_BOOLEAN:
-        if (changed || property->value.boolean != (bool)(long)data)
-          {
-             property->value.boolean = (bool)(long)data;
-             changed = 1;
-          }
-        break;
+         if (changed || property->value.boolean != (bool)(long)data)
+           {
+              property->value.boolean = (bool)(long)data;
+              changed = 1;
+           }
+
+         break;
+
       case DBUS_TYPE_BYTE:
-        if (changed || property->value.byte != (unsigned char)(long)data)
-          {
-             property->value.byte = (unsigned char)(long)data;
-             changed = 1;
-          }
-        break;
+         if (changed || property->value.byte != (unsigned char)(long)data)
+           {
+              property->value.byte = (unsigned char)(long)data;
+              changed = 1;
+           }
+
+         break;
+
       case DBUS_TYPE_UINT16:
-        if (changed || property->value.u16 != (unsigned short)(long)data)
-          {
-             property->value.u16 = (unsigned short)(long)data;
-             changed = 1;
-          }
-        break;
+         if (changed || property->value.u16 != (unsigned short)(long)data)
+           {
+              property->value.u16 = (unsigned short)(long)data;
+              changed = 1;
+           }
+
+         break;
+
       case DBUS_TYPE_UINT32:
-        if (changed || property->value.u32 != (unsigned int)(long)data)
-          {
-             property->value.u32 = (unsigned int)(long)data;
-             changed = 1;
-          }
-        break;
+         if (changed || property->value.u32 != (unsigned int)(long)data)
+           {
+              property->value.u32 = (unsigned int)(long)data;
+              changed = 1;
+           }
+
+         break;
+
       case DBUS_TYPE_STRING:
-        if (changed)
-          property->value.str = data;
-        else
-          {
-             if (property->value.str)
-               eina_stringshare_del(property->value.str);
-             if (property->value.str != data)
-               {
-                  property->value.str = data;
-                  changed = 1;
-               }
-          }
-        break;
+         if (changed)
+           {
+              property->value.str = data;
+           }
+         else
+           {
+              if (property->value.str)
+                 eina_stringshare_del(property->value.str);
+
+              if (property->value.str != data)
+                {
+                   property->value.str = data;
+                   changed = 1;
+                }
+           }
+
+         break;
+
       case DBUS_TYPE_OBJECT_PATH:
-        if (changed)
-          property->value.path = data;
-        else
-          {
-             if (property->value.path)
-               eina_stringshare_del(property->value.path);
-             if (property->value.path != data)
-               {
-                  property->value.path = data;
-                  changed = 1;
-               }
-          }
-        break;
+         if (changed)
+           {
+              property->value.path = data;
+           }
+         else
+           {
+              if (property->value.path)
+                 eina_stringshare_del(property->value.path);
+
+              if (property->value.path != data)
+                {
+                   property->value.path = data;
+                   changed = 1;
+                }
+           }
+
+         break;
+
       case DBUS_TYPE_ARRAY:
-        if (!changed)
-          if (property->value.array)
-            {
-               _e_connman_element_array_match(property->value.array, data, property->name);
-               _e_connman_element_array_free(property->value.array, data);
-            }
-        property->value.array = data;
-        changed = 1;
-        break;
+         if (!changed)
+            if (property->value.array)
+              {
+                 _e_connman_element_array_match(property->value.array, data, property->name);
+                 _e_connman_element_array_free(property->value.array, data);
+              }
+
+         property->value.array = data;
+         changed = 1;
+         break;
+
       default:
-        ERR("don't know how to update property type %c (%d)", type, type);
+         ERR("don't know how to update property type %c (%d)", type, type);
      }
 
    return changed;
@@ -671,9 +730,9 @@ _e_connman_element_property_new(const char *name, int type, void *data)
    property = calloc(1, sizeof(*property));
    if (!property)
      {
-       eina_stringshare_del(name);
-       ERR("could not allocate property: %s", strerror(errno));
-       return NULL;
+        eina_stringshare_del(name);
+        ERR("could not allocate property: %s", strerror(errno));
+        return NULL;
      }
 
    property->name = name;
@@ -690,8 +749,8 @@ _e_connman_element_property_free(E_Connman_Element_Property *property)
 }
 
 /***********************************************************************
- * Element
- ***********************************************************************/
+* Element
+***********************************************************************/
 unsigned char *
 e_connman_element_bytes_array_get_stringshared(const E_Connman_Element *element, const char *property, unsigned int *count)
 {
@@ -708,27 +767,28 @@ e_connman_element_bytes_array_get_stringshared(const E_Connman_Element *element,
    *count = 0;
 
    if (!e_connman_element_property_get_stringshared
-       (element, property, NULL, &array))
-     return NULL;
+          (element, property, NULL, &array))
+      return NULL;
 
    if ((!array) || (!(array->array)))
-     return NULL;
+      return NULL;
 
    *count = eina_array_count_get(array->array);
    ret = malloc(*count * sizeof(unsigned char));
    if (!ret)
      {
-       ERR("could not allocate return array of %d bytes: %s",
-           *count, strerror(errno));
-       return NULL;
+        ERR("could not allocate return array of %d bytes: %s",
+            *count, strerror(errno));
+        return NULL;
      }
+
    p = ret;
 
    EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-     {
-       *p = (unsigned char)(long)item;
-       p++;
-     }
+   {
+      *p = (unsigned char)(long)item;
+      p++;
+   }
    return ret;
 }
 
@@ -751,43 +811,45 @@ e_connman_element_objects_array_get_stringshared(const E_Connman_Element *elemen
    *p_elements = NULL;
 
    if (!e_connman_element_property_get_stringshared
-       (element, property, &type, &array))
-     return 0;
+          (element, property, &type, &array))
+      return 0;
 
    if (type != DBUS_TYPE_ARRAY)
      {
-       ERR("property %s is not an array!", property);
-       return 0;
+        ERR("property %s is not an array!", property);
+        return 0;
      }
 
    if ((!array) || (!array->array) || (array->type == DBUS_TYPE_INVALID))
-     return 0;
+      return 0;
 
    if (array->type != DBUS_TYPE_OBJECT_PATH)
      {
-       ERR("property %s is not an array of object paths!", property);
-       return 0;
+        ERR("property %s is not an array of object paths!", property);
+        return 0;
      }
 
    *count = eina_array_count_get(array->array);
    ret = malloc(*count * sizeof(E_Connman_Element *));
    if (!ret)
      {
-       ERR("could not allocate return array of %d elements: %s",
-           *count, strerror(errno));
-       *count = 0;
-       return 0;
+        ERR("could not allocate return array of %d elements: %s",
+            *count, strerror(errno));
+        *count = 0;
+        return 0;
      }
+
    p = ret;
 
    EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-     {
-       E_Connman_Element *e = e_connman_element_get(item);
-       if (!e)
-         continue;
-       *p = e;
-       p++;
-     }
+   {
+      E_Connman_Element *e = e_connman_element_get(item);
+      if (!e)
+         continue;
+
+      *p = e;
+      p++;
+   }
    *count = p - ret;
    *p_elements = ret;
    return 1;
@@ -813,42 +875,44 @@ e_connman_element_strings_array_get_stringshared(const E_Connman_Element *elemen
    *strings = NULL;
 
    if (!e_connman_element_property_get_stringshared
-       (element, property, &type, &array))
-     return 0;
+          (element, property, &type, &array))
+      return 0;
 
    if (type != DBUS_TYPE_ARRAY)
      {
-       ERR("property %s is not an array!", property);
-       return 0;
+        ERR("property %s is not an array!", property);
+        return 0;
      }
 
    if ((!array) || (!array->array) || (array->type == DBUS_TYPE_INVALID))
-     return 0;
+      return 0;
 
    if (array->type != DBUS_TYPE_STRING)
      {
-       ERR("property %s is not an array of strings!", property);
-       return 0;
+        ERR("property %s is not an array of strings!", property);
+        return 0;
      }
 
    *count = eina_array_count_get(array->array);
    ret = malloc(*count * sizeof(char *));
    if (!ret)
      {
-       ERR("could not allocate return array of %d strings: %s",
-           *count, strerror(errno));
-       *count = 0;
-       return 0;
+        ERR("could not allocate return array of %d strings: %s",
+            *count, strerror(errno));
+        *count = 0;
+        return 0;
      }
+
    p = ret;
 
    EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-     {
-       if (!item)
-         continue;
-       *p = item;
-       p++;
-     }
+   {
+      if (!item)
+         continue;
+
+      *p = item;
+      p++;
+   }
    *count = p - ret;
    *strings = ret;
    return 1;
@@ -862,67 +926,78 @@ _e_connman_element_array_print(FILE *fp, E_Connman_Array *array)
    void *item;
 
    if (!array)
-     return;
+      return;
 
    switch (array->type)
      {
       case DBUS_TYPE_OBJECT_PATH:
-        EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-          fprintf(fp, "\"%s\", ", (const char *)item);
-        break;
+         EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
+         fprintf(fp, "\"%s\", ", (const char *)item);
+         break;
+
       case DBUS_TYPE_STRING:
-        EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-          fprintf(fp, "\"%s\", ", (const char *)item);
-        break;
+         EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
+         fprintf(fp, "\"%s\", ", (const char *)item);
+         break;
+
       case DBUS_TYPE_BYTE:
-        EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-          fprintf(fp, "%#02hhx (\"%c\"), ", (unsigned char)(long)item,
-                  (unsigned char)(long)item);
-        break;
+         EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
+         fprintf(fp, "%#02hhx (\"%c\"), ", (unsigned char)(long)item,
+                 (unsigned char)(long)item);
+         break;
+
       case DBUS_TYPE_UINT16:
-        EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-          fprintf(fp, "%#04hx (%hu), ", (unsigned short)(long)item,
-                  (unsigned short)(long)item);
-        break;
+         EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
+         fprintf(fp, "%#04hx (%hu), ", (unsigned short)(long)item,
+                 (unsigned short)(long)item);
+         break;
+
       case DBUS_TYPE_UINT32:
-        EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-          fprintf(fp, "%#08x (%u), ", (unsigned int)(long)item,
-                  (unsigned int)(long)item);
-        break;
+         EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
+         fprintf(fp, "%#08x (%u), ", (unsigned int)(long)item,
+                 (unsigned int)(long)item);
+         break;
+
       case DBUS_TYPE_DICT_ENTRY:
-        fputs("{ ", fp);
-        EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
-          {
-             E_Connman_Element_Dict_Entry *entry = item;
-             fprintf(fp, "%s: ", entry->name);
-             switch (entry->type)
-               {
-                case DBUS_TYPE_OBJECT_PATH:
-                   fprintf(fp, "\"%s\", ", entry->value.path);
-                   break;
-                case DBUS_TYPE_STRING:
-                   fprintf(fp, "\"%s\", ", entry->value.str);
-                   break;
-                case DBUS_TYPE_BYTE:
-                   fprintf(fp, "%#02hhx (\"%c\"), ",
-                           entry->value.byte, entry->value.byte);
-                   break;
-                case DBUS_TYPE_UINT16:
-                   fprintf(fp, "%#04hx (%hu), ",
-                           entry->value.u16, entry->value.u16);
-                   break;
-                case DBUS_TYPE_UINT32:
-                   fprintf(fp, "%#08x (%u), ",
-                           entry->value.u32, entry->value.u32);
-                   break;
-                default:
-                   fprintf(fp, "<UNKNOWN TYPE '%c'>", entry->type);
-               }
-          }
-        fputs("}", fp);
-        break;
+         fputs("{ ", fp);
+         EINA_ARRAY_ITER_NEXT(array->array, i, item, iterator)
+         {
+            E_Connman_Element_Dict_Entry *entry = item;
+            fprintf(fp, "%s: ", entry->name);
+            switch (entry->type)
+              {
+               case DBUS_TYPE_OBJECT_PATH:
+                  fprintf(fp, "\"%s\", ", entry->value.path);
+                  break;
+
+               case DBUS_TYPE_STRING:
+                  fprintf(fp, "\"%s\", ", entry->value.str);
+                  break;
+
+               case DBUS_TYPE_BYTE:
+                  fprintf(fp, "%#02hhx (\"%c\"), ",
+                          entry->value.byte, entry->value.byte);
+                  break;
+
+               case DBUS_TYPE_UINT16:
+                  fprintf(fp, "%#04hx (%hu), ",
+                          entry->value.u16, entry->value.u16);
+                  break;
+
+               case DBUS_TYPE_UINT32:
+                  fprintf(fp, "%#08x (%u), ",
+                          entry->value.u32, entry->value.u32);
+                  break;
+
+               default:
+                  fprintf(fp, "<UNKNOWN TYPE '%c'>", entry->type);
+              }
+         }
+         fputs("}", fp);
+         break;
+
       default:
-        fprintf(fp, "<UNKNOWN ARRAY TYPE '%c'>", array->type);
+         fprintf(fp, "<UNKNOWN ARRAY TYPE '%c'>", array->type);
      }
 }
 
@@ -937,48 +1012,55 @@ e_connman_element_print(FILE *fp, const E_Connman_Element *element)
    EINA_SAFETY_ON_NULL_RETURN(fp);
    if (!element)
      {
-       fputs("Error: no element to print\n", fp);
-       return;
+        fputs("Error: no element to print\n", fp);
+        return;
      }
 
    fprintf(fp,
-          "Element %p: %s [%s]\n"
-          "\tProperties:\n",
-          element, element->path, element->interface);
+           "Element %p: %s [%s]\n"
+           "\tProperties:\n",
+           element, element->path, element->interface);
 
    EINA_INLIST_FOREACH(element->props, p)
-     {
-       fprintf(fp, "\t\t%s (%c) = ", p->name, p->type);
-
-       switch (p->type)
-         {
-          case DBUS_TYPE_STRING:
-             fprintf(fp, "\"%s\"", p->value.str);
-             break;
-          case DBUS_TYPE_OBJECT_PATH:
-             fprintf(fp, "\"%s\"", p->value.path);
-             break;
-          case DBUS_TYPE_BOOLEAN:
-             fprintf(fp, "%hhu", p->value.boolean);
-             break;
-          case DBUS_TYPE_BYTE:
-             fprintf(fp, "%#02hhx (%d), ", p->value.byte, p->value.byte);
-             break;
-          case DBUS_TYPE_UINT16:
-             fprintf(fp, "%hu", p->value.u16);
-             break;
-          case DBUS_TYPE_UINT32:
-             fprintf(fp, "%u", p->value.u32);
-             break;
-          case DBUS_TYPE_ARRAY:
-             _e_connman_element_array_print(fp, p->value.array);
-             break;
-          default:
-             fputs("don't know how to print type", fp);
-         }
-
-       fputc('\n', fp);
-     }
+   {
+      fprintf(fp, "\t\t%s (%c) = ", p->name, p->type);
+
+      switch (p->type)
+        {
+         case DBUS_TYPE_STRING:
+            fprintf(fp, "\"%s\"", p->value.str);
+            break;
+
+         case DBUS_TYPE_OBJECT_PATH:
+            fprintf(fp, "\"%s\"", p->value.path);
+            break;
+
+         case DBUS_TYPE_BOOLEAN:
+            fprintf(fp, "%hhu", p->value.boolean);
+            break;
+
+         case DBUS_TYPE_BYTE:
+            fprintf(fp, "%#02hhx (%d), ", p->value.byte, p->value.byte);
+            break;
+
+         case DBUS_TYPE_UINT16:
+            fprintf(fp, "%hu", p->value.u16);
+            break;
+
+         case DBUS_TYPE_UINT32:
+            fprintf(fp, "%u", p->value.u32);
+            break;
+
+         case DBUS_TYPE_ARRAY:
+            _e_connman_element_array_print(fp, p->value.array);
+            break;
+
+         default:
+            fputs("don't know how to print type", fp);
+        }
+
+      fputc('\n', fp);
+   }
 }
 
 static E_Connman_Element *
@@ -989,8 +1071,8 @@ e_connman_element_new(const char *path, const char *interface)
    element = calloc(1, sizeof(*element));
    if (!element)
      {
-       ERR("could not allocate element: %s",   strerror(errno));
-       return NULL;
+        ERR("could not allocate element: %s",   strerror(errno));
+        return NULL;
      }
 
    element->path = eina_stringshare_add(path);
@@ -1005,10 +1087,10 @@ e_connman_element_extra_properties_free(E_Connman_Element *element)
 {
    while (element->props)
      {
-       E_Connman_Element_Property *prop;
-       prop = (E_Connman_Element_Property *)element->props;
-       element->props = element->props->next;
-       _e_connman_element_property_free(prop);
+        E_Connman_Element_Property *prop;
+        prop = (E_Connman_Element_Property *)element->props;
+        element->props = element->props->next;
+        _e_connman_element_property_free(prop);
      }
 }
 
@@ -1016,16 +1098,18 @@ static void
 e_connman_element_free(E_Connman_Element *element)
 {
    if (element->_idler.changed)
-     ecore_idler_del(element->_idler.changed);
+      ecore_idler_del(element->_idler.changed);
 
    while (element->_listeners)
      {
-       E_Connman_Element_Listener *l = (void *)element->_listeners;
-       element->_listeners = eina_inlist_remove
-         (element->_listeners, element->_listeners);
+        E_Connman_Element_Listener *l = (void *)element->_listeners;
+        element->_listeners = eina_inlist_remove
+              (element->_listeners, element->_listeners);
+
+        if (l->free_data)
+           l->free_data(l->data);
 
-       if (l->free_data) l->free_data(l->data);
-       free(l);
+        free(l);
      }
 
    e_connman_element_pending_cancel_and_free(&element->_pending.properties_get);
@@ -1073,9 +1157,10 @@ e_connman_element_unref(E_Connman_Element *element)
 
    i = --element->_references;
    if (i == 0)
-     e_connman_element_free(element);
+      e_connman_element_free(element);
    else if (i < 0)
-     ERR("element %p references %d < 0", element, i);
+      ERR("element %p references %d < 0", element, i);
+
    return i;
 }
 
@@ -1101,20 +1186,20 @@ e_connman_element_message_send(E_Connman_Element *element, const char *method_na
    data = malloc(sizeof(*data));
    if (!data)
      {
-       ERR("could not alloc e_connman_element_call_data: %s",
-           strerror(errno));
-       dbus_message_unref(msg);
-       return 0;
+        ERR("could not alloc e_connman_element_call_data: %s",
+            strerror(errno));
+        dbus_message_unref(msg);
+        return 0;
      }
 
    p = malloc(sizeof(*p));
    if (!p)
      {
-       ERR("could not alloc E_Connman_Element_Pending: %s",
-           strerror(errno));
-       free(data);
-       dbus_message_unref(msg);
-       return 0;
+        ERR("could not alloc E_Connman_Element_Pending: %s",
+            strerror(errno));
+        free(data);
+        dbus_message_unref(msg);
+        return 0;
      }
 
    data->element = element;
@@ -1125,22 +1210,22 @@ e_connman_element_message_send(E_Connman_Element *element, const char *method_na
    p->user_data = (void *)user_data;
    p->data = data;
    p->pending = e_dbus_message_send
-     (e_connman_conn, msg, e_connman_element_call_dispatch_and_free, -1, data);
+         (e_connman_conn, msg, e_connman_element_call_dispatch_and_free, -1, data);
    dbus_message_unref(msg);
 
    if (p->pending)
      {
-       *pending = eina_inlist_append(*pending, EINA_INLIST_GET(p));
-       return 1;
+        *pending = eina_inlist_append(*pending, EINA_INLIST_GET(p));
+        return 1;
      }
    else
      {
-       ERR("failed to call %s (obj=%s, path=%s, iface=%s)",
-           method_name, e_connman_system_bus_name_get(),
-           element->path, element->interface);
-       free(data);
-       free(p);
-       return 0;
+        ERR("failed to call %s (obj=%s, path=%s, iface=%s)",
+            method_name, e_connman_system_bus_name_get(),
+            element->path, element->interface);
+        free(data);
+        free(p);
+        return 0;
      }
 }
 
@@ -1154,11 +1239,11 @@ e_connman_element_call_full(E_Connman_Element *element, const char *method_name,
    EINA_SAFETY_ON_NULL_RETURN_VAL(pending, 0);
 
    msg = dbus_message_new_method_call
-     (e_connman_system_bus_name_get(), element->path, element->interface,
-      method_name);
+         (e_connman_system_bus_name_get(), element->path, element->interface,
+         method_name);
 
    return e_connman_element_message_send
-     (element, method_name, cb, msg, pending, user_cb, user_data);
+             (element, method_name, cb, msg, pending, user_cb, user_data);
 }
 
 static bool
@@ -1168,19 +1253,19 @@ _e_connman_element_property_value_add(E_Connman_Element *element, const char *na
 
    name = eina_stringshare_add(name);
    EINA_INLIST_FOREACH(element->props, p)
-     {
-       if (p->name == name)
-         {
-            eina_stringshare_del(name);
-            return _e_connman_element_property_update(p, type, value);
-         }
-     }
+   {
+      if (p->name == name)
+        {
+           eina_stringshare_del(name);
+           return _e_connman_element_property_update(p, type, value);
+        }
+   }
 
    p = _e_connman_element_property_new(name, type, value);
    if (!p)
      {
-       ERR("could not create property %s (%c)", name, type);
-       return 0;
+        ERR("could not create property %s (%c)", name, type);
+        return 0;
      }
 
    element->props = eina_inlist_append(element->props, EINA_INLIST_GET(p));
@@ -1196,72 +1281,77 @@ _e_connman_element_iter_get_array(DBusMessageIter *itr, const char *key)
    array = malloc(sizeof(E_Connman_Array));
    if (!array)
      {
-       ERR("could not create new e_connman array.");
-       return NULL;
+        ERR("could not create new e_connman array.");
+        return NULL;
      }
+
    array->array = eina_array_new(16);
    if (!(array->array))
      {
-       ERR("could not create new eina array.");
-       free(array);
-       return NULL;
+        ERR("could not create new eina array.");
+        free(array);
+        return NULL;
      }
 
    dbus_message_iter_recurse(itr, &e_itr);
    array->type = dbus_message_iter_get_arg_type(&e_itr);
    if (array->type == DBUS_TYPE_INVALID)
      {
-       DBG("array %s is of type 'invalid' (empty?)", key);
-       eina_array_free(array->array);
-       free(array);
-       return NULL;
+        DBG("array %s is of type 'invalid' (empty?)", key);
+        eina_array_free(array->array);
+        free(array);
+        return NULL;
      }
 
    do
      {
-       switch (array->type)
-         {
-          case DBUS_TYPE_OBJECT_PATH:
-            {
-               const char *path;
-
-               dbus_message_iter_get_basic(&e_itr, &path);
-               path = eina_stringshare_add(path);
-               eina_array_push(array->array, path);
-               _e_connman_element_item_register(key, path);
-            }
-            break;
-          case DBUS_TYPE_STRING:
-            {
-               const char *str;
-
-               dbus_message_iter_get_basic(&e_itr, &str);
-               str = eina_stringshare_add(str);
-               eina_array_push(array->array, str);
-            }
-            break;
-          case DBUS_TYPE_BYTE:
-            {
-               unsigned char byte;
-               dbus_message_iter_get_basic(&e_itr, &byte);
-               eina_array_push(array->array, (void *)(long)byte);
-            }
-            break;
-          case DBUS_TYPE_DICT_ENTRY:
-            {
-               E_Connman_Element_Dict_Entry *entry;
-               entry = _e_connman_element_dict_entry_new(&e_itr);
-               if (entry)
-                 eina_array_push(array->array, entry);
-            }
-            break;
-          default:
-             ERR("don't know how to build array '%s' of type %c (%d)",
-                 key, array->type, array->type);
-             eina_array_free(array->array);
-             free(array);
-             return NULL;
-         }
+        switch (array->type)
+          {
+           case DBUS_TYPE_OBJECT_PATH:
+           {
+              const char *path;
+
+              dbus_message_iter_get_basic(&e_itr, &path);
+              path = eina_stringshare_add(path);
+              eina_array_push(array->array, path);
+              _e_connman_element_item_register(key, path);
+           }
+           break;
+
+           case DBUS_TYPE_STRING:
+           {
+              const char *str;
+
+              dbus_message_iter_get_basic(&e_itr, &str);
+              str = eina_stringshare_add(str);
+              eina_array_push(array->array, str);
+           }
+           break;
+
+           case DBUS_TYPE_BYTE:
+           {
+              unsigned char byte;
+              dbus_message_iter_get_basic(&e_itr, &byte);
+              eina_array_push(array->array, (void *)(long)byte);
+           }
+           break;
+
+           case DBUS_TYPE_DICT_ENTRY:
+           {
+              E_Connman_Element_Dict_Entry *entry;
+              entry = _e_connman_element_dict_entry_new(&e_itr);
+              if (entry)
+                 eina_array_push(array->array, entry);
+           }
+           break;
+
+           default:
+              ERR("don't know how to build array '%s' of type %c (%d)",
+                  key, array->type, array->type);
+              eina_array_free(array->array);
+              free(array);
+              return NULL;
+          }
      }
    while (dbus_message_iter_next(&e_itr));
    return array;
@@ -1277,61 +1367,68 @@ _e_connman_element_get_properties_callback(void *user_data, DBusMessage *msg, DB
    DBG("get_properties msg=%p", msg);
 
    if (!_dbus_callback_check_and_init(msg, &itr, err))
-     return;
+      return;
 
    t = dbus_message_iter_get_arg_type(&itr);
    if (!_dbus_iter_type_check(t, DBUS_TYPE_ARRAY))
-     return;
+      return;
 
    changed = 0;
    dbus_message_iter_recurse(&itr, &s_itr);
    do
      {
-       DBusMessageIter e_itr, v_itr;
-       const char *key;
-       void *value = NULL;
-       int r;
-
-       t = dbus_message_iter_get_arg_type(&s_itr);
-       if (!_dbus_iter_type_check(t, DBUS_TYPE_DICT_ENTRY))
-         continue;
-
-       dbus_message_iter_recurse(&s_itr, &e_itr);
-
-       t = dbus_message_iter_get_arg_type(&e_itr);
-       if (!_dbus_iter_type_check(t, DBUS_TYPE_STRING))
-         continue;
-
-       dbus_message_iter_get_basic(&e_itr, &key);
-       dbus_message_iter_next(&e_itr);
-       t = dbus_message_iter_get_arg_type(&e_itr);
-       if (!_dbus_iter_type_check(t, DBUS_TYPE_VARIANT))
-         continue;
-
-       dbus_message_iter_recurse(&e_itr, &v_itr);
-       t = dbus_message_iter_get_arg_type(&v_itr);
-       if (t == DBUS_TYPE_ARRAY)
-         value = _e_connman_element_iter_get_array(&v_itr, key);
-       else if (t != DBUS_TYPE_INVALID) {
-         dbus_message_iter_get_basic(&v_itr, &value);
-       } else {
-          ERR("property has invalid type %s", key);
-          continue;
-       }
-
-       r = _e_connman_element_property_value_add(element, key, t, value);
-       if (r < 0)
-         ERR("failed to add property value %s (%c)", key, t);
-       else if (r == 1)
-         {
-            INF("property value changed %s (%c)", key, t);
-            changed = 1;
-         }
+        DBusMessageIter e_itr, v_itr;
+        const char *key;
+        void *value = NULL;
+        int r;
+
+        t = dbus_message_iter_get_arg_type(&s_itr);
+        if (!_dbus_iter_type_check(t, DBUS_TYPE_DICT_ENTRY))
+           continue;
+
+        dbus_message_iter_recurse(&s_itr, &e_itr);
+
+        t = dbus_message_iter_get_arg_type(&e_itr);
+        if (!_dbus_iter_type_check(t, DBUS_TYPE_STRING))
+           continue;
+
+        dbus_message_iter_get_basic(&e_itr, &key);
+        dbus_message_iter_next(&e_itr);
+        t = dbus_message_iter_get_arg_type(&e_itr);
+        if (!_dbus_iter_type_check(t, DBUS_TYPE_VARIANT))
+           continue;
+
+        dbus_message_iter_recurse(&e_itr, &v_itr);
+        t = dbus_message_iter_get_arg_type(&v_itr);
+        if (t == DBUS_TYPE_ARRAY)
+          {
+             value = _e_connman_element_iter_get_array(&v_itr, key);
+          }
+        else if (t != DBUS_TYPE_INVALID)
+          {
+             dbus_message_iter_get_basic(&v_itr, &value);
+          }
+        else
+          {
+             ERR("property has invalid type %s", key);
+             continue;
+          }
+
+        r = _e_connman_element_property_value_add(element, key, t, value);
+        if (r < 0)
+          {
+             ERR("failed to add property value %s (%c)", key, t);
+          }
+        else if (r == 1)
+          {
+             INF("property value changed %s (%c)", key, t);
+             changed = 1;
+          }
      }
    while (dbus_message_iter_next(&s_itr));
 
    if (changed)
-     _e_connman_element_listeners_call(element);
+      _e_connman_element_listeners_call(element);
 }
 
 /**
@@ -1353,8 +1450,8 @@ e_connman_element_sync_properties_full(E_Connman_Element *element, E_DBus_Method
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
    return e_connman_element_call_full
-     (element, name, _e_connman_element_get_properties_callback,
-      &element->_pending.properties_get, cb, data);
+             (element, name, _e_connman_element_get_properties_callback,
+             &element->_pending.properties_get, cb, data);
 }
 
 /**
@@ -1405,34 +1502,34 @@ e_connman_element_property_dict_set_full(E_Connman_Element *element, const char
    EINA_SAFETY_ON_NULL_RETURN_VAL(prop, 0);
 
    msg = dbus_message_new_method_call
-     (e_connman_system_bus_name_get(), element->path, element->interface, name);
+         (e_connman_system_bus_name_get(), element->path, element->interface, name);
 
    if (!msg)
-     return 0;
+      return 0;
 
    dbus_message_iter_init_append(msg, &itr);
    dbus_message_iter_append_basic(&itr, DBUS_TYPE_STRING, &prop);
 
    if ((size_t)snprintf(typestr, sizeof(typestr),
-                       (DBUS_TYPE_ARRAY_AS_STRING
-                        DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING
-                        DBUS_TYPE_STRING_AS_STRING
-                        "%c"
-                        DBUS_DICT_ENTRY_END_CHAR_AS_STRING),
-                       type) >= sizeof(typestr))
+                        (DBUS_TYPE_ARRAY_AS_STRING
+                         DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING
+                         DBUS_TYPE_STRING_AS_STRING
+                         "%c"
+                         DBUS_DICT_ENTRY_END_CHAR_AS_STRING),
+                        type) >= sizeof(typestr))
      {
-       ERR("sizeof(typestr) is too small!");
-       return 0;
+        ERR("sizeof(typestr) is too small!");
+        return 0;
      }
 
    dbus_message_iter_open_container(&itr, DBUS_TYPE_VARIANT, typestr, &variant);
 
    snprintf(typestr, sizeof(typestr),
-           (DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING
-            DBUS_TYPE_STRING_AS_STRING
-            "%c"
-            DBUS_DICT_ENTRY_END_CHAR_AS_STRING),
-           type);
+            (DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING
+             DBUS_TYPE_STRING_AS_STRING
+             "%c"
+             DBUS_DICT_ENTRY_END_CHAR_AS_STRING),
+            type);
 
    dbus_message_iter_open_container(&variant, DBUS_TYPE_ARRAY, typestr, &dict);
    dbus_message_iter_open_container(&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry);
@@ -1440,16 +1537,16 @@ e_connman_element_property_dict_set_full(E_Connman_Element *element, const char
    dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &key);
 
    if ((type == DBUS_TYPE_STRING) || (type == DBUS_TYPE_OBJECT_PATH))
-     dbus_message_iter_append_basic(&entry, type, &value);
+      dbus_message_iter_append_basic(&entry, type, &value);
    else
-     dbus_message_iter_append_basic(&entry, type, value);
+      dbus_message_iter_append_basic(&entry, type, value);
 
    dbus_message_iter_close_container(&dict, &entry);
    dbus_message_iter_close_container(&variant, &dict);
    dbus_message_iter_close_container(&itr, &variant);
 
    return e_connman_element_message_send
-     (element, name, NULL, msg, &element->_pending.property_set, cb, data);
+             (element, name, NULL, msg, &element->_pending.property_set, cb, data);
 }
 
 /**
@@ -1480,10 +1577,10 @@ e_connman_element_property_set_full(E_Connman_Element *element, const char *prop
    EINA_SAFETY_ON_NULL_RETURN_VAL(prop, 0);
 
    msg = dbus_message_new_method_call
-     (e_connman_system_bus_name_get(), element->path, element->interface, name);
+         (e_connman_system_bus_name_get(), element->path, element->interface, name);
 
    if (!msg)
-     return 0;
+      return 0;
 
    DBusMessageIter itr, v;
    dbus_message_iter_init_append(msg, &itr);
@@ -1493,18 +1590,23 @@ e_connman_element_property_set_full(E_Connman_Element *element, const char *prop
    typestr[1] = '\0';
    dbus_message_iter_open_container(&itr, DBUS_TYPE_VARIANT, typestr, &v);
    if ((type == DBUS_TYPE_STRING) || (type == DBUS_TYPE_OBJECT_PATH))
-     dbus_message_iter_append_basic(&v, type, &value);
+     {
+        dbus_message_iter_append_basic(&v, type, &value);
+     }
    else if (type == DBUS_TYPE_BOOLEAN)
      {
-       unsigned int b = *(char *)value;
-       dbus_message_iter_append_basic(&v, type, &b);
+        unsigned int b = *(char *)value;
+        dbus_message_iter_append_basic(&v, type, &b);
      }
    else
-     dbus_message_iter_append_basic(&v, type, value);
+     {
+        dbus_message_iter_append_basic(&v, type, value);
+     }
+
    dbus_message_iter_close_container(&itr, &v);
 
    return e_connman_element_message_send
-     (element, name, NULL, msg, &element->_pending.property_set, cb, data);
+             (element, name, NULL, msg, &element->_pending.property_set, cb, data);
 }
 
 /**
@@ -1527,7 +1629,7 @@ e_connman_element_property_set(E_Connman_Element *element, const char *prop, int
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(prop, 0);
    return e_connman_element_property_set_full
-     (element, prop, type, value, NULL, NULL);
+             (element, prop, type, value, NULL, NULL);
 }
 
 bool
@@ -1542,17 +1644,17 @@ e_connman_element_call_with_path(E_Connman_Element *element, const char *method_
    EINA_SAFETY_ON_NULL_RETURN_VAL(pending, 0);
 
    msg = dbus_message_new_method_call
-     (e_connman_system_bus_name_get(), element->path, element->interface,
-      method_name);
+         (e_connman_system_bus_name_get(), element->path, element->interface,
+         method_name);
 
    if (!msg)
-     return 0;
+      return 0;
 
    dbus_message_iter_init_append(msg, &itr);
    dbus_message_iter_append_basic(&itr, DBUS_TYPE_OBJECT_PATH, &string);
 
    return e_connman_element_message_send
-     (element, method_name, cb, msg, pending, user_cb, user_data);
+             (element, method_name, cb, msg, pending, user_cb, user_data);
 }
 
 bool
@@ -1567,17 +1669,17 @@ e_connman_element_call_with_string(E_Connman_Element *element, const char *metho
    EINA_SAFETY_ON_NULL_RETURN_VAL(pending, 0);
 
    msg = dbus_message_new_method_call
-     (e_connman_system_bus_name_get(), element->path, element->interface,
-      method_name);
+         (e_connman_system_bus_name_get(), element->path, element->interface,
+         method_name);
 
    if (!msg)
-     return 0;
+      return 0;
 
    dbus_message_iter_init_append(msg, &itr);
    dbus_message_iter_append_basic(&itr, DBUS_TYPE_STRING, &string);
 
    return e_connman_element_message_send
-     (element, method_name, cb, msg, pending, user_cb, user_data);
+             (element, method_name, cb, msg, pending, user_cb, user_data);
 }
 
 /**
@@ -1602,13 +1704,13 @@ e_connman_element_property_type_get_stringshared(const E_Connman_Element *elemen
    EINA_SAFETY_ON_NULL_RETURN_VAL(type, 0);
 
    EINA_INLIST_FOREACH(element->props, p)
-     {
-       if (p->name == name)
-         {
-            *type = p->type;
-            return 1;
-         }
-     }
+   {
+      if (p->name == name)
+        {
+           *type = p->type;
+           return 1;
+        }
+   }
 
    WRN("element %s (%p) has no property with name \"%s\".",
        element->path, element, name);
@@ -1646,33 +1748,38 @@ e_connman_element_list_properties(const E_Connman_Element *element, bool (*cb)(v
    EINA_SAFETY_ON_NULL_RETURN(cb);
 
    EINA_INLIST_FOREACH(element->props, p)
-     {
-       const void *value = NULL;
-
-       switch (p->type)
-         {
-          case DBUS_TYPE_STRING:
-             value = &p->value.str;
-             break;
-          case DBUS_TYPE_OBJECT_PATH:
-             value = &p->value.path;
-             break;
-          case DBUS_TYPE_BOOLEAN:
-             value = (void *)p->value.boolean;
-             break;
-          case DBUS_TYPE_UINT16:
-             value = &p->value.u16;
-             break;
-          case DBUS_TYPE_UINT32:
-             value = &p->value.u32;
-             break;
-          default:
-             ERR("unsupported type %c", p->type);
-         }
-
-       if (!cb((void *)data, element, p->name, p->type, value))
-         return;
-     }
+   {
+      const void *value = NULL;
+
+      switch (p->type)
+        {
+         case DBUS_TYPE_STRING:
+            value = &p->value.str;
+            break;
+
+         case DBUS_TYPE_OBJECT_PATH:
+            value = &p->value.path;
+            break;
+
+         case DBUS_TYPE_BOOLEAN:
+            value = (void *)p->value.boolean;
+            break;
+
+         case DBUS_TYPE_UINT16:
+            value = &p->value.u16;
+            break;
+
+         case DBUS_TYPE_UINT32:
+            value = &p->value.u32;
+            break;
+
+         default:
+            ERR("unsupported type %c", p->type);
+        }
+
+      if (!cb((void *)data, element, p->name, p->type, value))
+         return;
+   }
 }
 
 /**
@@ -1705,63 +1812,73 @@ e_connman_element_property_dict_get_stringshared(const E_Connman_Element *elemen
    EINA_SAFETY_ON_NULL_RETURN_VAL(value, 0);
 
    EINA_INLIST_FOREACH(element->props, p)
-     {
-       E_Connman_Element_Dict_Entry *entry;
-       E_Connman_Array *array;
-
-       if (p->name != dict_name)
-         continue;
-       if (p->type != DBUS_TYPE_ARRAY)
-         {
-            WRN("element %s (%p) has property \"%s\" is not an array: %c (%d)",
-                element->path, element, dict_name, p->type, p->type);
-            return 0;
-         }
-       array = p->value.array;
-       if ((!array) || (array->type != DBUS_TYPE_DICT_ENTRY))
-         {
-            int t = array ? array->type : DBUS_TYPE_INVALID;
-            WRN("element %s (%p) has property \"%s\" is not a dict: %c (%d)",
-                element->path, element, dict_name, t, t);
-            return 0;
-         }
-       entry = _e_connman_element_array_dict_find_stringshared(array, key);
-       if (!entry)
-         {
-            WRN("element %s (%p) has no dict property with name \"%s\" with "
-                "key \"%s\".",
-                element->path, element, dict_name, key);
-            return 0;
-         }
-
-       if (type) *type = entry->type;
-
-       switch (entry->type)
-         {
-          case DBUS_TYPE_BOOLEAN:
-             *(bool *)value = entry->value.boolean;
-             return 1;
-          case DBUS_TYPE_BYTE:
-             *(unsigned char *)value = entry->value.byte;
-             return 1;
-          case DBUS_TYPE_UINT16:
-             *(unsigned short *)value = entry->value.u16;
-             return 1;
-          case DBUS_TYPE_UINT32:
-             *(unsigned int *)value = entry->value.u32;
-             return 1;
-          case DBUS_TYPE_STRING:
-             *(const char **)value = entry->value.str;
-             return 1;
-          case DBUS_TYPE_OBJECT_PATH:
-             *(const char **)value = entry->value.path;
-             return 1;
-          default:
-             ERR("don't know how to get property %s, key %s type %c (%d)",
-                 dict_name, key, entry->type, entry->type);
-             return 0;
-         }
-     }
+   {
+      E_Connman_Element_Dict_Entry *entry;
+      E_Connman_Array *array;
+
+      if (p->name != dict_name)
+         continue;
+
+      if (p->type != DBUS_TYPE_ARRAY)
+        {
+           WRN("element %s (%p) has property \"%s\" is not an array: %c (%d)",
+               element->path, element, dict_name, p->type, p->type);
+           return 0;
+        }
+
+      array = p->value.array;
+      if ((!array) || (array->type != DBUS_TYPE_DICT_ENTRY))
+        {
+           int t = array ? array->type : DBUS_TYPE_INVALID;
+           WRN("element %s (%p) has property \"%s\" is not a dict: %c (%d)",
+               element->path, element, dict_name, t, t);
+           return 0;
+        }
+
+      entry = _e_connman_element_array_dict_find_stringshared(array, key);
+      if (!entry)
+        {
+           WRN("element %s (%p) has no dict property with name \"%s\" with "
+               "key \"%s\".",
+               element->path, element, dict_name, key);
+           return 0;
+        }
+
+      if (type)
+         *type = entry->type;
+
+      switch (entry->type)
+        {
+         case DBUS_TYPE_BOOLEAN:
+            *(bool *)value = entry->value.boolean;
+            return 1;
+
+         case DBUS_TYPE_BYTE:
+            *(unsigned char *)value = entry->value.byte;
+            return 1;
+
+         case DBUS_TYPE_UINT16:
+            *(unsigned short *)value = entry->value.u16;
+            return 1;
+
+         case DBUS_TYPE_UINT32:
+            *(unsigned int *)value = entry->value.u32;
+            return 1;
+
+         case DBUS_TYPE_STRING:
+            *(const char **)value = entry->value.str;
+            return 1;
+
+         case DBUS_TYPE_OBJECT_PATH:
+            *(const char **)value = entry->value.path;
+            return 1;
+
+         default:
+            ERR("don't know how to get property %s, key %s type %c (%d)",
+                dict_name, key, entry->type, entry->type);
+            return 0;
+        }
+   }
 
    WRN("element %s (%p) has no property with name \"%s\".",
        element->path, element, dict_name);
@@ -1795,41 +1912,49 @@ e_connman_element_property_get_stringshared(const E_Connman_Element *element, co
    EINA_SAFETY_ON_NULL_RETURN_VAL(value, 0);
 
    EINA_INLIST_FOREACH(element->props, p)
-     {
-       if (p->name != name)
-         continue;
-
-       if (type) *type = p->type;
-
-       switch (p->type)
-         {
-          case DBUS_TYPE_BOOLEAN:
-             *(bool *)value = p->value.boolean;
-             return 1;
-          case DBUS_TYPE_BYTE:
-             *(unsigned char *)value = p->value.byte;
-             return 1;
-          case DBUS_TYPE_UINT16:
-             *(unsigned short *)value = p->value.u16;
-             return 1;
-          case DBUS_TYPE_UINT32:
-             *(unsigned int *)value = p->value.u32;
-             return 1;
-          case DBUS_TYPE_STRING:
-             *(const char **)value = p->value.str;
-             return 1;
-          case DBUS_TYPE_OBJECT_PATH:
-             *(const char **)value = p->value.path;
-             return 1;
-          case DBUS_TYPE_ARRAY:
-             *(E_Connman_Array **)value = p->value.array;
-             return 1;
-          default:
-             ERR("don't know how to get property type %c (%d)",
-                 p->type, p->type);
-             return 0;
-         }
-     }
+   {
+      if (p->name != name)
+         continue;
+
+      if (type)
+         *type = p->type;
+
+      switch (p->type)
+        {
+         case DBUS_TYPE_BOOLEAN:
+            *(bool *)value = p->value.boolean;
+            return 1;
+
+         case DBUS_TYPE_BYTE:
+            *(unsigned char *)value = p->value.byte;
+            return 1;
+
+         case DBUS_TYPE_UINT16:
+            *(unsigned short *)value = p->value.u16;
+            return 1;
+
+         case DBUS_TYPE_UINT32:
+            *(unsigned int *)value = p->value.u32;
+            return 1;
+
+         case DBUS_TYPE_STRING:
+            *(const char **)value = p->value.str;
+            return 1;
+
+         case DBUS_TYPE_OBJECT_PATH:
+            *(const char **)value = p->value.path;
+            return 1;
+
+         case DBUS_TYPE_ARRAY:
+            *(E_Connman_Array **)value = p->value.array;
+            return 1;
+
+         default:
+            ERR("don't know how to get property type %c (%d)",
+                p->type, p->type);
+            return 0;
+        }
+   }
 
    WRN("element %s (%p) has no property with name \"%s\".",
        element->path, element, name);
@@ -1859,16 +1984,15 @@ e_connman_element_property_get(const E_Connman_Element *element, const char *nam
    bool ret;
    name = eina_stringshare_add(name);
    ret = e_connman_element_property_get_stringshared
-     (element, name, type, value);
+         (element, name, type, value);
    eina_stringshare_del(name);
    return ret;
 }
 
-
 struct e_connman_elements_for_each_data
 {
    Eina_Hash_Foreach cb;
-   void *data;
+   void             *data;
 };
 
 static Eina_Bool
@@ -1894,8 +2018,8 @@ e_connman_elements_for_each(Eina_Hash_Foreach cb, const void *user_data)
 
    EINA_SAFETY_ON_NULL_RETURN(cb);
 
-   eina_hash_foreach(elements, (Eina_Hash_Foreach) _e_connman_elements_for_each,
-                    &data);
+   eina_hash_foreach(elements, (Eina_Hash_Foreach)_e_connman_elements_for_each,
+                     &data);
 }
 
 static bool
@@ -1904,18 +2028,19 @@ _e_connman_elements_get_allocate(unsigned int *count, E_Connman_Element ***p_ele
    *count = eina_hash_population(elements);
    if (*count == 0)
      {
-       *p_elements = NULL;
-       return 1;
+        *p_elements = NULL;
+        return 1;
      }
 
    *p_elements = malloc(*count * sizeof(E_Connman_Element *));
    if (!*p_elements)
      {
-       ERR("could not allocate return array of %d elements: %s",
-           *count, strerror(errno));
-       *count = 0;
-       return 0;
+        ERR("could not allocate return array of %d elements: %s",
+            *count, strerror(errno));
+        *count = 0;
+        return 0;
      }
+
    return 1;
 }
 
@@ -1954,18 +2079,19 @@ e_connman_elements_get_all(unsigned int *count, E_Connman_Element ***p_elements)
    EINA_SAFETY_ON_NULL_RETURN_VAL(p_elements, 0);
 
    if (!_e_connman_elements_get_allocate(count, p_elements))
-     return 0;
+      return 0;
+
    p = *p_elements;
-   eina_hash_foreach(elements, (Eina_Hash_Foreach) _e_connman_elements_get_all,
-                    &p);
+   eina_hash_foreach(elements, (Eina_Hash_Foreach)_e_connman_elements_get_all,
+                     &p);
    return 1;
 }
 
 struct e_connman_elements_get_all_str_data
 {
    E_Connman_Element **elements;
-   int count;
-   const char *str;
+   int                 count;
+   const char         *str;
 };
 
 static Eina_Bool
@@ -1975,7 +2101,7 @@ _e_connman_elements_get_all_type(Eina_Hash *hash __UNUSED__, const char *key __U
    E_Connman_Element *element = e;
 
    if ((data->str) && (element->interface != data->str))
-     return 1;
+      return 1;
 
    data->elements[data->count] = element;
    data->count++;
@@ -2009,14 +2135,14 @@ e_connman_elements_get_all_type(const char *type, unsigned int *count, E_Connman
    EINA_SAFETY_ON_NULL_RETURN_VAL(p_elements, 0);
 
    if (!_e_connman_elements_get_allocate(count, p_elements))
-     return 0;
+      return 0;
 
    data.elements = *p_elements;
    data.count = 0;
    data.str = eina_stringshare_add(type);
    eina_hash_foreach(elements,
-                    (Eina_Hash_Foreach) _e_connman_elements_get_all_type,
-                    &data);
+                     (Eina_Hash_Foreach)_e_connman_elements_get_all_type,
+                     &data);
 
    eina_stringshare_del(data.str);
    *count = data.count;
@@ -2053,46 +2179,55 @@ _e_connman_element_property_changed_callback(void *data, DBusMessage *msg)
    DBG("Property changed in element %s", element->path);
 
    if (!_dbus_callback_check_and_init(msg, &itr, NULL))
-     return;
+      return;
 
    t = dbus_message_iter_get_arg_type(&itr);
    if (!_dbus_iter_type_check(t, DBUS_TYPE_STRING))
      {
-       ERR("missing name in property changed signal");
-       return;
+        ERR("missing name in property changed signal");
+        return;
      }
+
    dbus_message_iter_get_basic(&itr, &name);
 
    dbus_message_iter_next(&itr);
    t = dbus_message_iter_get_arg_type(&itr);
    if (!_dbus_iter_type_check(t, DBUS_TYPE_VARIANT))
      {
-       ERR("missing value in property changed signal");
-       return;
+        ERR("missing value in property changed signal");
+        return;
      }
+
    dbus_message_iter_recurse(&itr, &v_itr);
    t = dbus_message_iter_get_arg_type(&v_itr);
 
    if (t == DBUS_TYPE_ARRAY)
-     value = _e_connman_element_iter_get_array(&v_itr, name);
+     {
+        value = _e_connman_element_iter_get_array(&v_itr, name);
+     }
    else if (t != DBUS_TYPE_INVALID)
-     dbus_message_iter_get_basic(&v_itr, &value);
+     {
+        dbus_message_iter_get_basic(&v_itr, &value);
+     }
    else
      {
-       ERR("property has invalid type %s", name);
-       return;
+        ERR("property has invalid type %s", name);
+        return;
      }
 
    r = _e_connman_element_property_value_add(element, name, t, value);
    if (r < 0)
-     ERR("failed to add property value %s (%c)", name, t);
+     {
+        ERR("failed to add property value %s (%c)", name, t);
+     }
    else if (r == 1)
      {
-       INF("property value changed %s (%c)", name, t);
-       changed = 1;
+        INF("property value changed %s (%c)", name, t);
+        changed = 1;
      }
+
    if (changed)
-     _e_connman_element_listeners_call(element);
+      _e_connman_element_listeners_call(element);
 }
 
 /**
@@ -2118,24 +2253,24 @@ e_connman_element_register(const char *path, const char *interface)
 
    element = eina_hash_find(elements, path);
    if (element)
-     return element;
+      return element;
 
    element = e_connman_element_new(path, interface);
    if (!element)
-     return NULL;
+      return NULL;
 
    if (!eina_hash_add(elements, element->path, element))
      {
-       ERR("could not add element %s to hash, delete it.", path);
-       e_connman_element_free(element);
-       return NULL;
+        ERR("could not add element %s to hash, delete it.", path);
+        e_connman_element_free(element);
+        return NULL;
      }
 
    element->signal_handler =
-     e_dbus_signal_handler_add
-     (e_connman_conn, e_connman_system_bus_name_get(),
-      element->path, element->interface, "PropertyChanged",
-      _e_connman_element_property_changed_callback, element);
+      e_dbus_signal_handler_add
+         (e_connman_conn, e_connman_system_bus_name_get(),
+         element->path, element->interface, "PropertyChanged",
+         _e_connman_element_property_changed_callback, element);
 
    e_connman_element_event_add(E_CONNMAN_EVENT_ELEMENT_ADD, element);
 
@@ -2154,12 +2289,12 @@ _e_connman_element_unregister_internal(E_Connman_Element *element)
 {
    if (element->signal_handler)
      {
-       e_dbus_signal_handler_del(e_connman_conn, element->signal_handler);
-       element->signal_handler = NULL;
+        e_dbus_signal_handler_del(e_connman_conn, element->signal_handler);
+        element->signal_handler = NULL;
      }
 
    ecore_event_add(E_CONNMAN_EVENT_ELEMENT_DEL, element,
-                  _e_connman_element_event_unregister_and_free, NULL);
+                   _e_connman_element_event_unregister_and_free, NULL);
 }
 
 /**
@@ -2175,10 +2310,10 @@ void
 e_connman_element_unregister(E_Connman_Element *element)
 {
    if (!element)
-     return;
+      return;
 
    if (elements)
-     eina_hash_del_by_key(elements, element->path);
+      eina_hash_del_by_key(elements, element->path);
 }
 
 /**
@@ -2209,8 +2344,8 @@ e_connman_elements_init(void)
 {
    EINA_SAFETY_ON_FALSE_RETURN(!elements);
    elements =
-     eina_hash_string_superfast_new(EINA_FREE_CB
-                                   (_e_connman_element_unregister_internal));
+      eina_hash_string_superfast_new(EINA_FREE_CB
+                                        (_e_connman_element_unregister_internal));
 }
 
 void
@@ -2268,3 +2403,4 @@ e_connman_element_is_technology(const E_Connman_Element *element)
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
    return _e_connman_element_is(element, e_connman_iface_technology);
 }
+
index 679d8eb..43259f2 100644 (file)
@@ -33,11 +33,11 @@ e_connman_manager_agent_register(const char *object_path, E_DBus_Method_Return_C
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
 
    return e_connman_element_call_with_path
-     (element, name, object_path, NULL,
-      &element->_pending.agent_register, cb, data);
+             (element, name, object_path, NULL,
+             &element->_pending.agent_register, cb, data);
 }
 
 /**
@@ -62,11 +62,11 @@ e_connman_manager_agent_unregister(const char *object_path, E_DBus_Method_Return
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
 
    return e_connman_element_call_with_path
-     (element, name, object_path, NULL,
-      &element->_pending.agent_unregister, cb, data);
+             (element, name, object_path, NULL,
+             &element->_pending.agent_unregister, cb, data);
 }
 
 /**
@@ -100,9 +100,10 @@ e_connman_manager_state_get(const char **state)
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_property_get_stringshared
-     (element, e_connman_prop_state, NULL, state);
+             (element, e_connman_prop_state, NULL, state);
 }
 
 /**
@@ -138,9 +139,10 @@ e_connman_manager_offline_mode_get(bool *offline)
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_property_get_stringshared
-     (element, e_connman_prop_offline_mode, NULL, offline);
+             (element, e_connman_prop_offline_mode, NULL, offline);
 }
 
 /**
@@ -173,10 +175,11 @@ e_connman_manager_offline_mode_set(bool offline, E_DBus_Method_Return_Cb cb, con
 {
    E_Connman_Element *element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_property_set_full
-     (element, e_connman_prop_offline_mode, DBUS_TYPE_BOOLEAN,
-      &offline, cb, data);
+             (element, e_connman_prop_offline_mode, DBUS_TYPE_BOOLEAN,
+             &offline, cb, data);
 }
 
 /**
@@ -200,9 +203,10 @@ e_connman_manager_profiles_get(unsigned int *count, E_Connman_Element ***p_eleme
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_objects_array_get_stringshared
-     (element, e_connman_prop_profiles, count, p_elements);
+             (element, e_connman_prop_profiles, count, p_elements);
 }
 
 /**
@@ -240,9 +244,10 @@ e_connman_manager_services_get(unsigned int *count, E_Connman_Element ***p_eleme
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_objects_array_get_stringshared
-     (element, e_connman_prop_services, count, p_elements);
+             (element, e_connman_prop_services, count, p_elements);
 }
 
 /**
@@ -266,9 +271,10 @@ e_connman_manager_technologies_get(unsigned int *count, E_Connman_Element ***p_e
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_objects_array_get_stringshared
-     (element, e_connman_prop_technologies, count, p_elements);
+             (element, e_connman_prop_technologies, count, p_elements);
 }
 
 /**
@@ -292,15 +298,15 @@ e_connman_manager_request_scan(const char *type, E_DBus_Method_Return_Cb cb, con
    E_Connman_Element *element;
 
    if (!type)
-     type = "";
+      type = "";
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
 
    return e_connman_element_call_with_string
-     (element, name, type, NULL,
-      &element->_pending.request_scan, cb, data);
+             (element, name, type, NULL,
+             &element->_pending.request_scan, cb, data);
 }
 
 /**
@@ -324,11 +330,11 @@ e_connman_manager_technology_enable(const char *type, E_DBus_Method_Return_Cb cb
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
 
    return e_connman_element_call_with_string
-     (element, name, type, NULL,
-      &element->_pending.technology_enable, cb, data);
+             (element, name, type, NULL,
+             &element->_pending.technology_enable, cb, data);
 }
 
 /**
@@ -352,11 +358,11 @@ e_connman_manager_technology_disable(const char *type, E_DBus_Method_Return_Cb c
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
 
    return e_connman_element_call_with_string
-     (element, name, type, NULL,
-      &element->_pending.technology_disable, cb, data);
+             (element, name, type, NULL,
+             &element->_pending.technology_disable, cb, data);
 }
 
 /**
@@ -384,9 +390,10 @@ e_connman_manager_technology_default_get(const char **type)
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_property_get_stringshared
-     (element, e_connman_prop_technology_default, NULL, type);
+             (element, e_connman_prop_technology_default, NULL, type);
 }
 
 /**
@@ -416,15 +423,15 @@ e_connman_manager_profile_remove(const E_Connman_Element *profile, E_DBus_Method
    EINA_SAFETY_ON_NULL_RETURN_VAL(profile->path, 0);
 
    if (!e_connman_element_is_profile(profile))
-     return 0;
+      return 0;
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
 
    return e_connman_element_call_with_path
-     (element, name, profile->path, NULL,
-      &element->_pending.profile_remove, cb, data);
+             (element, name, profile->path, NULL,
+             &element->_pending.profile_remove, cb, data);
 }
 
 /**
@@ -450,10 +457,12 @@ e_connman_manager_profile_active_get(E_Connman_Element **profile)
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    if (!e_connman_element_property_get_stringshared
-       (element, e_connman_prop_profile_active, NULL, &profile_path))
-     return 0;
+          (element, e_connman_prop_profile_active, NULL, &profile_path))
+      return 0;
+
    *profile = e_connman_element_get(profile_path);
    return 1;
 }
@@ -482,17 +491,17 @@ e_connman_manager_profile_active_set(const E_Connman_Element *profile, E_DBus_Me
    EINA_SAFETY_ON_NULL_RETURN_VAL(profile->path, 0);
 
    if (!e_connman_element_is_profile(profile))
-     return 0;
+      return 0;
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_property_set_full
-     (element, e_connman_prop_profile_active, DBUS_TYPE_OBJECT_PATH,
-      profile->path, cb, data);
+             (element, e_connman_prop_profile_active, DBUS_TYPE_OBJECT_PATH,
+             profile->path, cb, data);
 }
 
-
 /**
  * Get array of strings representing the available technologies.
  *
@@ -517,9 +526,10 @@ e_connman_manager_technologies_available_get(unsigned int *count, const char ***
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_strings_array_get_stringshared
-     (element, e_connman_prop_technologies_available, count, p_strings);
+             (element, e_connman_prop_technologies_available, count, p_strings);
 }
 
 /**
@@ -546,9 +556,10 @@ e_connman_manager_technologies_enabled_get(unsigned int *count, const char ***p_
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_strings_array_get_stringshared
-     (element, e_connman_prop_technologies_enabled, count, p_strings);
+             (element, e_connman_prop_technologies_enabled, count, p_strings);
 }
 
 /**
@@ -575,7 +586,9 @@ e_connman_manager_technologies_connected_get(unsigned int *count, const char ***
 
    element = e_connman_manager_get();
    if (!element)
-     return 0;
+      return 0;
+
    return e_connman_element_strings_array_get_stringshared
-     (element, e_connman_prop_technologies_connected, count, p_strings);
+             (element, e_connman_prop_technologies_connected, count, p_strings);
 }
+
index 6e8c87d..ce987c2 100644 (file)
@@ -9,12 +9,12 @@ e_connman_network_get(const char *path)
 
    network = e_connman_element_get(path);
    if (!network)
-     return NULL;
+      return NULL;
 
    if (!e_connman_element_is_network(network))
      {
-       WRN("path '%s' is not a network!", path);
-       return NULL;
+        WRN("path '%s' is not a network!", path);
+        return NULL;
      }
 
    return network;
@@ -46,7 +46,7 @@ e_connman_network_address_get(const E_Connman_Element *network, const char **add
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(address, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_address, NULL, address);
+             (network, e_connman_prop_address, NULL, address);
 }
 
 /**
@@ -74,7 +74,7 @@ e_connman_network_name_get(const E_Connman_Element *network, const char **name)
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(name, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_name, NULL, name);
+             (network, e_connman_prop_name, NULL, name);
 }
 
 /**
@@ -98,7 +98,7 @@ e_connman_network_connected_get(const E_Connman_Element *network, bool *connecte
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(connected, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_connected, NULL, connected);
+             (network, e_connman_prop_connected, NULL, connected);
 }
 
 /**
@@ -123,7 +123,7 @@ e_connman_network_strength_get(const E_Connman_Element *network, unsigned char *
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(strength, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_strength, NULL, strength);
+             (network, e_connman_prop_strength, NULL, strength);
 }
 
 /**
@@ -147,7 +147,7 @@ e_connman_network_frequency_get(const E_Connman_Element *network, unsigned short
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(frequency, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_frequency, NULL, frequency);
+             (network, e_connman_prop_frequency, NULL, frequency);
 }
 
 /**
@@ -168,8 +168,9 @@ e_connman_network_device_get(const E_Connman_Element *network, E_Connman_Element
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
 
    if (!e_connman_element_property_get_stringshared
-       (network, e_connman_prop_device, NULL, &device_path))
-     return 0;
+          (network, e_connman_prop_device, NULL, &device_path))
+      return 0;
+
    *element = e_connman_element_get(device_path);
    return 1;
 }
@@ -198,9 +199,10 @@ e_connman_network_wifi_ssid_get(const E_Connman_Element *network, unsigned int *
    EINA_SAFETY_ON_NULL_RETURN_VAL(wifi_ssid, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(count, 0);
    *wifi_ssid = e_connman_element_bytes_array_get_stringshared
-     (network, e_connman_prop_wifi_ssid, count);
+         (network, e_connman_prop_wifi_ssid, count);
    if (!*wifi_ssid)
-     return 0;
+      return 0;
+
    return 1;
 }
 
@@ -233,7 +235,7 @@ e_connman_network_wifi_mode_get(const E_Connman_Element *network, const char **w
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(wifi_mode, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_wifi_mode, NULL, wifi_mode);
+             (network, e_connman_prop_wifi_mode, NULL, wifi_mode);
 }
 
 /**
@@ -267,7 +269,7 @@ e_connman_network_wifi_security_get(const E_Connman_Element *network, const char
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(wifi_security, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_wifi_security, NULL, wifi_security);
+             (network, e_connman_prop_wifi_security, NULL, wifi_security);
 }
 
 /**
@@ -298,7 +300,7 @@ e_connman_network_wifi_passphrase_get(const E_Connman_Element *network, const ch
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(wifi_passphrase, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_wifi_passphrase, NULL, wifi_passphrase);
+             (network, e_connman_prop_wifi_passphrase, NULL, wifi_passphrase);
 }
 
 /**
@@ -322,7 +324,7 @@ e_connman_network_wifi_channel_get(const E_Connman_Element *network, unsigned sh
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(wifi_channel, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_wifi_channel, NULL, wifi_channel);
+             (network, e_connman_prop_wifi_channel, NULL, wifi_channel);
 }
 
 /**
@@ -351,5 +353,6 @@ e_connman_network_wifi_eap_get(const E_Connman_Element *network, const char **wi
    EINA_SAFETY_ON_NULL_RETURN_VAL(network, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(wifi_eap, 0);
    return e_connman_element_property_get_stringshared
-     (network, e_connman_prop_wifi_eap, NULL, wifi_eap);
+             (network, e_connman_prop_wifi_eap, NULL, wifi_eap);
 }
+
index 878f61b..9a102f4 100644 (file)
@@ -16,7 +16,7 @@
 # ifdef  __cplusplus
 extern "C"
 # endif
-void *alloca (size_t);
+void *    alloca (size_t);
 #endif
 
 #include <stdio.h>
@@ -104,67 +104,67 @@ extern int _e_dbus_connman_log_dom;
 #undef WRN
 #undef ERR
 
-#define DBG(...) EINA_LOG_DOM_DBG(_e_dbus_connman_log_dom , __VA_ARGS__)
-#define INF(...) EINA_LOG_DOM_INFO(_e_dbus_connman_log_dom , __VA_ARGS__)
-#define WRN(...) EINA_LOG_DOM_WARN(_e_dbus_connman_log_dom , __VA_ARGS__)
-#define ERR(...) EINA_LOG_DOM_ERR(_e_dbus_connman_log_dom , __VA_ARGS__)
+#define DBG(...) EINA_LOG_DOM_DBG(_e_dbus_connman_log_dom, __VA_ARGS__)
+#define INF(...) EINA_LOG_DOM_INFO(_e_dbus_connman_log_dom, __VA_ARGS__)
+#define WRN(...) EINA_LOG_DOM_WARN(_e_dbus_connman_log_dom, __VA_ARGS__)
+#define ERR(...) EINA_LOG_DOM_ERR(_e_dbus_connman_log_dom, __VA_ARGS__)
 
 static inline bool
 _dbus_callback_check_and_init(DBusMessage *msg, DBusMessageIter *itr, DBusError *err)
 {
    if (!msg)
      {
-       if (err)
-         ERR("an error was reported by server: "
-                        "name=\"%s\", message=\"%s\"",
-                        err->name, err->message);
-       else
-         ERR("callback without message arguments!");
-
-       return 0;
+        if (err)
+           ERR("an error was reported by server: "
+               "name=\"%s\", message=\"%s\"",
+               err->name, err->message);
+        else
+           ERR("callback without message arguments!");
+
+        return 0;
      }
 
    if (!dbus_message_iter_init(msg, itr))
      {
-         ERR("could not init iterator.");
-       return 0;
+        ERR("could not init iterator.");
+        return 0;
      }
 
    return 1;
 }
 
-
 static inline bool
 __dbus_iter_type_check(int type, int expected, const char *expected_name)
 {
    if (type == expected)
-     return 1;
+      return 1;
 
    ERR("expected type %s (%c) but got %c instead!",
        expected_name, expected, type);
 
    return 0;
 }
-#define _dbus_iter_type_check(t, e) __dbus_iter_type_check(t, e, #e)
+
+#define _dbus_iter_type_check(t, e) __dbus_iter_type_check(t, e, # e)
 
 extern E_DBus_Connection *e_connman_conn;
 
-const char *e_connman_system_bus_name_get(void);
+const char *           e_connman_system_bus_name_get(void);
 
-void e_connman_manager_clear_elements(void);
+void                   e_connman_manager_clear_elements(void);
 
-void e_connman_elements_init(void);
-void e_connman_elements_shutdown(void);
+void                   e_connman_elements_init(void);
+void                   e_connman_elements_shutdown(void);
 
-E_Connman_Element *e_connman_element_register(const char *path, const char *interface);
-void e_connman_element_unregister(E_Connman_Element *element);
+E_Connman_Element *    e_connman_element_register(const char *path, const char *interface);
+void                   e_connman_element_unregister(E_Connman_Element *element);
 
-bool e_connman_element_objects_array_get_stringshared(const E_Connman_Element *element, const char *property, unsigned int *count, E_Connman_Element ***elements);
-bool e_connman_element_strings_array_get_stringshared(const E_Connman_Element *element, const char *property, unsigned int *count, const char ***strings);
-unsigned char *e_connman_element_bytes_array_get_stringshared(const E_Connman_Element *element, const char *property, unsigned int *count);
+bool                   e_connman_element_objects_array_get_stringshared(const E_Connman_Element *element, const char *property, unsigned int *count, E_Connman_Element ***elements);
+bool                   e_connman_element_strings_array_get_stringshared(const E_Connman_Element *element, const char *property, unsigned int *count, const char ***strings);
+unsigned char *        e_connman_element_bytes_array_get_stringshared(const E_Connman_Element *element, const char *property, unsigned int *count);
 
-bool e_connman_element_message_send(E_Connman_Element *element, const char *method_name, E_DBus_Method_Return_Cb cb, DBusMessage *msg, Eina_Inlist **pending, E_DBus_Method_Return_Cb user_cb, const void *user_data);
+bool                   e_connman_element_message_send(E_Connman_Element *element, const char *method_name, E_DBus_Method_Return_Cb cb, DBusMessage *msg, Eina_Inlist **pending, E_DBus_Method_Return_Cb user_cb, const void *user_data);
 
-bool e_connman_element_call_full(E_Connman_Element *element, const char *method_name, E_DBus_Method_Return_Cb cb, Eina_Inlist **pending, E_DBus_Method_Return_Cb user_cb, const void *user_data);
-bool e_connman_element_call_with_path(E_Connman_Element *element, const char *method_name, const char *string, E_DBus_Method_Return_Cb cb, Eina_Inlist **pending, E_DBus_Method_Return_Cb user_cb, const void *user_data);
-bool e_connman_element_call_with_string(E_Connman_Element *element, const char *method_name, const char *string, E_DBus_Method_Return_Cb cb, Eina_Inlist **pending, E_DBus_Method_Return_Cb user_cb, const void *user_data);
+bool                   e_connman_element_call_full(E_Connman_Element *element, const char *method_name, E_DBus_Method_Return_Cb cb, Eina_Inlist **pending, E_DBus_Method_Return_Cb user_cb, const void *user_data);
+bool                   e_connman_element_call_with_path(E_Connman_Element *element, const char *method_name, const char *string, E_DBus_Method_Return_Cb cb, Eina_Inlist **pending, E_DBus_Method_Return_Cb user_cb, const void *user_data);
+bool                   e_connman_element_call_with_string(E_Connman_Element *element, const char *method_name, const char *string, E_DBus_Method_Return_Cb cb, Eina_Inlist **pending, E_DBus_Method_Return_Cb user_cb, const void *user_data);
index 4da1914..cea6c2c 100644 (file)
@@ -9,12 +9,12 @@ e_connman_profile_get(const char *path)
 
    profile = e_connman_element_get(path);
    if (!profile)
-     return NULL;
+      return NULL;
 
    if (!e_connman_element_is_profile(profile))
      {
-       WRN("path '%s' is not a profile!", path);
-       return NULL;
+        WRN("path '%s' is not a profile!", path);
+        return NULL;
      }
 
    return profile;
@@ -44,7 +44,7 @@ e_connman_profile_name_get(const E_Connman_Element *profile, const char **name)
    EINA_SAFETY_ON_NULL_RETURN_VAL(profile, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(name, 0);
    return e_connman_element_property_get_stringshared
-     (profile, e_connman_prop_name, NULL, name);
+             (profile, e_connman_prop_name, NULL, name);
 }
 
 /**
@@ -66,7 +66,7 @@ e_connman_profile_name_set(E_Connman_Element *profile, const char *name, E_DBus_
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(profile, 0);
    return e_connman_element_property_set_full
-     (profile, e_connman_prop_name, DBUS_TYPE_STRING, name, cb, data);
+             (profile, e_connman_prop_name, DBUS_TYPE_STRING, name, cb, data);
 }
 
 /**
@@ -92,7 +92,7 @@ e_connman_profile_offline_mode_get(const E_Connman_Element *profile, bool *offli
    EINA_SAFETY_ON_NULL_RETURN_VAL(profile, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(offline, 0);
    return e_connman_element_property_get_stringshared
-     (profile, e_connman_prop_offline_mode, NULL, offline);
+             (profile, e_connman_prop_offline_mode, NULL, offline);
 }
 
 /**
@@ -118,8 +118,8 @@ e_connman_profile_offline_mode_set(E_Connman_Element *profile, bool offline, E_D
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(profile, 0);
    return e_connman_element_property_set_full
-     (profile, e_connman_prop_offline_mode, DBUS_TYPE_BOOLEAN,
-      &offline, cb, data);
+             (profile, e_connman_prop_offline_mode, DBUS_TYPE_BOOLEAN,
+             &offline, cb, data);
 }
 
 /**
@@ -138,5 +138,6 @@ e_connman_profile_services_get(const E_Connman_Element *profile, unsigned int *c
    EINA_SAFETY_ON_NULL_RETURN_VAL(count, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(p_elements, 0);
    return e_connman_element_objects_array_get_stringshared
-     (profile, e_connman_prop_services, count, p_elements);
+             (profile, e_connman_prop_services, count, p_elements);
 }
+
index 92d64c6..d3263e3 100644 (file)
@@ -9,12 +9,12 @@ e_connman_service_get(const char *path)
 
    service = e_connman_element_get(path);
    if (!service)
-     return NULL;
+      return NULL;
 
    if (!e_connman_element_is_service(service))
      {
-       WRN("path '%s' is not a service!", path);
-       return NULL;
+        WRN("path '%s' is not a service!", path);
+        return NULL;
      }
 
    return service;
@@ -45,7 +45,7 @@ e_connman_service_connect(E_Connman_Element *service, E_DBus_Method_Return_Cb cb
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    return e_connman_element_call_full
-     (service, name, NULL, &service->_pending.service_connect, cb, data);
+             (service, name, NULL, &service->_pending.service_connect, cb, data);
 }
 
 /**
@@ -75,7 +75,7 @@ e_connman_service_disconnect(E_Connman_Element *service, E_DBus_Method_Return_Cb
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    return e_connman_element_call_full
-     (service, name, NULL, &service->_pending.service_disconnect, cb, data);
+             (service, name, NULL, &service->_pending.service_disconnect, cb, data);
 }
 
 /**
@@ -112,7 +112,7 @@ e_connman_service_remove(E_Connman_Element *service, E_DBus_Method_Return_Cb cb,
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    return e_connman_element_call_full
-     (service, name, NULL, &service->_pending.service_remove, cb, data);
+             (service, name, NULL, &service->_pending.service_remove, cb, data);
 }
 
 /**
@@ -134,8 +134,8 @@ e_connman_service_clear_property(E_Connman_Element *service, const char *propert
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(property, 0);
    return e_connman_element_call_with_string
-     (service, name, property, NULL, &service->_pending.service_clear_property,
-      cb, data);
+             (service, name, property, NULL, &service->_pending.service_clear_property,
+             cb, data);
 }
 
 /**
@@ -164,8 +164,8 @@ e_connman_service_move_before(E_Connman_Element *service, const char *object_pat
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(object_path, 0);
    return e_connman_element_call_with_path
-     (service, name, object_path, NULL,
-      &service->_pending.service_move_before, cb, data);
+             (service, name, object_path, NULL,
+             &service->_pending.service_move_before, cb, data);
 }
 
 /**
@@ -193,8 +193,8 @@ e_connman_service_move_after(E_Connman_Element *service, const char *object_path
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(object_path, 0);
    return e_connman_element_call_with_path
-     (service, name, object_path, NULL,
-      &service->_pending.service_move_after, cb, data);
+             (service, name, object_path, NULL,
+             &service->_pending.service_move_after, cb, data);
 }
 
 /**
@@ -223,7 +223,7 @@ e_connman_service_state_get(const E_Connman_Element *service, const char **state
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(state, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_state, NULL, state);
+             (service, e_connman_prop_state, NULL, state);
 }
 
 /**
@@ -260,7 +260,7 @@ e_connman_service_error_get(const E_Connman_Element *service, const char **error
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(error, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_error, NULL, error);
+             (service, e_connman_prop_error, NULL, error);
 }
 
 /**
@@ -292,7 +292,7 @@ e_connman_service_name_get(const E_Connman_Element *service, const char **name)
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(name, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_name, NULL, name);
+             (service, e_connman_prop_name, NULL, name);
 }
 
 /**
@@ -322,7 +322,7 @@ e_connman_service_type_get(const E_Connman_Element *service, const char **type)
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(type, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_type, NULL, type);
+             (service, e_connman_prop_type, NULL, type);
 }
 
 /**
@@ -358,7 +358,7 @@ e_connman_service_mode_get(const E_Connman_Element *service, const char **mode)
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(mode, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_mode, NULL, mode);
+             (service, e_connman_prop_mode, NULL, mode);
 }
 
 /**
@@ -391,7 +391,7 @@ e_connman_service_security_get(const E_Connman_Element *service, const char **se
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(security, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_security, NULL, security);
+             (service, e_connman_prop_security, NULL, security);
 }
 
 /**
@@ -426,7 +426,7 @@ e_connman_service_passphrase_get(const E_Connman_Element *service, const char **
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(passphrase, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_passphrase, NULL, passphrase);
+             (service, e_connman_prop_passphrase, NULL, passphrase);
 }
 
 /**
@@ -459,8 +459,8 @@ e_connman_service_passphrase_set(E_Connman_Element *service, const char *passphr
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    return e_connman_element_property_set_full
-     (service, e_connman_prop_passphrase, DBUS_TYPE_STRING,
-      passphrase, cb, data);
+             (service, e_connman_prop_passphrase, DBUS_TYPE_STRING,
+             passphrase, cb, data);
 }
 
 /**
@@ -489,7 +489,7 @@ e_connman_service_passphrase_required_get(const E_Connman_Element *service, bool
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(passphrase_required, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_passphrase_required, NULL, passphrase_required);
+             (service, e_connman_prop_passphrase_required, NULL, passphrase_required);
 }
 
 /**
@@ -517,7 +517,7 @@ e_connman_service_strength_get(const E_Connman_Element *service, unsigned char *
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(strength, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_strength, NULL, strength);
+             (service, e_connman_prop_strength, NULL, strength);
 }
 
 /**
@@ -546,7 +546,7 @@ e_connman_service_favorite_get(const E_Connman_Element *service, bool *favorite)
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(favorite, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_favorite, NULL, favorite);
+             (service, e_connman_prop_favorite, NULL, favorite);
 }
 
 /**
@@ -571,7 +571,7 @@ e_connman_service_immutable_get(const E_Connman_Element *service, bool *immutabl
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(immutable, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_immutable, NULL, immutable);
+             (service, e_connman_prop_immutable, NULL, immutable);
 }
 
 /**
@@ -601,7 +601,7 @@ e_connman_service_auto_connect_get(const E_Connman_Element *service, bool *auto_
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(auto_connect, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_auto_connect, NULL, auto_connect);
+             (service, e_connman_prop_auto_connect, NULL, auto_connect);
 }
 
 /**
@@ -630,7 +630,7 @@ e_connman_service_auto_connect_set(E_Connman_Element *service, bool auto_connect
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    return e_connman_element_property_set_full
-     (service, e_connman_prop_auto_connect, DBUS_TYPE_BOOLEAN, &auto_connect, cb, data);
+             (service, e_connman_prop_auto_connect, DBUS_TYPE_BOOLEAN, &auto_connect, cb, data);
 }
 
 /**
@@ -658,7 +658,7 @@ e_connman_service_setup_required_get(const E_Connman_Element *service, bool *set
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(setup_required, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_setup_required, NULL, setup_required);
+             (service, e_connman_prop_setup_required, NULL, setup_required);
 }
 
 /**
@@ -693,7 +693,7 @@ e_connman_service_apn_get(const E_Connman_Element *service, const char **apn)
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(apn, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_apn, NULL, apn);
+             (service, e_connman_prop_apn, NULL, apn);
 }
 
 /**
@@ -726,8 +726,8 @@ e_connman_service_apn_set(E_Connman_Element *service, const char *apn, E_DBus_Me
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    return e_connman_element_property_set_full
-     (service, e_connman_prop_apn, DBUS_TYPE_STRING,
-      apn, cb, data);
+             (service, e_connman_prop_apn, DBUS_TYPE_STRING,
+             apn, cb, data);
 }
 
 /**
@@ -754,7 +754,7 @@ e_connman_service_mcc_get(const E_Connman_Element *service, const char **mcc)
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(mcc, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_mcc, NULL, mcc);
+             (service, e_connman_prop_mcc, NULL, mcc);
 }
 
 /**
@@ -781,7 +781,7 @@ e_connman_service_mnc_get(const E_Connman_Element *service, const char **mnc)
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(mnc, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_mnc, NULL, mnc);
+             (service, e_connman_prop_mnc, NULL, mnc);
 }
 
 /**
@@ -809,7 +809,7 @@ e_connman_service_roaming_get(const E_Connman_Element *service, bool *roaming)
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(roaming, 0);
    return e_connman_element_property_get_stringshared
-     (service, e_connman_prop_roaming, NULL, roaming);
+             (service, e_connman_prop_roaming, NULL, roaming);
 }
 
 /**
@@ -836,7 +836,7 @@ e_connman_service_ipv4_method_get(const E_Connman_Element *service, const char *
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(method, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ipv4, e_connman_prop_method, NULL, method);
+             (service, e_connman_prop_ipv4, e_connman_prop_method, NULL, method);
 }
 
 /**
@@ -862,7 +862,7 @@ e_connman_service_ipv4_address_get(const E_Connman_Element *service, const char
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(address, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ipv4, e_connman_prop_address, NULL, address);
+             (service, e_connman_prop_ipv4, e_connman_prop_address, NULL, address);
 }
 
 /**
@@ -888,7 +888,7 @@ e_connman_service_ipv4_gateway_get(const E_Connman_Element *service, const char
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(gateway, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ipv4, e_connman_prop_gateway, NULL, gateway);
+             (service, e_connman_prop_ipv4, e_connman_prop_gateway, NULL, gateway);
 }
 
 /**
@@ -914,7 +914,7 @@ e_connman_service_ipv4_netmask_get(const E_Connman_Element *service, const char
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(netmask, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ipv4, e_connman_prop_netmask, NULL, netmask);
+             (service, e_connman_prop_ipv4, e_connman_prop_netmask, NULL, netmask);
 }
 
 /**
@@ -944,8 +944,8 @@ e_connman_service_ipv4_configuration_method_get(const E_Connman_Element *service
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(method, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ipv4_configuration, e_connman_prop_method,
-      NULL, method);
+             (service, e_connman_prop_ipv4_configuration, e_connman_prop_method,
+             NULL, method);
 }
 
 /**
@@ -974,8 +974,8 @@ e_connman_service_ipv4_configuration_address_get(const E_Connman_Element *servic
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(address, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ipv4_configuration, e_connman_prop_address,
-      NULL, address);
+             (service, e_connman_prop_ipv4_configuration, e_connman_prop_address,
+             NULL, address);
 }
 
 /**
@@ -1004,8 +1004,8 @@ e_connman_service_ipv4_configuration_gateway_get(const E_Connman_Element *servic
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(gateway, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ipv4_configuration, e_connman_prop_gateway,
-      NULL, gateway);
+             (service, e_connman_prop_ipv4_configuration, e_connman_prop_gateway,
+             NULL, gateway);
 }
 
 /**
@@ -1034,8 +1034,8 @@ e_connman_service_ipv4_configuration_netmask_get(const E_Connman_Element *servic
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(netmask, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ipv4_configuration, e_connman_prop_netmask,
-      NULL, netmask);
+             (service, e_connman_prop_ipv4_configuration, e_connman_prop_netmask,
+             NULL, netmask);
 }
 
 /**
@@ -1053,8 +1053,8 @@ e_connman_service_ipv4_configure_dhcp(E_Connman_Element *service, E_DBus_Method_
    const char method[] = "dhcp";
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    return e_connman_element_property_dict_set_full
-     (service, e_connman_prop_ipv4_configuration, e_connman_prop_method,
-      DBUS_TYPE_STRING, method, cb, data);
+             (service, e_connman_prop_ipv4_configuration, e_connman_prop_method,
+             DBUS_TYPE_STRING, method, cb, data);
 }
 
 /**
@@ -1081,17 +1081,17 @@ e_connman_service_ipv4_configure_manual(E_Connman_Element *service, const char *
    EINA_SAFETY_ON_NULL_RETURN_VAL(address, 0);
 
    msg = dbus_message_new_method_call
-     (e_connman_system_bus_name_get(), service->path, service->interface, name);
+         (e_connman_system_bus_name_get(), service->path, service->interface, name);
 
    if (!msg)
-     return 0;
+      return 0;
 
    dbus_message_iter_init_append(msg, &itr);
    dbus_message_iter_append_basic
-     (&itr, DBUS_TYPE_STRING, &e_connman_prop_ipv4_configuration);
+      (&itr, DBUS_TYPE_STRING, &e_connman_prop_ipv4_configuration);
 
    dbus_message_iter_open_container
-     (&itr, DBUS_TYPE_VARIANT,
+      (&itr, DBUS_TYPE_VARIANT,
       (DBUS_TYPE_ARRAY_AS_STRING
        DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING
        DBUS_TYPE_STRING_AS_STRING
@@ -1099,7 +1099,7 @@ e_connman_service_ipv4_configure_manual(E_Connman_Element *service, const char *
        DBUS_DICT_ENTRY_END_CHAR_AS_STRING),
       &variant);
    dbus_message_iter_open_container
-     (&variant, DBUS_TYPE_ARRAY,
+      (&variant, DBUS_TYPE_ARRAY,
       (DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING
        DBUS_TYPE_STRING_AS_STRING
        DBUS_TYPE_STRING_AS_STRING
@@ -1108,41 +1108,41 @@ e_connman_service_ipv4_configure_manual(E_Connman_Element *service, const char *
 
    dbus_message_iter_open_container(&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry);
    dbus_message_iter_append_basic
-     (&entry, DBUS_TYPE_STRING, &e_connman_prop_method);
+      (&entry, DBUS_TYPE_STRING, &e_connman_prop_method);
    dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &method);
    dbus_message_iter_close_container(&dict, &entry);
 
    dbus_message_iter_open_container(&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry);
    dbus_message_iter_append_basic
-     (&entry, DBUS_TYPE_STRING, &e_connman_prop_address);
+      (&entry, DBUS_TYPE_STRING, &e_connman_prop_address);
    dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &address);
    dbus_message_iter_close_container(&dict, &entry);
 
    if (netmask)
      {
-       dbus_message_iter_open_container
-         (&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry);
-       dbus_message_iter_append_basic
-         (&entry, DBUS_TYPE_STRING, &e_connman_prop_netmask);
-       dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &netmask);
-       dbus_message_iter_close_container(&dict, &entry);
+        dbus_message_iter_open_container
+           (&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry);
+        dbus_message_iter_append_basic
+           (&entry, DBUS_TYPE_STRING, &e_connman_prop_netmask);
+        dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &netmask);
+        dbus_message_iter_close_container(&dict, &entry);
      }
 
    if (gateway)
      {
-         dbus_message_iter_open_container
-             (&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry);
-         dbus_message_iter_append_basic
-             (&entry, DBUS_TYPE_STRING, &e_connman_prop_gateway);
-         dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &gateway);
-         dbus_message_iter_close_container(&dict, &entry);
+        dbus_message_iter_open_container
+           (&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry);
+        dbus_message_iter_append_basic
+           (&entry, DBUS_TYPE_STRING, &e_connman_prop_gateway);
+        dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &gateway);
+        dbus_message_iter_close_container(&dict, &entry);
      }
 
    dbus_message_iter_close_container(&variant, &dict);
    dbus_message_iter_close_container(&itr, &variant);
 
    return e_connman_element_message_send
-     (service, name, NULL, msg, &service->_pending.property_set, cb, data);
+             (service, name, NULL, msg, &service->_pending.property_set, cb, data);
 }
 
 /**
@@ -1168,7 +1168,7 @@ e_connman_service_ethernet_method_get(const E_Connman_Element *service, const ch
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(method, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ethernet, e_connman_prop_method, NULL, method);
+             (service, e_connman_prop_ethernet, e_connman_prop_method, NULL, method);
 }
 
 /**
@@ -1194,7 +1194,7 @@ e_connman_service_ethernet_address_get(const E_Connman_Element *service, const c
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(address, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ethernet, e_connman_prop_address, NULL, address);
+             (service, e_connman_prop_ethernet, e_connman_prop_address, NULL, address);
 }
 
 /**
@@ -1220,7 +1220,7 @@ e_connman_service_ethernet_mtu_get(const E_Connman_Element *service, unsigned sh
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(mtu, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ethernet, e_connman_prop_mtu, NULL, mtu);
+             (service, e_connman_prop_ethernet, e_connman_prop_mtu, NULL, mtu);
 }
 
 /**
@@ -1246,5 +1246,6 @@ e_connman_service_ethernet_netmask_get(const E_Connman_Element *service, const c
    EINA_SAFETY_ON_NULL_RETURN_VAL(service, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(netmask, 0);
    return e_connman_element_property_dict_get_stringshared
-     (service, e_connman_prop_ethernet, e_connman_prop_netmask, NULL, netmask);
+             (service, e_connman_prop_ethernet, e_connman_prop_netmask, NULL, netmask);
 }
+
index f463c06..e80dcc1 100644 (file)
@@ -9,12 +9,12 @@ e_connman_technology_get(const char *path)
 
    technology = e_connman_element_get(path);
    if (!technology)
-     return NULL;
+      return NULL;
 
    if (!e_connman_element_is_technology(technology))
      {
-       WRN("path '%s' is not a technology!", path);
-       return NULL;
+        WRN("path '%s' is not a technology!", path);
+        return NULL;
      }
 
    return technology;
@@ -43,7 +43,7 @@ e_connman_technology_name_get(const E_Connman_Element *technology, const char **
    EINA_SAFETY_ON_NULL_RETURN_VAL(technology, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(name, 0);
    return e_connman_element_property_get_stringshared
-     (technology, e_connman_prop_name, NULL, name);
+             (technology, e_connman_prop_name, NULL, name);
 }
 
 /**
@@ -73,7 +73,7 @@ e_connman_technology_type_get(const E_Connman_Element *technology, const char **
    EINA_SAFETY_ON_NULL_RETURN_VAL(technology, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(type, 0);
    return e_connman_element_property_get_stringshared
-     (technology, e_connman_prop_type, NULL, type);
+             (technology, e_connman_prop_type, NULL, type);
 }
 
 /**
@@ -102,7 +102,7 @@ e_connman_technology_state_get(const E_Connman_Element *technology, const char *
    EINA_SAFETY_ON_NULL_RETURN_VAL(technology, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(state, 0);
    return e_connman_element_property_get_stringshared
-     (technology, e_connman_prop_state, NULL, state);
+             (technology, e_connman_prop_state, NULL, state);
 }
 
 /**
@@ -128,5 +128,6 @@ e_connman_technology_devices_get(const E_Connman_Element *technology, unsigned i
    EINA_SAFETY_ON_NULL_RETURN_VAL(count, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(t_elements, 0);
    return e_connman_element_objects_array_get_stringshared
-     (technology, e_connman_prop_devices, count, t_elements);
+             (technology, e_connman_prop_devices, count, t_elements);
 }
+