ecore: make Efl.Loop_Consumer.promise_new an @const function.
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D7544
This commit is contained in:
parent
bd2ae0ae85
commit
4e4176c84c
|
@ -92,7 +92,7 @@ _cancel_free_cb_set(Eina_Promise *p, Eina_Free_Cb free_cb)
|
|||
}
|
||||
|
||||
static Eina_Promise *
|
||||
_efl_loop_consumer_promise_new(Eo *obj, Efl_Loop_Consumer_Data *pd EINA_UNUSED,
|
||||
_efl_loop_consumer_promise_new(const Eo *obj, Efl_Loop_Consumer_Data *pd EINA_UNUSED,
|
||||
void *cancel_data, EflLoopConsumerPromiseCancel cancel, Eina_Free_Cb cancel_free_cb)
|
||||
{
|
||||
Efl_Loop_Consumer_Promise *lcp;
|
||||
|
|
|
@ -53,7 +53,7 @@ abstract Efl.Loop_Consumer (Efl.Object)
|
|||
}
|
||||
return: future<Eina.Error>; [[The future or $NULL on error.]]
|
||||
}
|
||||
promise_new {
|
||||
promise_new @const {
|
||||
[[Create a new promise with the scheduler coming from the loop provided by this object.
|
||||
|
||||
Note: You should not use eina_promise_data_set as this function rely on controlling the promise data.]]
|
||||
|
|
Loading…
Reference in New Issue