summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-22 17:16:09 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-11-30 14:58:29 -0800
commitd652231fcd5c2ba6f7aae3d79a0e35f75c449afc (patch)
tree18a88395ffecb54e0c0063dd8ed66373f9439a4f /src/lib/ecore_con
parent2becd0feb38351d12e6df5884c143e80837dc916 (diff)
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
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/efl_net_control_access_point-none.c2
-rw-r--r--src/lib/ecore_con/efl_net_control_technology-none.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_con/efl_net_control_access_point-none.c b/src/lib/ecore_con/efl_net_control_access_point-none.c
index a32784d..e1f904d 100644
--- a/src/lib/ecore_con/efl_net_control_access_point-none.c
+++ b/src/lib/ecore_con/efl_net_control_access_point-none.c
@@ -192,7 +192,7 @@ _efl_net_control_access_point_configuration_proxy_get(const Eo *obj EINA_UNUSED,
192EOLIAN static Eina_Future * 192EOLIAN static Eina_Future *
193_efl_net_control_access_point_connect(Eo *obj EINA_UNUSED, Efl_Net_Control_Access_Point_Data *pd EINA_UNUSED) 193_efl_net_control_access_point_connect(Eo *obj EINA_UNUSED, Efl_Net_Control_Access_Point_Data *pd EINA_UNUSED)
194{ 194{
195 return eina_future_rejected(efl_loop_future_scheduler_get(obj), 195 return efl_loop_future_rejected(obj,
196 EINA_ERROR_NOT_IMPLEMENTED); 196 EINA_ERROR_NOT_IMPLEMENTED);
197} 197}
198 198
diff --git a/src/lib/ecore_con/efl_net_control_technology-none.c b/src/lib/ecore_con/efl_net_control_technology-none.c
index 3ef3d4b..dedf07f 100644
--- a/src/lib/ecore_con/efl_net_control_technology-none.c
+++ b/src/lib/ecore_con/efl_net_control_technology-none.c
@@ -59,7 +59,7 @@ _efl_net_control_technology_type_get(const Eo *obj EINA_UNUSED, Efl_Net_Control_
59EOLIAN static Eina_Future * 59EOLIAN static Eina_Future *
60_efl_net_control_technology_scan(Eo *obj, Efl_Net_Control_Technology_Data *pd EINA_UNUSED) 60_efl_net_control_technology_scan(Eo *obj, Efl_Net_Control_Technology_Data *pd EINA_UNUSED)
61{ 61{
62 return eina_future_rejected(efl_loop_future_scheduler_get(obj), 62 return efl_loop_future_rejected(obj,
63 EINA_ERROR_NOT_IMPLEMENTED); 63 EINA_ERROR_NOT_IMPLEMENTED);
64} 64}
65 65