e_connman_technology.c File Reference
+ Include dependency graph for e_connman_technology.c:

Functions

E_Connman_Elemente_connman_technology_get (const char *path)
 
Eina_Bool e_connman_technology_name_get (const E_Connman_Element *technology, const char **name)
 
Eina_Bool e_connman_technology_state_get (const E_Connman_Element *technology, const char **state)
 
Eina_Bool e_connman_technology_type_get (const E_Connman_Element *technology, const char **type)
 

Function Documentation

Eina_Bool e_connman_technology_name_get ( const E_Connman_Element technology,
const char **  name 
)

Get property "Name" 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.

Name of this technology.

Parameters
technologypath to get property
namewhere 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(), and e_connman_prop_name.

Eina_Bool e_connman_technology_state_get ( const E_Connman_Element technology,
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 technology state information.

Valid states are "offline", "available", "enabled", and "connected".

Parameters
technologypath to get property.
statewhere 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(), and e_connman_prop_state.

Eina_Bool e_connman_technology_type_get ( const E_Connman_Element technology,
const char **  type 
)

Get property "Type" 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 technology type (for example "ethernet" etc.)

This information should only be used to determine advanced properties or showing the correct icon to the user.

Parameters
technologypath to get property.
typewhere 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(), and e_connman_prop_type.