efl_loop_user_loop_get is idiotic. efl_loop_get should be good enough.
{
if (pd->job) return;
- efl_future_use(&pd->job, efl_loop_job(efl_loop_user_loop_get(o), o));
+ efl_future_use(&pd->job, efl_loop_job(efl_loop_get(o), o));
efl_future_then(pd->job, _efl_io_copier_job, NULL, NULL, o);
efl_future_link(o, pd->job);
}
if (pd->read_chunk_size == 0)
efl_io_copier_read_chunk_size_set(o, DEF_READ_CHUNK_SIZE);
- if (!efl_loop_user_loop_get(o))
+ if (!efl_loop_get(o))
{
ERR("Set a loop provider as parent of this copier!");
return NULL;
[[An Efl.Loop_User is a class that require one of the parent to provide
an Efl.Loop interface when doing provider_find. It will enforce this by
only allowing parent that provide such interface or NULL.]]
+ eo_prefix: efl_loop;
methods {
loop_get {
return: Efl.Loop;
implements {
Efl.Object.parent.set;
}
-}
\ No newline at end of file
+}
// TODO: move this to be per-loop once multiple mainloops are supported
// this would need to attach something to the loop
cm = &_cm_global;
- if (!cm->loop) cm->loop = efl_loop_user_loop_get(o);
+ if (!cm->loop) cm->loop = efl_loop_get(o);
if (!_efl_net_dialer_http_curlm_add(cm, o, pd->easy))
{
ERR("dialer=%p could not add curl easy handle to multi manager", o);
{
if (!pd->pending_close)
{
- efl_future_use(&pd->pending_close, efl_loop_job(efl_loop_user_loop_get(o), o));
+ efl_future_use(&pd->pending_close, efl_loop_job(efl_loop_get(o), o));
efl_future_then(pd->pending_close, _efl_net_dialer_http_pending_close, NULL, NULL, o);
DBG("dialer=%p closed from CURL callback, schedule close job=%p", o, pd->pending_close);
}
efl_future_cancel(pd->connect.timeout);
if (pd->timeout_dial > 0.0)
{
- efl_future_use(&pd->connect.timeout, efl_loop_timeout(efl_loop_user_loop_get(o), pd->timeout_dial, o));
+ efl_future_use(&pd->connect.timeout, efl_loop_timeout(efl_loop_get(o), pd->timeout_dial, o));
efl_future_then(pd->connect.timeout, _efl_net_dialer_tcp_connect_timeout, NULL, NULL, o);
efl_future_link(o, pd->connect.timeout);
}
if ((pd->timeout_dial > 0.0) && (pd->connect.thread))
{
- efl_future_use(&pd->connect.timeout, efl_loop_timeout(efl_loop_user_loop_get(o), pd->timeout_dial, o));
+ efl_future_use(&pd->connect.timeout, efl_loop_timeout(efl_loop_get(o), pd->timeout_dial, o));
efl_future_then(pd->connect.timeout, _efl_net_dialer_tcp_connect_timeout, NULL, NULL, o);
}
}
if (pd->job) return;
- loop = efl_loop_user_loop_get(o);
+ loop = efl_loop_get(o);
if (!loop) return;
efl_future_use(&pd->job, efl_loop_job(loop, o));
efl_future_then(pd->job, _efl_net_dialer_websocket_job, NULL, NULL, o);
if (pd->close_timeout)
efl_future_cancel(pd->close_timeout);
- efl_future_use(&pd->close_timeout, efl_loop_timeout(efl_loop_user_loop_get(o), 2.0, o));
+ efl_future_use(&pd->close_timeout, efl_loop_timeout(efl_loop_get(o), 2.0, o));
efl_future_then(pd->close_timeout, _efl_net_dialer_websocket_close_request_timeout, NULL, NULL, o);
efl_future_link(o, pd->close_timeout);
Efl_Promise *p;
Eio_File *h;
- Eo *loop = efl_loop_user_loop_get(obj);
+ Eo *loop = efl_loop_get(obj);
p = efl_add(EFL_PROMISE_CLASS, loop);
if (!p) return NULL;
Efl_Promise *p;
Eio_File *h;
- Eo *loop = efl_loop_user_loop_get(obj);
+ Eo *loop = efl_loop_get(obj);
p = efl_add(EFL_PROMISE_CLASS, loop);
if (!p) return NULL;
Efl_Promise *p;
Eio_File *h;
- Eo *loop = efl_loop_user_loop_get(obj);
+ Eo *loop = efl_loop_get(obj);
p = efl_add(EFL_PROMISE_CLASS, loop);
if (!p) return NULL;
Efl_Promise *p;
Eio_File *h;
- Eo *loop = efl_loop_user_loop_get(obj);
+ Eo *loop = efl_loop_get(obj);
p = efl_add(EFL_PROMISE_CLASS, loop);
if (!p) return NULL;
Efl_Promise *p;
Eio_File *h;
- Eo *loop = efl_loop_user_loop_get(obj);
+ Eo *loop = efl_loop_get(obj);
p = efl_add(EFL_PROMISE_CLASS, loop);
if (!p) return NULL;
Efl_Promise *p;
Eio_File *h;
- Eo *loop = efl_loop_user_loop_get(obj);
+ Eo *loop = efl_loop_get(obj);
p = efl_add(EFL_PROMISE_CLASS, loop);
if (!p) return NULL;
Efl_Promise *p;
Eio_File *h;
- Eo *loop = efl_loop_user_loop_get(obj);
+ Eo *loop = efl_loop_get(obj);
p = efl_add(EFL_PROMISE_CLASS, loop);
if (!p) return NULL;
Efl_Promise *p;
Eio_File *h;
- Eo *loop = efl_loop_user_loop_get(obj);
+ Eo *loop = efl_loop_get(obj);
p = efl_add(EFL_PROMISE_CLASS, loop);
if (!p) return NULL;
Efl_Promise *p;
Eio_File *h;
- Eo *loop = efl_loop_user_loop_get(obj);
+ Eo *loop = efl_loop_get(obj);
p = efl_add(EFL_PROMISE_CLASS, loop);
if (!p) return NULL;