summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
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/eo/eo_base_class.c
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/eo/eo_base_class.c')
-rw-r--r--src/lib/eo/eo_base_class.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index f340197..b2ee9a4 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -438,7 +438,7 @@ _efl_object_name_set(Eo *obj EINA_UNUSED, Efl_Object_Data *pd, const char *name)
438} 438}
439 439
440EOLIAN static const char * 440EOLIAN static const char *
441_efl_object_name_get(Eo *obj EINA_UNUSED, Efl_Object_Data *pd) 441_efl_object_name_get(const Eo *obj EINA_UNUSED, Efl_Object_Data *pd)
442{ 442{
443 if (!pd->ext) return NULL; 443 if (!pd->ext) return NULL;
444 return pd->ext->name; 444 return pd->ext->name;
@@ -619,7 +619,7 @@ _efl_object_comment_set(Eo *obj EINA_UNUSED, Efl_Object_Data *pd, const char *co
619} 619}
620 620
621EOLIAN static const char * 621EOLIAN static const char *
622_efl_object_comment_get(Eo *obj EINA_UNUSED, Efl_Object_Data *pd) 622_efl_object_comment_get(const Eo *obj EINA_UNUSED, Efl_Object_Data *pd)
623{ 623{
624 if (!pd->ext) return NULL; 624 if (!pd->ext) return NULL;
625 return pd->ext->comment; 625 return pd->ext->comment;
@@ -733,13 +733,13 @@ err_impossible:
733} 733}
734 734
735EOLIAN static Eo * 735EOLIAN static Eo *
736_efl_object_parent_get(Eo *obj EINA_UNUSED, Efl_Object_Data *pd) 736_efl_object_parent_get(const Eo *obj EINA_UNUSED, Efl_Object_Data *pd)
737{ 737{
738 return pd->parent; 738 return pd->parent;
739} 739}
740 740
741EOLIAN static Eina_Bool 741EOLIAN static Eina_Bool
742_efl_object_finalized_get(Eo *obj_id, Efl_Object_Data *pd EINA_UNUSED) 742_efl_object_finalized_get(const Eo *obj_id, Efl_Object_Data *pd EINA_UNUSED)
743{ 743{
744 Eina_Bool finalized; 744 Eina_Bool finalized;
745 EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, EINA_FALSE); 745 EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, EINA_FALSE);
@@ -749,7 +749,7 @@ _efl_object_finalized_get(Eo *obj_id, Efl_Object_Data *pd EINA_UNUSED)
749} 749}
750 750
751EOLIAN static Eina_Bool 751EOLIAN static Eina_Bool
752_efl_object_invalidated_get(Eo *obj_id EINA_UNUSED, Efl_Object_Data *pd) 752_efl_object_invalidated_get(const Eo *obj_id EINA_UNUSED, Efl_Object_Data *pd)
753{ 753{
754 return pd->invalidate; 754 return pd->invalidate;
755} 755}
@@ -1755,7 +1755,7 @@ _efl_object_event_thaw(Eo *obj, Efl_Object_Data *pd)
1755} 1755}
1756 1756
1757EOLIAN static int 1757EOLIAN static int
1758_efl_object_event_freeze_count_get(Eo *obj EINA_UNUSED, Efl_Object_Data *pd) 1758_efl_object_event_freeze_count_get(const Eo *obj EINA_UNUSED, Efl_Object_Data *pd)
1759{ 1759{
1760 return pd->event_freeze_count; 1760 return pd->event_freeze_count;
1761} 1761}
@@ -1780,7 +1780,7 @@ _efl_object_event_global_thaw(Eo *klass EINA_UNUSED, void *pd EINA_UNUSED)
1780} 1780}
1781 1781
1782EOLIAN static int 1782EOLIAN static int
1783_efl_object_event_global_freeze_count_get(Eo *klass EINA_UNUSED, void *pd EINA_UNUSED) 1783_efl_object_event_global_freeze_count_get(const Eo *klass EINA_UNUSED, void *pd EINA_UNUSED)
1784{ 1784{
1785 return event_freeze_count; 1785 return event_freeze_count;
1786} 1786}
@@ -2177,7 +2177,7 @@ _efl_object_allow_parent_unref_set(Eo *obj_id EINA_UNUSED, Efl_Object_Data *pd,
2177} 2177}
2178 2178
2179EOLIAN static Eina_Bool 2179EOLIAN static Eina_Bool
2180_efl_object_allow_parent_unref_get(Eo *obj_id EINA_UNUSED, Efl_Object_Data *pd) 2180_efl_object_allow_parent_unref_get(const Eo *obj_id EINA_UNUSED, Efl_Object_Data *pd)
2181{ 2181{
2182 return pd->allow_parent_unref; 2182 return pd->allow_parent_unref;
2183} 2183}