forked from enlightenment/efl
ecore_con: simplify code by using helper that create future directly.
The new helper help replace call to eina_future_resolved and eina_future_rejected with a scheduler lookup to just one function call. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7342
This commit is contained in:
parent
7f733378b9
commit
108069fa62
|
@ -192,7 +192,7 @@ _efl_net_control_access_point_configuration_proxy_get(const Eo *obj EINA_UNUSED,
|
|||
EOLIAN static Eina_Future *
|
||||
_efl_net_control_access_point_connect(Eo *obj EINA_UNUSED, Efl_Net_Control_Access_Point_Data *pd EINA_UNUSED)
|
||||
{
|
||||
return eina_future_rejected(efl_loop_future_scheduler_get(obj),
|
||||
return efl_loop_future_rejected(obj,
|
||||
EINA_ERROR_NOT_IMPLEMENTED);
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ _efl_net_control_technology_type_get(const Eo *obj EINA_UNUSED, Efl_Net_Control_
|
|||
EOLIAN static Eina_Future *
|
||||
_efl_net_control_technology_scan(Eo *obj, Efl_Net_Control_Technology_Data *pd EINA_UNUSED)
|
||||
{
|
||||
return eina_future_rejected(efl_loop_future_scheduler_get(obj),
|
||||
return efl_loop_future_rejected(obj,
|
||||
EINA_ERROR_NOT_IMPLEMENTED);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue