aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pyolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-16 14:25:44 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-16 14:26:15 +0100
commitbf1e3a702fa807d9773c9fa5f0ed93634afc8c07 (patch)
treee4b9cb1295c0bf3f44b0ae385f38570005514c16 /src/scripts/pyolian
parenteo: Orphan an object that is being invalidated. (diff)
downloadefl-bf1e3a702fa807d9773c9fa5f0ed93634afc8c07.tar.gz
eolian: event/function_get_by_name -> by_name_get
Diffstat (limited to 'src/scripts/pyolian')
-rw-r--r--src/scripts/pyolian/eolian.py8
-rw-r--r--src/scripts/pyolian/eolian_lib.py12
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py14
3 files changed, 17 insertions, 17 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index 0dc9b68a02..56b79134c1 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -659,8 +659,8 @@ class Class(Object):
def events(self):
return Iterator(Event, lib.eolian_class_events_get(self._obj))
- def event_get_by_name(self, event_name):
- c_event = lib.eolian_class_event_get_by_name(self._obj,
+ def event_by_name_get(self, event_name):
+ c_event = lib.eolian_class_event_by_name_get(self._obj,
_str_to_bytes(event_name))
return Event(c_event) if c_event else None
@@ -703,9 +703,9 @@ class Class(Object):
def dtor_enable(self):
return bool(lib.eolian_class_dtor_enable_get(self._obj))
- def function_get_by_name(self, func_name,
+ def function_by_name_get(self, func_name,
ftype=Eolian_Function_Type.UNRESOLVED):
- f = lib.eolian_class_function_get_by_name(self._obj,
+ f = lib.eolian_class_function_by_name_get(self._obj,
_str_to_bytes(func_name),
ftype)
return Function(f) if f else None
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py
index 66ecccc487..99d862a8de 100644
--- a/src/scripts/pyolian/eolian_lib.py
+++ b/src/scripts/pyolian/eolian_lib.py
@@ -251,9 +251,9 @@ lib.eolian_class_inherits_get.restype = c_void_p
lib.eolian_class_functions_get.argtypes = [c_void_p, c_int]
lib.eolian_class_functions_get.restype = c_void_p
-# EAPI const Eolian_Function *eolian_class_function_get_by_name(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type);
-lib.eolian_class_function_get_by_name.argtypes = [c_void_p, c_char_p, c_int]
-lib.eolian_class_function_get_by_name.restype = c_void_p
+# EAPI const Eolian_Function *eolian_class_function_by_name_get(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type);
+lib.eolian_class_function_by_name_get.argtypes = [c_void_p, c_char_p, c_int]
+lib.eolian_class_function_by_name_get.restype = c_void_p
# EAPI Eina_Iterator *eolian_class_implements_get(const Eolian_Class *klass);
lib.eolian_class_implements_get.argtypes = [c_void_p,]
@@ -271,9 +271,9 @@ lib.eolian_class_events_get.restype = c_void_p
lib.eolian_class_parts_get.argtypes = [c_void_p,]
lib.eolian_class_parts_get.restype = c_void_p
-# EAPI const Eolian_Event *eolian_class_event_get_by_name(const Eolian_Class *klass, const char *event_name);
-lib.eolian_class_event_get_by_name.argtypes = [c_void_p, c_char_p]
-lib.eolian_class_event_get_by_name.restype = c_void_p
+# EAPI const Eolian_Event *eolian_class_event_by_name_get(const Eolian_Class *klass, const char *event_name);
+lib.eolian_class_event_by_name_get.argtypes = [c_void_p, c_char_p]
+lib.eolian_class_event_by_name_get.restype = c_void_p
# EAPI Eina_Bool eolian_class_ctor_enable_get(const Eolian_Class *klass);
lib.eolian_class_ctor_enable_get.argtypes = [c_void_p,]
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index 8740837f39..5a22ed83df 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -326,7 +326,7 @@ class TestEolianClass(unittest.TestCase):
class TestEolianFunction(unittest.TestCase):
def test_function(self):
cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
- f = cls.function_get_by_name('delay')
+ f = cls.function_by_name_get('delay')
self.assertIsInstance(f, eolian.Function)
self.assertEqual(f.name, 'delay')
self.assertEqual(f.type, eolian.Eolian_Function_Type.METHOD)
@@ -357,7 +357,7 @@ class TestEolianFunction(unittest.TestCase):
def test_function_parameter(self):
cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
- f = cls.function_get_by_name('delay')
+ f = cls.function_by_name_get('delay')
p = list(f.parameters)[0]
self.assertEqual(p.direction, eolian.Eolian_Parameter_Dir.IN)
self.assertEqual(p.name, 'add')
@@ -372,7 +372,7 @@ class TestEolianFunction(unittest.TestCase):
class TestEolianImplement(unittest.TestCase):
def test_implement(self):
cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
- f = cls.function_get_by_name('delay')
+ f = cls.function_by_name_get('delay')
im = f.implement
self.assertIsInstance(im, eolian.Implement)
self.assertEqual(im.full_name, 'Efl.Loop.Timer.delay')
@@ -392,7 +392,7 @@ class TestEolianEvent(unittest.TestCase):
def test_event(self):
cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
self.assertEqual([e.name for e in cls.events], ['tick'])
- ev = cls.event_get_by_name('tick')
+ ev = cls.event_by_name_get('tick')
self.assertIsInstance(ev, eolian.Event)
self.assertEqual(ev.name, 'tick')
self.assertEqual(ev.c_name, 'EFL_LOOP_TIMER_EVENT_TICK')
@@ -535,7 +535,7 @@ class TestEolianTypedecl(unittest.TestCase):
class TestEolianType(unittest.TestCase):
def test_type_regular_builtin(self):
cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
- func = cls.function_get_by_name('delay')
+ func = cls.function_by_name_get('delay')
param = list(func.parameters)[0]
t = param.type # type: double
self.assertIsInstance(t, eolian.Type)
@@ -560,7 +560,7 @@ class TestEolianType(unittest.TestCase):
def test_type_regular(self):
cls = eolian_db.class_by_name_get('Efl.Gfx')
- func = cls.function_get_by_name('geometry')
+ func = cls.function_by_name_get('geometry')
param = list(func.setter_values)[0]
t = param.type # type: Eina.Rect
self.assertIsInstance(t, eolian.Type)
@@ -584,7 +584,7 @@ class TestEolianType(unittest.TestCase):
def test_type_class(self):
cls = eolian_db.class_by_name_get('Efl.Content')
- func = cls.function_get_by_name('content')
+ func = cls.function_by_name_get('content')
param = list(func.setter_values)[0]
t = param.type # type: Efl.Gfx (class interface)
self.assertIsInstance(t, eolian.Type)