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:
Cedric BAIL 2019-01-04 16:00:21 -08:00
parent bd2ae0ae85
commit 4e4176c84c
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.]]