lib/connman0_7x/e_connman_manager.c File Reference
Include dependency graph for e_connman_manager.c:

Functions

Eina_Bool e_connman_manager_agent_register (const char *object_path, E_DBus_Method_Return_Cb cb, const void *data)
Eina_Bool e_connman_manager_agent_unregister (const char *object_path, E_DBus_Method_Return_Cb cb, const void *data)
E_Connman_Elemente_connman_manager_get (void)
Eina_Bool e_connman_manager_offline_mode_get (Eina_Bool *offline)
Eina_Bool e_connman_manager_offline_mode_set (Eina_Bool offline, E_DBus_Method_Return_Cb cb, const void *data)
Eina_Bool e_connman_manager_profile_active_get (E_Connman_Element **profile)
Eina_Bool e_connman_manager_profile_active_set (const E_Connman_Element *profile, E_DBus_Method_Return_Cb cb, const void *data)
Eina_Bool e_connman_manager_profile_remove (const E_Connman_Element *profile, E_DBus_Method_Return_Cb cb, const void *data)
Eina_Bool e_connman_manager_profiles_get (unsigned int *count, E_Connman_Element ***p_elements)
Eina_Bool e_connman_manager_request_scan (const char *type, E_DBus_Method_Return_Cb cb, const void *data)
Eina_Bool e_connman_manager_services_get (unsigned int *count, E_Connman_Element ***p_elements)
Eina_Bool e_connman_manager_state_get (const char **state)
Eina_Bool e_connman_manager_technologies_available_get (unsigned int *count, const char ***p_strings)
Eina_Bool e_connman_manager_technologies_connected_get (unsigned int *count, const char ***p_strings)
Eina_Bool e_connman_manager_technologies_enabled_get (unsigned int *count, const char ***p_strings)
Eina_Bool e_connman_manager_technologies_get (unsigned int *count, E_Connman_Element ***p_elements)
Eina_Bool e_connman_manager_technology_default_get (const char **type)
Eina_Bool e_connman_manager_technology_disable (const char *type, E_DBus_Method_Return_Cb cb, const void *data)
Eina_Bool e_connman_manager_technology_enable (const char *type, E_DBus_Method_Return_Cb cb, const void *data)

Function Documentation

Eina_Bool e_connman_manager_profiles_get ( unsigned int *  count,
E_Connman_Element ***  p_elements 
)

Get array of profile elements.

Parameters:
countreturn the number of elements in array.
p_elementsarray with all elements, these are not referenced and in no particular order, just set if return is EINA_TRUE. The array itself is allocated using malloc() and should be freed after usage is done.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.

References e_connman_element_objects_array_get_stringshared(), e_connman_manager_get(), and e_connman_prop_profiles.

Eina_Bool e_connman_manager_services_get ( unsigned int *  count,
E_Connman_Element ***  p_elements 
)

Get array of services elements.

List of service object paths. The list is sorted internally to have the service with the default route always first and then the favorite services followed by scan results.

This list represents the available services for the current selected profile. If the profile gets changed then this list will be updated.

The same list is available via the profile object itself. It is just provided here for convenience of applications only dealing with the current active profile.

Parameters:
countreturn the number of elements in array.
p_elementsarray with all elements, these are not referenced and in no particular order, just set if return is EINA_TRUE. The array itself is allocated using malloc() and should be freed after usage is done.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.

References e_connman_element_objects_array_get_stringshared(), e_connman_manager_get(), and e_connman_prop_services.

Eina_Bool e_connman_manager_technologies_available_get ( unsigned int *  count,
const char ***  p_strings 
)

Get array of strings representing the available technologies.

Parameters:
countreturn the number of elements in array.
p_stringsarray with pointers to internal strings. These strings are not copied in any way, and they are granted to be eina_stringshare instances, so one can use eina_stringshare_ref() if he wants to save memory and cpu to get an extra reference. The array itself is allocated using malloc() and should be freed after usage is done. This pointer is just set if return is EINA_TRUE.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.

References e_connman_element_strings_array_get_stringshared(), e_connman_manager_get(), and e_connman_prop_technologies_available.

Eina_Bool e_connman_manager_technologies_connected_get ( unsigned int *  count,
const char ***  p_strings 
)

Get array of strings representing the connected technologies.

Parameters:
countreturn the number of elements in array.
p_stringsarray with pointers to internal strings. These strings are not copied in any way, and they are granted to be eina_stringshare instances, so one can use eina_stringshare_ref() if he wants to save memory and cpu to get an extra reference. The array itself is allocated using malloc() and should be freed after usage is done. This pointer is just set if return is EINA_TRUE.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.

References e_connman_element_strings_array_get_stringshared(), e_connman_manager_get(), and e_connman_prop_technologies_connected.

Eina_Bool e_connman_manager_technologies_enabled_get ( unsigned int *  count,
const char ***  p_strings 
)

Get array of strings representing the enabled technologies.

Parameters:
countreturn the number of elements in array.
p_stringsarray with pointers to internal strings. These strings are not copied in any way, and they are granted to be eina_stringshare instances, so one can use eina_stringshare_ref() if he wants to save memory and cpu to get an extra reference. The array itself is allocated using malloc() and should be freed after usage is done. This pointer is just set if return is EINA_TRUE.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.

References e_connman_element_strings_array_get_stringshared(), e_connman_manager_get(), and e_connman_prop_technologies_enabled.

Eina_Bool e_connman_manager_technologies_get ( unsigned int *  count,
E_Connman_Element ***  p_elements 
)

Get array of technology elements.

Parameters:
countreturn the number of elements in array.
p_elementsarray with all elements, these are not referenced and in no particular order, just set if return is EINA_TRUE. The array itself is allocated using malloc() and should be freed after usage is done.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.

References e_connman_element_objects_array_get_stringshared(), e_connman_manager_get(), and e_connman_prop_technologies.