EAPI Eina_Bool eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_data);
/**
- * @brief Helper function to access the sensor handle
- * @return The sensor handle to operate on
- *
- * @since 1.8
- */
-EAPI Eeze_Sensor *eeze_sensor_handle_get(void);
-
-/**
* @brief Fetch the sensor object by type from the sensor object list
* @param type Sensor type to fetch from the list of sensor objects.
* @return The sensor object matching the given type
NULL
};
-EAPI Eeze_Sensor *
-eeze_sensor_handle_get(void)
-{
- return g_handle;
-}
-
Eeze_Sensor_Module *
_highest_priority_module_get(void)
{
eeze_sensor_new(Eeze_Sensor_Type type)
{
Eeze_Sensor_Obj *sens;
- Eeze_Sensor *handle;
Eeze_Sensor_Module *module = NULL;
- handle = eeze_sensor_handle_get();
- if (!handle) return NULL;
-
sens = calloc(1, sizeof(Eeze_Sensor_Obj));
if (!sens) return NULL;
EAPI Eina_Bool
eeze_sensor_read(Eeze_Sensor_Obj *sens)
{
- Eeze_Sensor *handle = NULL;
Eeze_Sensor_Module *module = NULL;
if (!sens) return EINA_FALSE;
- handle = eeze_sensor_handle_get();
- if (!handle) return EINA_FALSE;
-
module = _highest_priority_module_get();
if (!module) return EINA_FALSE;
eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_data)
{
Eeze_Sensor_Module *module = NULL;
- Eeze_Sensor *handle = NULL;
-
- handle = eeze_sensor_handle_get();
- if (!handle) return EINA_FALSE;
module = _highest_priority_module_get();
if (!module) return EINA_FALSE;