Data Structures | |
struct | _E_Connman_Element |
Typedefs | |
typedef struct _E_Connman_Element | E_Connman_Element |
Functions | |
EAPI E_Connman_Element * | e_connman_element_get (const char *path) |
EAPI Eina_Bool | e_connman_element_is_manager (const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_element_is_profile (const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_element_is_service (const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_element_is_technology (const E_Connman_Element *element) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
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 |
EAPI void 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 |
EAPI void | e_connman_element_print (FILE *fp, const E_Connman_Element *element) EINA_ARG_NONNULL(1 |
EAPI void | e_connman_element_properties_list (const E_Connman_Element *element, Eina_Bool(*cb)(void *data, const E_Connman_Element *element, const char *name, int type, const void *value), const void *data) EINA_ARG_NONNULL(1 |
EAPI void EAPI Eina_Bool | e_connman_element_properties_sync (E_Connman_Element *element) EINA_ARG_NONNULL(1) |
EAPI Eina_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 Eina_Bool | e_connman_element_property_array_set_full (E_Connman_Element *element, const char *prop, int type, unsigned int count, const void *const *values, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1 |
EAPI Eina_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 |
EAPI Eina_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 |
EAPI Eina_Bool | e_connman_element_property_dict_strings_array_get_stringshared (const E_Connman_Element *element, const char *dict_name, const char *key, unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_element_property_get (const E_Connman_Element *element, const char *name, int *type, void *value) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_element_property_get_stringshared (const E_Connman_Element *element, const char *name, int *type, void *value) EINA_ARG_NONNULL(1 |
EAPI void EAPI Eina_Bool | e_connman_element_property_set (E_Connman_Element *element, const char *prop, int type, const void *value) EINA_ARG_NONNULL(1 |
EAPI Eina_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 |
EAPI Eina_Bool | e_connman_element_property_type_get (const E_Connman_Element *element, const char *name, int *type) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_element_property_type_get_stringshared (const E_Connman_Element *element, const char *name, int *type) EINA_ARG_NONNULL(1 |
EAPI void EAPI void 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 Eina_Bool | e_connman_elements_get_all (unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_elements_get_all_type (const char *type, unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1 |
EAPI Eina_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 Eina_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 E_Connman_Element * | e_connman_manager_get (void) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_manager_offline_mode_get (Eina_Bool *offline) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_manager_offline_mode_set (Eina_Bool offline, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_manager_profile_active_get (E_Connman_Element **profile) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_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 Eina_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 Eina_Bool | e_connman_manager_profiles_get (unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_manager_request_scan (const char *type, E_DBus_Method_Return_Cb cb, const void *data) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_manager_services_get (unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_manager_state_get (const char **state) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_manager_sync_elements (void) |
EAPI Eina_Bool | e_connman_manager_technologies_available_get (unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_manager_technologies_connected_get (unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_manager_technologies_enabled_get (unsigned int *count, const char ***strings) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_manager_technologies_get (unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_manager_technology_default_get (const char **type) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_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 Eina_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 E_Connman_Element * | e_connman_profile_get (const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_profile_name_get (const E_Connman_Element *profile, const char **name) EINA_ARG_NONNULL(1 |
EAPI Eina_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 |
EAPI Eina_Bool | e_connman_profile_offline_mode_get (const E_Connman_Element *profile, Eina_Bool *offline) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_profile_offline_mode_set (E_Connman_Element *profile, Eina_Bool offline, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_profile_services_get (const E_Connman_Element *profile, unsigned int *count, E_Connman_Element ***p_elements) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_auto_connect_get (const E_Connman_Element *service, Eina_Bool *auto_connect) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_auto_connect_set (E_Connman_Element *service, Eina_Bool auto_connect, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_service_clear_property (E_Connman_Element *service, const char *property, E_DBus_Method_Return_Cb cb, const void *data) |
EAPI Eina_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 Eina_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 Eina_Bool | e_connman_service_domains_get (const E_Connman_Element *service, unsigned int *count, const char ***domains) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_error_get (const E_Connman_Element *service, const char **error) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ethernet_address_get (const E_Connman_Element *service, const char **address) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ethernet_duplex_get (const E_Connman_Element *service, const char **duplex) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ethernet_interface_get (const E_Connman_Element *service, const char **iface) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ethernet_method_get (const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ethernet_mtu_get (const E_Connman_Element *service, unsigned short *mtu) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ethernet_speed_get (const E_Connman_Element *service, unsigned short *speed) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_favorite_get (const E_Connman_Element *service, Eina_Bool *favorite) EINA_ARG_NONNULL(1 |
EAPI E_Connman_Element * | e_connman_service_get (const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_service_immutable_get (const E_Connman_Element *service, Eina_Bool *immutable) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ipv4_address_get (const E_Connman_Element *service, const char **address) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ipv4_configuration_address_get (const E_Connman_Element *service, const char **address) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ipv4_configuration_gateway_get (const E_Connman_Element *service, const char **gateway) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ipv4_configuration_method_get (const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ipv4_configuration_netmask_get (const E_Connman_Element *service, const char **netmask) EINA_ARG_NONNULL(1 |
EAPI Eina_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 Eina_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 |
EAPI Eina_Bool | e_connman_service_ipv4_gateway_get (const E_Connman_Element *service, const char **gateway) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ipv4_method_get (const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_ipv4_netmask_get (const E_Connman_Element *service, const char **netmask) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_login_required_get (const E_Connman_Element *service, Eina_Bool *login_required) EINA_ARG_NONNULL(1 |
EAPI Eina_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 |
EAPI Eina_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 |
EAPI Eina_Bool | e_connman_service_name_get (const E_Connman_Element *service, const char **name) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_nameservers_configuration_get (const E_Connman_Element *service, unsigned int *count, const char ***nameservers) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_nameservers_configuration_set (E_Connman_Element *service, unsigned int count, const char **nameservers, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_nameservers_get (const E_Connman_Element *service, unsigned int *count, const char ***nameserver) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_passphrase_get (const E_Connman_Element *service, const char **passphrase) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_passphrase_required_get (const E_Connman_Element *service, Eina_Bool *passphrase_required) EINA_ARG_NONNULL(1 |
EAPI Eina_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 Eina_Bool | e_connman_service_proxy_configuration_excludes_get (const E_Connman_Element *service, unsigned int *count, const char ***excludes) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_proxy_configuration_method_get (const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_proxy_configuration_servers_get (const E_Connman_Element *service, unsigned int *count, const char ***servers) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_proxy_configuration_url_get (const E_Connman_Element *service, const char **url) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_proxy_excludes_get (const E_Connman_Element *service, unsigned int *count, const char ***excludes) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_proxy_method_get (const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_proxy_servers_get (const E_Connman_Element *service, unsigned int *count, const char ***servers) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_proxy_url_get (const E_Connman_Element *service, const char **url) EINA_ARG_NONNULL(1 |
EAPI Eina_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 Eina_Bool | e_connman_service_roaming_get (const E_Connman_Element *service, Eina_Bool *roaming) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_security_get (const E_Connman_Element *service, unsigned int *count, const char ***security) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_state_get (const E_Connman_Element *service, const char **state) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_strength_get (const E_Connman_Element *service, unsigned char *strength) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_service_type_get (const E_Connman_Element *service, const char **type) EINA_ARG_NONNULL(1 |
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 E_Connman_Element * | e_connman_technology_get (const char *path) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Bool | e_connman_technology_name_get (const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_technology_state_get (const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1 |
EAPI Eina_Bool | e_connman_technology_type_get (const E_Connman_Element *technology, const char **state) EINA_ARG_NONNULL(1 |
Variables | |
int | E_CONNMAN_EVENT_ELEMENT_ADD |
int | E_CONNMAN_EVENT_ELEMENT_DEL |
int | E_CONNMAN_EVENT_ELEMENT_UPDATED |
int | E_CONNMAN_EVENT_MANAGER_IN |
int | E_CONNMAN_EVENT_MANAGER_OUT |
EAPI Eina_Bool | EINA_WARN_UNUSED_RESULT |
Detailed Description
Currently supporting upstream API version 0.75 and later.
- Note
- this API is subject to changed based on upstream connman changes, then it is required to acknowledge this by defining: * #define E_CONNMAN_I_KNOW_THIS_API_IS_SUBJECT_TO_CHANGE 1*
Typedef Documentation
typedef struct _E_Connman_Element E_Connman_Element |
Function Documentation
EAPI E_Connman_Element* e_connman_element_get | ( | const char * | path | ) |
Get the element registered at given path.
- Parameters
-
path the path to query for registered object.
- Returns
- element pointer if found, NULL otherwise. No references are added.
References e_connman_elements_get_all_str_data::elements.
Referenced by e_connman_element_objects_array_get_stringshared(), e_connman_manager_get(), e_connman_manager_profile_active_get(), e_connman_profile_get(), e_connman_service_get(), and e_connman_technology_get().
EAPI Eina_Bool e_connman_element_is_manager | ( | const E_Connman_Element * | element | ) |
References e_connman_iface_manager.
EAPI Eina_Bool e_connman_element_is_profile | ( | const E_Connman_Element * | element | ) |
References e_connman_iface_profile.
Referenced by e_connman_manager_profile_active_set(), e_connman_manager_profile_remove(), and e_connman_profile_get().
EAPI Eina_Bool e_connman_element_is_service | ( | const E_Connman_Element * | element | ) |
References e_connman_iface_service.
Referenced by e_connman_service_get().
EAPI Eina_Bool e_connman_element_is_technology | ( | const E_Connman_Element * | element | ) |
References e_connman_iface_technology.
Referenced by e_connman_technology_get().
EAPI void e_connman_element_listener_add | ( | E_Connman_Element * | element, |
void(*)(void *data, const E_Connman_Element *element) | cb, | ||
const void * | data, | ||
void(*)(void *data) | free_data | ||
) |
EAPI void EAPI void e_connman_element_listener_del | ( | E_Connman_Element * | element, |
void(*)(void *data, const E_Connman_Element *element) | cb, | ||
const void * | data | ||
) |
EAPI void e_connman_element_print | ( | FILE * | fp, |
const E_Connman_Element * | element | ||
) |
EAPI void e_connman_element_properties_list | ( | const E_Connman_Element * | element, |
Eina_Bool(*)(void *data, const E_Connman_Element *element, const char *name, int type, const void *value) | cb, | ||
const void * | data | ||
) |
Referenced by e_connman_element_list_properties().
EAPI void EAPI Eina_Bool e_connman_element_properties_sync | ( | E_Connman_Element * | element | ) |
Sync element properties with server, simple version.
Call method GetProperties() at the given element on server in order to sync them. This is the simple version and there is no check of server reply for errors.
- Parameters
-
element to call method on server.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_properties_sync_full().
Referenced by e_connman_manager_sync_elements().
EAPI Eina_Bool e_connman_element_properties_sync_full | ( | E_Connman_Element * | element, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Sync element properties with server.
Call method GetProperties() at the given element on server in order to sync them.
- Parameters
-
element to call method on server. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, e_connman_element_call_full(), and _E_Connman_Element::properties_get.
Referenced by e_connman_element_properties_sync(), and e_connman_element_sync_properties_full().
EAPI Eina_Bool e_connman_element_property_array_set_full | ( | E_Connman_Element * | element, |
const char * | prop, | ||
int | type, | ||
unsigned int | count, | ||
const void *const * | values, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
EAPI Eina_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 | ||
) |
Referenced by e_connman_element_property_dict_strings_array_get_stringshared(), e_connman_service_ethernet_address_get(), e_connman_service_ethernet_duplex_get(), e_connman_service_ethernet_interface_get(), e_connman_service_ethernet_method_get(), e_connman_service_ethernet_mtu_get(), e_connman_service_ethernet_speed_get(), e_connman_service_ipv4_address_get(), e_connman_service_ipv4_configuration_address_get(), e_connman_service_ipv4_configuration_gateway_get(), e_connman_service_ipv4_configuration_method_get(), e_connman_service_ipv4_configuration_netmask_get(), e_connman_service_ipv4_gateway_get(), e_connman_service_ipv4_method_get(), e_connman_service_ipv4_netmask_get(), e_connman_service_proxy_configuration_method_get(), e_connman_service_proxy_configuration_url_get(), e_connman_service_proxy_method_get(), and e_connman_service_proxy_url_get().
EAPI Eina_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 | ||
) |
Referenced by e_connman_service_ipv4_configure_dhcp().
EAPI Eina_Bool e_connman_element_property_dict_strings_array_get_stringshared | ( | const E_Connman_Element * | element, |
const char * | dict_name, | ||
const char * | key, | ||
unsigned int * | count, | ||
const char *** | strings | ||
) |
EAPI Eina_Bool e_connman_element_property_get | ( | const E_Connman_Element * | element, |
const char * | name, | ||
int * | type, | ||
void * | value | ||
) |
EAPI Eina_Bool e_connman_element_property_get_stringshared | ( | const E_Connman_Element * | element, |
const char * | name, | ||
int * | type, | ||
void * | value | ||
) |
Referenced by e_connman_element_bytes_array_get_stringshared(), e_connman_element_objects_array_get_stringshared(), e_connman_element_property_get(), e_connman_element_strings_array_get_stringshared(), e_connman_manager_offline_mode_get(), e_connman_manager_profile_active_get(), e_connman_manager_state_get(), e_connman_manager_technology_default_get(), e_connman_profile_name_get(), e_connman_profile_offline_mode_get(), e_connman_service_auto_connect_get(), e_connman_service_error_get(), e_connman_service_favorite_get(), e_connman_service_immutable_get(), e_connman_service_login_required_get(), e_connman_service_name_get(), e_connman_service_passphrase_get(), e_connman_service_passphrase_required_get(), e_connman_service_roaming_get(), e_connman_service_state_get(), e_connman_service_strength_get(), e_connman_service_type_get(), e_connman_technology_name_get(), e_connman_technology_state_get(), and e_connman_technology_type_get().
EAPI void EAPI Eina_Bool e_connman_element_property_set | ( | E_Connman_Element * | element, |
const char * | prop, | ||
int | type, | ||
const void * | value | ||
) |
EAPI Eina_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 | ||
) |
EAPI Eina_Bool e_connman_element_property_type_get | ( | const E_Connman_Element * | element, |
const char * | name, | ||
int * | type | ||
) |
EAPI Eina_Bool e_connman_element_property_type_get_stringshared | ( | const E_Connman_Element * | element, |
const char * | name, | ||
int * | type | ||
) |
Referenced by e_connman_element_property_type_get().
EAPI void EAPI void EAPI int e_connman_element_ref | ( | E_Connman_Element * | element | ) |
Add reference to element.
References _E_Connman_Element::_references.
EAPI int e_connman_element_unref | ( | E_Connman_Element * | element | ) |
Remove reference from element.
If reference count drops to 0 element will be freed.
References _E_Connman_Element::_references, and ERR.
EAPI Eina_Bool e_connman_elements_get_all | ( | unsigned int * | count, |
E_Connman_Element *** | p_elements | ||
) |
EAPI Eina_Bool e_connman_elements_get_all_type | ( | const char * | type, |
unsigned int * | count, | ||
E_Connman_Element *** | p_elements | ||
) |
EAPI Eina_Bool e_connman_manager_agent_register | ( | const char * | object_path, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Register new agent for handling user requests.
Call method RegisterAgent(object) on server in order to register new agent for handling user requests.
- Parameters
-
object_path object to be registered. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, _E_Connman_Element::agent_register, e_connman_element_call_with_path(), and e_connman_manager_get().
EAPI Eina_Bool e_connman_manager_agent_unregister | ( | const char * | object_path, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Unregister an existing agent.
Call method UnregisterAgent(object) on server in order to unregister an existing agent.
- Parameters
-
object_path agent to be unregistered. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, _E_Connman_Element::agent_unregister, e_connman_element_call_with_path(), and e_connman_manager_get().
EAPI E_Connman_Element* e_connman_manager_get | ( | void | ) |
Get the element manager.
- Returns
- element pointer if found, NULL otherwise.
References e_connman_element_get().
Referenced by e_connman_manager_agent_register(), e_connman_manager_agent_unregister(), e_connman_manager_offline_mode_get(), e_connman_manager_offline_mode_set(), e_connman_manager_profile_active_get(), e_connman_manager_profile_active_set(), e_connman_manager_profile_remove(), e_connman_manager_profiles_get(), e_connman_manager_request_scan(), e_connman_manager_services_get(), e_connman_manager_state_get(), e_connman_manager_technologies_available_get(), e_connman_manager_technologies_connected_get(), e_connman_manager_technologies_enabled_get(), e_connman_manager_technologies_get(), e_connman_manager_technology_default_get(), e_connman_manager_technology_disable(), and e_connman_manager_technology_enable().
EAPI Eina_Bool e_connman_manager_offline_mode_get | ( | Eina_Bool * | offline | ) |
Get property "OfflineMode" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
The offline mode indicates the global setting for switching all radios on or off. Changing offline mode to true results in powering down all devices that use radio technology. When leaving offline mode the individual policy of each technology decides to switch the radio back on or not.
During offline mode, it is still possible to switch certain technologies manually back on. For example the limited usage of WiFi or Bluetooth technologies might be allowed in some situations.
- Parameters
-
offline where to store the property value, must be a pointer to Eina_Bool (Eina_Bool *).
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_property_get_stringshared(), e_connman_manager_get(), and e_connman_prop_offline_mode.
EAPI Eina_Bool e_connman_manager_offline_mode_set | ( | Eina_Bool | offline, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Call method SetProperty("OfflineMode", offline) at the given element on server.
This is a server call, not local, so it may fail and in that case no property is updated locally. If the value was set the event E_CONNMAN_EVENT_ELEMENT_UPDATED will be added to main loop.
The offline mode indicates the global setting for switching all radios on or off. Changing offline mode to true results in powering down all devices that use radio technology. When leaving offline mode the individual policy of each technology decides to switch the radio back on or not.
During offline mode, it is still possible to switch certain technologies manually back on. For example the limited usage of WiFi or Bluetooth technologies might be allowed in some situations.
- Parameters
-
offline value to set. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_property_set_full(), e_connman_manager_get(), and e_connman_prop_offline_mode.
EAPI Eina_Bool e_connman_manager_profile_active_get | ( | E_Connman_Element ** | profile | ) |
Get property "ActiveProfile" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
- Parameters
-
element where to store the element, just changed if return is EINA_TRUE
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_get(), e_connman_element_property_get_stringshared(), e_connman_manager_get(), and e_connman_prop_profile_active.
EAPI Eina_Bool e_connman_manager_profile_active_set | ( | const E_Connman_Element * | profile, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Call method SetProperty("ActiveProfile", profile) at the given element on server.
This is a server call, not local, so it may fail and in that case no property is updated locally. If the value was set the event E_CONNMAN_EVENT_ELEMENT_UPDATED will be added to main loop.
- Parameters
-
profile object to set. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_is_profile(), e_connman_element_property_set_full(), e_connman_manager_get(), e_connman_prop_profile_active, and _E_Connman_Element::path.
EAPI Eina_Bool e_connman_manager_profile_remove | ( | const E_Connman_Element * | profile, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Remove specified profile.
Call method RemoveProfile(profile) on server.
It is not possible to remove the current active profile. To remove the active profile a different one must be selected via ActiveProfile property first.
At minimum one profile must be available all the time.
- Parameters
-
profile element to remove, must be of type profile. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, e_connman_element_call_with_path(), e_connman_element_is_profile(), e_connman_manager_get(), _E_Connman_Element::path, and _E_Connman_Element::profile_remove.
EAPI Eina_Bool e_connman_manager_profiles_get | ( | unsigned int * | count, |
E_Connman_Element *** | p_elements | ||
) |
EAPI Eina_Bool e_connman_manager_request_scan | ( | const char * | type, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Request to trigger a scan for given technology.
Call method RequestScan(type) on server in order to find new services for such technology type.
The empty string for type means all technolgies.
- Parameters
-
type technology type to scan. Empty or NULL for all technologies. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, e_connman_element_call_with_string(), e_connman_manager_get(), and _E_Connman_Element::request_scan.
EAPI Eina_Bool e_connman_manager_services_get | ( | unsigned int * | count, |
E_Connman_Element *** | p_elements | ||
) |
EAPI Eina_Bool e_connman_manager_state_get | ( | const char ** | state | ) |
Get property "State" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
The global connection state of a system. Possible values are "online" if at least one connection exists and "offline" if no service is connected.
In certain situations the state might change to the value "connected". This can only be seen if previously no connection was present.
- Parameters
-
state where to store the property value, must be a pointer to string (const char **), it will not be allocated or copied and references will be valid until element changes, so copy it if you want to use it later.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_property_get_stringshared(), e_connman_manager_get(), and e_connman_prop_state.
EAPI Eina_Bool e_connman_manager_sync_elements | ( | void | ) |
Synchronize elements with server.
This will call Manager.GetProperties() on server, retrieve properties and some element paths and then request their properties.
This call will add events E_CONNMAN_EVENT_ELEMENT_ADD and E_CONNMAN_EVENT_ELEMENT_UPDATED to the main loop.
This will not remove stale elements.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References DBG, e_connman_element_properties_sync(), e_connman_element_register(), and e_connman_iface_manager.
EAPI Eina_Bool e_connman_manager_technologies_available_get | ( | unsigned int * | count, |
const char *** | strings | ||
) |
EAPI Eina_Bool e_connman_manager_technologies_connected_get | ( | unsigned int * | count, |
const char *** | strings | ||
) |
EAPI Eina_Bool e_connman_manager_technologies_enabled_get | ( | unsigned int * | count, |
const char *** | strings | ||
) |
EAPI Eina_Bool e_connman_manager_technologies_get | ( | unsigned int * | count, |
E_Connman_Element *** | p_elements | ||
) |
EAPI Eina_Bool e_connman_manager_technology_default_get | ( | const char ** | type | ) |
Get property "DefaultTechnology" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
The current connected technology which holds the default route.
- Parameters
-
type where to store the property value, must be a pointer to string (const char **), it will not be allocated or copied and references will be valid until element changes, so copy it if you want to use it later.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_property_get_stringshared(), e_connman_manager_get(), and e_connman_prop_technology_default.
EAPI Eina_Bool e_connman_manager_technology_disable | ( | const char * | type, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Disable specified type of technology.
Call method DisableTechnology(type) on server.
- Parameters
-
type technology type to disable. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, e_connman_element_call_with_string(), e_connman_manager_get(), and _E_Connman_Element::technology_disable.
EAPI Eina_Bool e_connman_manager_technology_enable | ( | const char * | type, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Enable specified type of technology.
Call method EnableTechnology(type) on server.
- Parameters
-
type technology type to enable. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, e_connman_element_call_with_string(), e_connman_manager_get(), and _E_Connman_Element::technology_enable.
EAPI E_Connman_Element* e_connman_profile_get | ( | const char * | path | ) |
References e_connman_element_get(), e_connman_element_is_profile(), and WRN.
EAPI Eina_Bool e_connman_profile_name_get | ( | const E_Connman_Element * | profile, |
const char ** | name | ||
) |
EAPI Eina_Bool e_connman_profile_name_set | ( | E_Connman_Element * | profile, |
const char * | name, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
EAPI Eina_Bool e_connman_profile_offline_mode_get | ( | const E_Connman_Element * | profile, |
Eina_Bool * | offline | ||
) |
EAPI Eina_Bool e_connman_profile_offline_mode_set | ( | E_Connman_Element * | profile, |
Eina_Bool | offline, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Call method SetProperty("OfflineMode", offline) at the given element on server.
This is a server call, not local, so it may fail and in that case no property is updated locally. If the value was set the event E_CONNMAN_EVENT_ELEMENT_UPDATED will be added to main loop.
The offline mode indicates the global setting for switching all radios on or off. Changing offline mode to true results in powering down all devices that use radio technology.
- Parameters
-
offline value to set. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_property_set_full(), and e_connman_prop_offline_mode.
EAPI Eina_Bool e_connman_profile_services_get | ( | const E_Connman_Element * | profile, |
unsigned int * | count, | ||
E_Connman_Element *** | p_elements | ||
) |
EAPI Eina_Bool e_connman_service_auto_connect_get | ( | const E_Connman_Element * | service, |
Eina_Bool * | auto_connect | ||
) |
EAPI Eina_Bool e_connman_service_auto_connect_set | ( | E_Connman_Element * | service, |
Eina_Bool | auto_connect, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Set property "AutoConnect" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
If set to true, this service will auto-connect when not other connection is available.
For favorite services it is possible to change this value to prevent or permit automatic connection attempts.
- Parameters
-
service path to get property. service_favorite where to store the property value, must be a pointer to Eina_Bool (Eina_Bool *).
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_property_set_full(), and e_connman_prop_auto_connect.
EAPI Eina_Bool e_connman_service_clear_property | ( | E_Connman_Element * | service, |
const char * | property, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Clears the value of the specified property.
- Parameters
-
service path to call method on server. property to be cleared. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, e_connman_element_call_with_string(), and _E_Connman_Element::service_clear_property.
EAPI Eina_Bool e_connman_service_connect | ( | E_Connman_Element * | service, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Connect this service.
Connect this service. It will attempt to connect WiFi, WiMAX or Bluetooth services.
For Ethernet devices this method can only be used if it has previously been disconnected. Otherwise the plugging of a cable will trigger connecting automatically. If no cable is plugged in this method will fail.
- Parameters
-
service path to call method on server. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, e_connman_element_call_full(), and _E_Connman_Element::service_connect.
EAPI Eina_Bool e_connman_service_disconnect | ( | E_Connman_Element * | service, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Disconnect this service.
Disconnect this service. If the service is not connected an error message will be generated.
On Ethernet devices this will disconnect the IP details from the service. It will not magically unplug the cable. When no cable is plugged in this method will fail.
This method can also be used to abort a previous connectiong attempt via the Connect method.
- Parameters
-
service path to call method on server. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, e_connman_element_call_full(), and _E_Connman_Element::service_disconnect.
EAPI Eina_Bool e_connman_service_domains_get | ( | const E_Connman_Element * | service, |
unsigned int * | count, | ||
const char *** | domains | ||
) |
EAPI Eina_Bool e_connman_service_error_get | ( | const E_Connman_Element * | service, |
const char ** | error | ||
) |
EAPI Eina_Bool e_connman_service_ethernet_address_get | ( | const E_Connman_Element * | service, |
const char ** | address | ||
) |
EAPI Eina_Bool e_connman_service_ethernet_duplex_get | ( | const E_Connman_Element * | service, |
const char ** | duplex | ||
) |
EAPI Eina_Bool e_connman_service_ethernet_interface_get | ( | const E_Connman_Element * | service, |
const char ** | iface | ||
) |
EAPI Eina_Bool e_connman_service_ethernet_method_get | ( | const E_Connman_Element * | service, |
const char ** | method | ||
) |
EAPI Eina_Bool e_connman_service_ethernet_mtu_get | ( | const E_Connman_Element * | service, |
unsigned short * | mtu | ||
) |
EAPI Eina_Bool e_connman_service_ethernet_speed_get | ( | const E_Connman_Element * | service, |
unsigned short * | speed | ||
) |
EAPI Eina_Bool e_connman_service_favorite_get | ( | const E_Connman_Element * | service, |
Eina_Bool * | favorite | ||
) |
EAPI E_Connman_Element* e_connman_service_get | ( | const char * | path | ) |
References e_connman_element_get(), e_connman_element_is_service(), and WRN.
EAPI Eina_Bool e_connman_service_immutable_get | ( | const E_Connman_Element * | service, |
Eina_Bool * | immutable | ||
) |
EAPI Eina_Bool e_connman_service_ipv4_address_get | ( | const E_Connman_Element * | service, |
const char ** | address | ||
) |
EAPI Eina_Bool e_connman_service_ipv4_configuration_address_get | ( | const E_Connman_Element * | service, |
const char ** | address | ||
) |
EAPI Eina_Bool e_connman_service_ipv4_configuration_gateway_get | ( | const E_Connman_Element * | service, |
const char ** | gateway | ||
) |
EAPI Eina_Bool e_connman_service_ipv4_configuration_method_get | ( | const E_Connman_Element * | service, |
const char ** | method | ||
) |
EAPI Eina_Bool e_connman_service_ipv4_configuration_netmask_get | ( | const E_Connman_Element * | service, |
const char ** | netmask | ||
) |
EAPI Eina_Bool e_connman_service_ipv4_configure_dhcp | ( | E_Connman_Element * | service, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Set IPv4 to connect automatically using DHCP.
- Parameters
-
service path to set. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_property_dict_set_full(), e_connman_prop_ipv4_configuration, and e_connman_prop_method.
EAPI Eina_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 | ||
) |
EAPI Eina_Bool e_connman_service_ipv4_gateway_get | ( | const E_Connman_Element * | service, |
const char ** | gateway | ||
) |
EAPI Eina_Bool e_connman_service_ipv4_method_get | ( | const E_Connman_Element * | service, |
const char ** | method | ||
) |
EAPI Eina_Bool e_connman_service_ipv4_netmask_get | ( | const E_Connman_Element * | service, |
const char ** | netmask | ||
) |
EAPI Eina_Bool e_connman_service_login_required_get | ( | const E_Connman_Element * | service, |
Eina_Bool * | login_required | ||
) |
EAPI Eina_Bool e_connman_service_move_after | ( | E_Connman_Element * | service, |
const char * | object_path, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
EAPI Eina_Bool e_connman_service_move_before | ( | E_Connman_Element * | service, |
const char * | object_path, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
EAPI Eina_Bool e_connman_service_name_get | ( | const E_Connman_Element * | service, |
const char ** | name | ||
) |
EAPI Eina_Bool e_connman_service_nameservers_configuration_get | ( | const E_Connman_Element * | service, |
unsigned int * | count, | ||
const char *** | nameservers | ||
) |
EAPI Eina_Bool e_connman_service_nameservers_configuration_set | ( | E_Connman_Element * | service, |
unsigned int | count, | ||
const char ** | nameservers, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
EAPI Eina_Bool e_connman_service_nameservers_get | ( | const E_Connman_Element * | service, |
unsigned int * | count, | ||
const char *** | nameserver | ||
) |
EAPI Eina_Bool e_connman_service_passphrase_get | ( | const E_Connman_Element * | service, |
const char ** | passphrase | ||
) |
EAPI Eina_Bool e_connman_service_passphrase_required_get | ( | const E_Connman_Element * | service, |
Eina_Bool * | passphrase_required | ||
) |
EAPI Eina_Bool e_connman_service_passphrase_set | ( | E_Connman_Element * | service, |
const char * | passphrase, | ||
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Set property "Passphrase" value.
If this property isn't found then EINA_FALSE
is returned. If EINA_FALSE
is returned, then this call failed and parameter-returned values shall be considered invalid.
If the service type is WiFi, then this property can be used to store a passphrase.
No PropertyChanged signals will be send for this property. The PassphraseRequired property should be monitored instead.
This property might also not always be included since it is protected by a different security policy.
- Parameters
-
service path to get property. passphrase value to set. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References e_connman_element_property_set_full(), and e_connman_prop_passphrase.
EAPI Eina_Bool e_connman_service_proxy_configuration_excludes_get | ( | const E_Connman_Element * | service, |
unsigned int * | count, | ||
const char *** | excludes | ||
) |
EAPI Eina_Bool e_connman_service_proxy_configuration_method_get | ( | const E_Connman_Element * | service, |
const char ** | method | ||
) |
EAPI Eina_Bool e_connman_service_proxy_configuration_servers_get | ( | const E_Connman_Element * | service, |
unsigned int * | count, | ||
const char *** | servers | ||
) |
EAPI Eina_Bool e_connman_service_proxy_configuration_url_get | ( | const E_Connman_Element * | service, |
const char ** | url | ||
) |
EAPI Eina_Bool e_connman_service_proxy_excludes_get | ( | const E_Connman_Element * | service, |
unsigned int * | count, | ||
const char *** | excludes | ||
) |
EAPI Eina_Bool e_connman_service_proxy_method_get | ( | const E_Connman_Element * | service, |
const char ** | method | ||
) |
EAPI Eina_Bool e_connman_service_proxy_servers_get | ( | const E_Connman_Element * | service, |
unsigned int * | count, | ||
const char *** | servers | ||
) |
EAPI Eina_Bool e_connman_service_proxy_url_get | ( | const E_Connman_Element * | service, |
const char ** | url | ||
) |
EAPI Eina_Bool e_connman_service_remove | ( | E_Connman_Element * | service, |
E_DBus_Method_Return_Cb | cb, | ||
const void * | data | ||
) |
Remove this service.
A successfully connected service with Favorite=true can be removed this way. If it is connected, it will be automatically disconnected first.
If the service requires a passphrase it will be cleared and forgotten when removing.
This is similar to setting the Favorite property to false, but that is currently not supported.
In the case a connection attempt failed and the service is in the State=failure, this method can also be used to reset the service.
Calling this method on Ethernet devices will cause an error message. It is not possible to remove these kind of devices.
- Parameters
-
service path to call method on server. cb function to call when server replies or some error happens. data data to give to cb when it is called.
- Returns
EINA_TRUE
on success,EINA_FALSE
otherwise.
References _E_Connman_Element::_pending, e_connman_element_call_full(), and _E_Connman_Element::service_remove.
EAPI Eina_Bool e_connman_service_roaming_get | ( | const E_Connman_Element * | service, |
Eina_Bool * | roaming | ||
) |
EAPI Eina_Bool e_connman_service_security_get | ( | const E_Connman_Element * | service, |
unsigned int * | count, | ||
const char *** | security | ||
) |
EAPI Eina_Bool e_connman_service_state_get | ( | const E_Connman_Element * | service, |
const char ** | state | ||
) |
EAPI Eina_Bool e_connman_service_strength_get | ( | const E_Connman_Element * | service, |
unsigned char * | strength | ||
) |
EAPI Eina_Bool e_connman_service_type_get | ( | const E_Connman_Element * | service, |
const char ** | type | ||
) |
EAPI unsigned int e_connman_system_init | ( | E_DBus_Connection * | edbus_conn | ) |
Initialize E Connection Manager (E_Connman) system.
This will connect and watch net.connman.Manager and Element events and translate to Ecore main loop events, also provide a proxy for method invocation on server.
Interesting events are:
- E_CONNMAN_EVENT_MANAGER_IN: issued when connman is avaiable.
- E_CONNMAN_EVENT_MANAGER_OUT: issued when connman connection is lost.
- E_CONNMAN_EVENT_ELEMENT_ADD: element was added.
- E_CONNMAN_EVENT_ELEMENT_DEL: element was deleted.
- E_CONNMAN_EVENT_ELEMENT_UPDATED: element was updated (properties or state changed).
Manager IN/OUT events do not provide any event information, just tells you that system is usable or not. After manager is out, all elements will be removed, so after this event do not use the system anymore.
Element events will give you an element object. After DEL event callback returns, that element will not be valid anymore.
References _e_dbus_connman_log_dom, ADD_STRINGSHARE, e_connman_elements_init(), E_CONNMAN_EVENT_ELEMENT_ADD, E_CONNMAN_EVENT_ELEMENT_DEL, E_CONNMAN_EVENT_ELEMENT_UPDATED, E_CONNMAN_EVENT_MANAGER_IN, E_CONNMAN_EVENT_MANAGER_OUT, e_connman_iface_connection, e_connman_iface_manager, e_connman_iface_profile, e_connman_iface_service, e_connman_iface_technology, e_connman_prop_address, e_connman_prop_auto_connect, e_connman_prop_domains, e_connman_prop_domains_configuration, e_connman_prop_duplex, e_connman_prop_error, e_connman_prop_ethernet, e_connman_prop_excludes, e_connman_prop_favorite, e_connman_prop_gateway, e_connman_prop_immutable, e_connman_prop_interface, e_connman_prop_ipv4, e_connman_prop_ipv4_configuration, e_connman_prop_login_required, e_connman_prop_method, e_connman_prop_mtu, e_connman_prop_name, e_connman_prop_nameservers, e_connman_prop_nameservers_configuration, e_connman_prop_netmask, e_connman_prop_offline_mode, e_connman_prop_passphrase, e_connman_prop_passphrase_required, e_connman_prop_profile_active, e_connman_prop_profiles, e_connman_prop_proxy, e_connman_prop_proxy_configuration, e_connman_prop_roaming, e_connman_prop_security, e_connman_prop_servers, e_connman_prop_services, e_connman_prop_speed, e_connman_prop_state, e_connman_prop_strength, e_connman_prop_technologies, e_connman_prop_technologies_available, e_connman_prop_technologies_connected, e_connman_prop_technologies_enabled, e_connman_prop_technology_default, e_connman_prop_type, e_connman_prop_url, E_DBUS_FDO_BUS, E_DBUS_FDO_INTERFACE, E_DBUS_FDO_PATH, e_dbus_get_name_owner(), e_dbus_signal_handler_add(), and EINA_LOG_DEFAULT_COLOR.
EAPI unsigned int e_connman_system_shutdown | ( | void | ) |
Shutdown connman system.
When count drops to 0 resources will be released and no calls should be made anymore.
References _e_dbus_connman_log_dom, e_connman_elements_shutdown(), e_connman_iface_connection, e_connman_iface_manager, e_connman_iface_profile, e_connman_iface_service, e_connman_iface_technology, e_connman_prop_address, e_connman_prop_auto_connect, e_connman_prop_domains, e_connman_prop_domains_configuration, e_connman_prop_duplex, e_connman_prop_error, e_connman_prop_ethernet, e_connman_prop_excludes, e_connman_prop_favorite, e_connman_prop_gateway, e_connman_prop_immutable, e_connman_prop_interface, e_connman_prop_ipv4, e_connman_prop_ipv4_configuration, e_connman_prop_login_required, e_connman_prop_method, e_connman_prop_mtu, e_connman_prop_name, e_connman_prop_nameservers, e_connman_prop_nameservers_configuration, e_connman_prop_netmask, e_connman_prop_offline_mode, e_connman_prop_passphrase, e_connman_prop_passphrase_required, e_connman_prop_profile_active, e_connman_prop_profiles, e_connman_prop_proxy, e_connman_prop_proxy_configuration, e_connman_prop_roaming, e_connman_prop_security, e_connman_prop_servers, e_connman_prop_services, e_connman_prop_speed, e_connman_prop_state, e_connman_prop_strength, e_connman_prop_technologies, e_connman_prop_technologies_available, e_connman_prop_technologies_connected, e_connman_prop_technologies_enabled, e_connman_prop_technology_default, e_connman_prop_type, e_connman_prop_url, e_dbus_signal_handler_del(), and ERR.
EAPI E_Connman_Element* e_connman_technology_get | ( | const char * | path | ) |
References e_connman_element_get(), e_connman_element_is_technology(), and WRN.
EAPI Eina_Bool e_connman_technology_name_get | ( | const E_Connman_Element * | technology, |
const char ** | state | ||
) |
EAPI Eina_Bool e_connman_technology_state_get | ( | const E_Connman_Element * | technology, |
const char ** | state | ||
) |
EAPI Eina_Bool e_connman_technology_type_get | ( | const E_Connman_Element * | technology, |
const char ** | state | ||
) |
Variable Documentation
int E_CONNMAN_EVENT_ELEMENT_ADD |
Referenced by e_connman_element_register(), and e_connman_system_init().
int E_CONNMAN_EVENT_ELEMENT_DEL |
Referenced by e_connman_system_init().
int E_CONNMAN_EVENT_ELEMENT_UPDATED |
Referenced by e_connman_system_init().
int E_CONNMAN_EVENT_MANAGER_IN |
Referenced by e_connman_system_init().
int E_CONNMAN_EVENT_MANAGER_OUT |
Referenced by e_connman_system_init().
EAPI Eina_Bool EINA_WARN_UNUSED_RESULT |