forked from enlightenment/efl
eeze/sensor: Finally get right of eeze_sensor_handle_get
No longer needed as it only contains the modules information that will be used in the eeze_sensor core. All other important bits have found new homes in other data structures. SVN revision: 76969
This commit is contained in:
parent
357cbb570c
commit
c35df67148
|
@ -223,14 +223,6 @@ EAPI Eina_Bool eeze_sensor_read(Eeze_Sensor_Obj *sens);
|
|||
*/
|
||||
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.
|
||||
|
|
|
@ -18,12 +18,6 @@ static const char *_module_priority[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
EAPI Eeze_Sensor *
|
||||
eeze_sensor_handle_get(void)
|
||||
{
|
||||
return g_handle;
|
||||
}
|
||||
|
||||
Eeze_Sensor_Module *
|
||||
_highest_priority_module_get(void)
|
||||
{
|
||||
|
@ -124,12 +118,8 @@ EAPI Eeze_Sensor_Obj *
|
|||
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;
|
||||
|
||||
|
@ -207,14 +197,10 @@ eeze_sensor_timestamp_get(Eeze_Sensor_Obj *sens, unsigned long long *timestamp)
|
|||
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;
|
||||
|
||||
|
@ -228,10 +214,6 @@ EAPI Eina_Bool
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue