e_ofono_modem.c File Reference
#include "e_ofono_private.h"

Functions | |
Eina_Bool | e_ofono_modem_name_get (const E_Ofono_Element *element, const char **name) |
Eina_Bool | e_ofono_modem_powered_get (const E_Ofono_Element *element, Eina_Bool *powered) |
Eina_Bool | e_ofono_modem_powered_set (E_Ofono_Element *element, Eina_Bool powered, E_DBus_Method_Return_Cb cb, const void *data) |
Function Documentation
◆ e_ofono_modem_name_get()
Eina_Bool e_ofono_modem_name_get | ( | const E_Ofono_Element * | element, |
const char ** | name | ||
) |
Get property "Name" value.
If this property isn't found then 0 is returned. If zero is returned, then this call failed and parameter-returned values shall be considered invalid.
- Parameters
-
address 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_ofono_element_property_get_stringshared(), and e_ofono_prop_name.
◆ e_ofono_modem_powered_get()
Eina_Bool e_ofono_modem_powered_get | ( | const E_Ofono_Element * | element, |
Eina_Bool * | powered | ||
) |
Get property "Powered" value.
- Parameters
-
powered where to store the property value, must be a pointer to Eina_Bool (Eina_Bool *), 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_ofono_element_property_get_stringshared(), and e_ofono_prop_powered.