diff options
author | Daniel Kolesa <d.kolesa@samsung.com> | 2019-05-16 15:57:39 +0200 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2019-05-16 15:57:39 +0200 |
commit | e5c9f5e76fb82a022b13bf9627cc9c00e006e685 (patch) | |
tree | 803da015e077d565a980b044153b4ea1f6a5c188 /src/scripts | |
parent | b3a870c7bb29461c6478fae9f51c211229b62d9d (diff) |
eolian: rename eolian_event_c_name_get
This is for consistency with the new eolian_class_c_macro_get
as well as for better clarity, as c_name_get is already provided
by Object and refers to something else.
Diffstat (limited to 'src/scripts')
-rw-r--r-- | src/scripts/pyolian/eolian.py | 4 | ||||
-rw-r--r-- | src/scripts/pyolian/eolian_lib.py | 6 | ||||
-rwxr-xr-x | src/scripts/pyolian/test_eolian.py | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py index 787c9ff694..4dce2e6d4b 100644 --- a/src/scripts/pyolian/eolian.py +++ b/src/scripts/pyolian/eolian.py | |||
@@ -794,8 +794,8 @@ class Event(Object): | |||
794 | return "<eolian.Event '{0.name}', c_name='{0.c_name}'>".format(self) | 794 | return "<eolian.Event '{0.name}', c_name='{0.c_name}'>".format(self) |
795 | 795 | ||
796 | @cached_property | 796 | @cached_property |
797 | def c_name(self): | 797 | def c_macro(self): |
798 | s = lib.eolian_event_c_name_get(self) | 798 | s = lib.eolian_event_c_macro_get(self) |
799 | ret = _str_to_py(s) | 799 | ret = _str_to_py(s) |
800 | lib.eina_stringshare_del(c_void_p(s)) | 800 | lib.eina_stringshare_del(c_void_p(s)) |
801 | return ret | 801 | return ret |
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py index 15863cf3b4..622486ebdf 100644 --- a/src/scripts/pyolian/eolian_lib.py +++ b/src/scripts/pyolian/eolian_lib.py | |||
@@ -461,9 +461,9 @@ lib.eolian_constructor_is_optional.restype = c_bool | |||
461 | 461 | ||
462 | ### Eolian_Event ############################################################ | 462 | ### Eolian_Event ############################################################ |
463 | 463 | ||
464 | # EAPI Eina_Stringshare *eolian_event_c_name_get(const Eolian_Event *event); | 464 | # EAPI Eina_Stringshare *eolian_event_c_macro_get(const Eolian_Event *event); |
465 | lib.eolian_event_c_name_get.argtypes = (c_void_p,) | 465 | lib.eolian_event_c_macro_get.argtypes = (c_void_p,) |
466 | lib.eolian_event_c_name_get.restype = c_void_p # Stringshare TO BE FREED | 466 | lib.eolian_event_c_macro_get.restype = c_void_p # Stringshare TO BE FREED |
467 | 467 | ||
468 | # EAPI const Eolian_Type *eolian_event_type_get(const Eolian_Event *event); | 468 | # EAPI const Eolian_Type *eolian_event_type_get(const Eolian_Event *event); |
469 | lib.eolian_event_type_get.argtypes = (c_void_p,) | 469 | lib.eolian_event_type_get.argtypes = (c_void_p,) |
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py index 0a28cb1010..3695330cc6 100755 --- a/src/scripts/pyolian/test_eolian.py +++ b/src/scripts/pyolian/test_eolian.py | |||
@@ -413,7 +413,7 @@ class TestEolianEvent(unittest.TestCase): | |||
413 | ev = cls.event_by_name_get('tick') | 413 | ev = cls.event_by_name_get('tick') |
414 | self.assertIsInstance(ev, eolian.Event) | 414 | self.assertIsInstance(ev, eolian.Event) |
415 | self.assertEqual(ev.name, 'tick') | 415 | self.assertEqual(ev.name, 'tick') |
416 | self.assertEqual(ev.c_name, 'EFL_LOOP_TIMER_EVENT_TIMER_TICK') | 416 | self.assertEqual(ev.c_macro, 'EFL_LOOP_TIMER_EVENT_TIMER_TICK') |
417 | self.assertIsNone(ev.type) # TODO is this correct | 417 | self.assertIsNone(ev.type) # TODO is this correct |
418 | self.assertIsInstance(ev.documentation, eolian.Documentation) | 418 | self.assertIsInstance(ev.documentation, eolian.Documentation) |
419 | self.assertEqual(ev.scope, eolian.Eolian_Object_Scope.PUBLIC) | 419 | self.assertEqual(ev.scope, eolian.Eolian_Object_Scope.PUBLIC) |