summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-04-17 20:09:44 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-04-17 20:31:55 +0200
commitfcae7cab276c2d3b19bb913ad908b67b7dd33089 (patch)
tree7008ebc815184309ccc284c9e7e1b05abbb55028 /src/lib/eio
parente50b43d02fdb0b608f2c99014357c95a1a746c43 (diff)
eolian gen: enable constness generation on property getter impls
This changes a lot of things all across the EFL. Previously, methods tagged @const had both their external prototype and internal impl generated with const on object, while property getters only had const on the external API. This is now changed and it all has const everywhere. Ref T6859.
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/efl_io_manager.c5
-rw-r--r--src/lib/eio/eio_model.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/eio/efl_io_manager.c b/src/lib/eio/efl_io_manager.c
index f4c56dc0ac..113c712275 100644
--- a/src/lib/eio/efl_io_manager.c
+++ b/src/lib/eio/efl_io_manager.c
@@ -489,7 +489,7 @@ _efl_io_manager_xattr_set(Eo *obj,
489} 489}
490 490
491static Eina_Future * 491static Eina_Future *
492_efl_io_manager_xattr_get(Eo *obj, 492_efl_io_manager_xattr_get(const Eo *obj,
493 Efl_Io_Manager_Data *pd EINA_UNUSED, 493 Efl_Io_Manager_Data *pd EINA_UNUSED,
494 const char *path, 494 const char *path,
495 const char *attribute) 495 const char *attribute)
@@ -509,7 +509,8 @@ _efl_io_manager_xattr_get(Eo *obj,
509 if (!h) goto end; 509 if (!h) goto end;
510 eina_promise_data_set(p, h); 510 eina_promise_data_set(p, h);
511 511
512 return efl_future_Eina_FutureXXX_then(obj, future); 512 /* XXX const */
513 return efl_future_Eina_FutureXXX_then((Eo *)obj, future);
513 514
514 end: 515 end:
515 return future; 516 return future;
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index c34257fa38..282c159353 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -280,7 +280,7 @@ _eio_error_unlink_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, int
280 * Interfaces impl. 280 * Interfaces impl.
281 */ 281 */
282static Eina_Array const * 282static Eina_Array const *
283_eio_model_efl_model_properties_get(Eo *obj EINA_UNUSED, Eio_Model_Data *_pd) 283_eio_model_efl_model_properties_get(const Eo *obj EINA_UNUSED, Eio_Model_Data *_pd)
284{ 284{
285 Eio_Model_Data *priv = _pd; 285 Eio_Model_Data *priv = _pd;
286 286
@@ -798,7 +798,7 @@ _eio_model_efl_object_destructor(Eo *obj , Eio_Model_Data *priv)
798} 798}
799 799
800static Eo * 800static Eo *
801_eio_model_efl_object_parent_get(Eo *obj , Eio_Model_Data *priv) 801_eio_model_efl_object_parent_get(const Eo *obj , Eio_Model_Data *priv)
802{ 802{
803 Eo *model = efl_parent_get(efl_super(obj, MY_CLASS)); 803 Eo *model = efl_parent_get(efl_super(obj, MY_CLASS));
804 804