summaryrefslogtreecommitdiff
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
parent47ac8689f1372639f410a2e2f612c62db612d143 (diff)
eolian: event/function_get_by_name -> by_name_get
-rw-r--r--src/bin/eolian/docs.c4
-rw-r--r--src/bindings/luajit/eolian.lua6
-rw-r--r--src/lib/eolian/Eolian.h4
-rw-r--r--src/lib/eolian/database_class_api.c2
-rw-r--r--src/lib/eolian/database_constructor_api.c2
-rw-r--r--src/lib/eolian/database_event_api.c2
-rw-r--r--src/lib/eolian/database_validate.c2
-rw-r--r--src/lib/eolian/eolian_database.c4
-rw-r--r--src/scripts/elua/apps/docgen/doctree.lua4
-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
-rw-r--r--src/tests/eolian/eolian_parsing.c76
13 files changed, 70 insertions, 70 deletions
diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c
index 0a7c6cd99e..6dd42a833a 100644
--- a/src/bin/eolian/docs.c
+++ b/src/bin/eolian/docs.c
@@ -90,7 +90,7 @@ _generate_ref(const Eolian_Unit *src, const char *refn, Eina_Strbuf *wbuf,
90 if (cl) 90 if (cl)
91 { 91 {
92 char *meth = strndup(mname + 1, sfx - mname - 1); 92 char *meth = strndup(mname + 1, sfx - mname - 1);
93 fn = eolian_class_function_get_by_name(cl, meth, ftype); 93 fn = eolian_class_function_by_name_get(cl, meth, ftype);
94 if (ftype == EOLIAN_UNRESOLVED) 94 if (ftype == EOLIAN_UNRESOLVED)
95 ftype = eolian_function_type_get(fn); 95 ftype = eolian_function_type_get(fn);
96 free(meth); 96 free(meth);
@@ -98,7 +98,7 @@ _generate_ref(const Eolian_Unit *src, const char *refn, Eina_Strbuf *wbuf,
98 } 98 }
99 else 99 else
100 { 100 {
101 fn = eolian_class_function_get_by_name(cl, sfx + 1, ftype); 101 fn = eolian_class_function_by_name_get(cl, sfx + 1, ftype);
102 ftype = eolian_function_type_get(fn); 102 ftype = eolian_function_type_get(fn);
103 } 103 }
104 104
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index c1f1f420f2..d94961b3b7 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -338,7 +338,7 @@ ffi.cdef [[
338 Eolian_Function_Type eolian_function_type_get(const Eolian_Function *function_id); 338 Eolian_Function_Type eolian_function_type_get(const Eolian_Function *function_id);
339 Eolian_Object_Scope eolian_function_scope_get(const Eolian_Function *function_id, Eolian_Function_Type ftype); 339 Eolian_Object_Scope eolian_function_scope_get(const Eolian_Function *function_id, Eolian_Function_Type ftype);
340 const char *eolian_function_full_c_name_get(const Eolian_Function *function_id, Eolian_Function_Type ftype, Eina_Bool use_legacy); 340 const char *eolian_function_full_c_name_get(const Eolian_Function *function_id, Eolian_Function_Type ftype, Eina_Bool use_legacy);
341 const Eolian_Function *eolian_class_function_get_by_name(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type); 341 const Eolian_Function *eolian_class_function_by_name_get(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type);
342 const char *eolian_function_legacy_get(const Eolian_Function *function_id, Eolian_Function_Type f_type); 342 const char *eolian_function_legacy_get(const Eolian_Function *function_id, Eolian_Function_Type f_type);
343 const Eolian_Implement *eolian_function_implement_get(const Eolian_Function *function_id); 343 const Eolian_Implement *eolian_function_implement_get(const Eolian_Function *function_id);
344 Eina_Bool eolian_function_is_legacy_only(const Eolian_Function *function_id, Eolian_Function_Type ftype); 344 Eina_Bool eolian_function_is_legacy_only(const Eolian_Function *function_id, Eolian_Function_Type ftype);
@@ -1325,8 +1325,8 @@ M.Class = ffi.metatype("Eolian_Class", {
1325 eolian.eolian_class_functions_get(self, func_type)) 1325 eolian.eolian_class_functions_get(self, func_type))
1326 end, 1326 end,
1327 1327
1328 function_get_by_name = function(self, fname, ftype) 1328 function_by_name_get = function(self, fname, ftype)
1329 local v = eolian.eolian_class_function_get_by_name(self, fname, 1329 local v = eolian.eolian_class_function_by_name_get(self, fname,
1330 ftype) 1330 ftype)
1331 if v == nil then return nil end 1331 if v == nil then return nil end
1332 return v 1332 return v
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index eaf469eb25..370c334625 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -1406,7 +1406,7 @@ EAPI Eina_Stringshare *eolian_function_full_c_name_get(const Eolian_Function *fu
1406 * 1406 *
1407 * @ingroup Eolian 1407 * @ingroup Eolian
1408 */ 1408 */
1409EAPI const Eolian_Function *eolian_class_function_get_by_name(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type); 1409EAPI const Eolian_Function *eolian_class_function_by_name_get(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type);
1410 1410
1411/* 1411/*
1412 * @brief Returns a legacy name for a function. 1412 * @brief Returns a legacy name for a function.
@@ -2015,7 +2015,7 @@ EAPI const Eolian_Documentation *eolian_part_documentation_get(const Eolian_Part
2015 * 2015 *
2016 * @ingroup Eolian 2016 * @ingroup Eolian
2017 */ 2017 */
2018EAPI const Eolian_Event *eolian_class_event_get_by_name(const Eolian_Class *klass, const char *event_name); 2018EAPI const Eolian_Event *eolian_class_event_by_name_get(const Eolian_Class *klass, const char *event_name);
2019 2019
2020/* 2020/*
2021 * @brief Indicates if the class constructor has to invoke 2021 * @brief Indicates if the class constructor has to invoke
diff --git a/src/lib/eolian/database_class_api.c b/src/lib/eolian/database_class_api.c
index f21c3bcdaf..cee57a3a39 100644
--- a/src/lib/eolian/database_class_api.c
+++ b/src/lib/eolian/database_class_api.c
@@ -70,7 +70,7 @@ eolian_class_constructors_get(const Eolian_Class *cl)
70} 70}
71 71
72EAPI const Eolian_Function * 72EAPI const Eolian_Function *
73eolian_class_function_get_by_name(const Eolian_Class *cl, const char *func_name, Eolian_Function_Type f_type) 73eolian_class_function_by_name_get(const Eolian_Class *cl, const char *func_name, Eolian_Function_Type f_type)
74{ 74{
75 Eina_List *itr; 75 Eina_List *itr;
76 Eolian_Function *fid; 76 Eolian_Function *fid;
diff --git a/src/lib/eolian/database_constructor_api.c b/src/lib/eolian/database_constructor_api.c
index adb41916a9..bedf9ab7da 100644
--- a/src/lib/eolian/database_constructor_api.c
+++ b/src/lib/eolian/database_constructor_api.c
@@ -19,7 +19,7 @@ eolian_constructor_function_get(const Eolian_Constructor *ctor)
19 const Eolian_Class *klass = eolian_constructor_class_get(ctor); 19 const Eolian_Class *klass = eolian_constructor_class_get(ctor);
20 if (!klass) 20 if (!klass)
21 return NULL; 21 return NULL;
22 return eolian_class_function_get_by_name(klass, 22 return eolian_class_function_by_name_get(klass,
23 ctor->base.name + strlen(klass->base.name) + 1, EOLIAN_UNRESOLVED); 23 ctor->base.name + strlen(klass->base.name) + 1, EOLIAN_UNRESOLVED);
24} 24}
25 25
diff --git a/src/lib/eolian/database_event_api.c b/src/lib/eolian/database_event_api.c
index 8b7cf7f7d9..4b4f460616 100644
--- a/src/lib/eolian/database_event_api.c
+++ b/src/lib/eolian/database_event_api.c
@@ -62,7 +62,7 @@ eolian_event_c_name_get(const Eolian_Event *event)
62} 62}
63 63
64EAPI const Eolian_Event * 64EAPI const Eolian_Event *
65eolian_class_event_get_by_name(const Eolian_Class *klass, const char *event_name) 65eolian_class_event_by_name_get(const Eolian_Class *klass, const char *event_name)
66{ 66{
67 Eina_List *itr; 67 Eina_List *itr;
68 Eolian_Event *event = NULL; 68 Eolian_Event *event = NULL;
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 3536a0531d..3ca36da923 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -503,7 +503,7 @@ _db_fill_implement(Eolian_Class *cl, Eolian_Implement *impl)
503 503
504 impl->klass = tcl; 504 impl->klass = tcl;
505 505
506 const Eolian_Function *fid = eolian_class_function_get_by_name(tcl, fnname, EOLIAN_UNRESOLVED); 506 const Eolian_Function *fid = eolian_class_function_by_name_get(tcl, fnname, EOLIAN_UNRESOLVED);
507 if (!fid) 507 if (!fid)
508 { 508 {
509 _eo_parser_log(&impl->base, "function '%s' not known in class '%s'", fnname, clname); 509 _eo_parser_log(&impl->base, "function '%s' not known in class '%s'", fnname, clname);
diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c
index ef96b1a1ef..7300d46ccd 100644
--- a/src/lib/eolian/eolian_database.c
+++ b/src/lib/eolian/eolian_database.c
@@ -400,7 +400,7 @@ _resolve_event(const Eolian_Unit *src, char *name, const Eolian_Object **data,
400 if (!cl) 400 if (!cl)
401 return EOLIAN_OBJECT_UNKNOWN; 401 return EOLIAN_OBJECT_UNKNOWN;
402 402
403 const Eolian_Event *ev = eolian_class_event_get_by_name(cl, evname); 403 const Eolian_Event *ev = eolian_class_event_by_name_get(cl, evname);
404 if (!ev) 404 if (!ev)
405 return EOLIAN_OBJECT_UNKNOWN; 405 return EOLIAN_OBJECT_UNKNOWN;
406 406
@@ -508,7 +508,7 @@ eolian_doc_token_ref_resolve(const Eolian_Doc_Token *tok, const Eolian_Unit *uni
508 if (!cl) 508 if (!cl)
509 return EOLIAN_OBJECT_UNKNOWN; 509 return EOLIAN_OBJECT_UNKNOWN;
510 510
511 const Eolian_Function *fid = eolian_class_function_get_by_name(cl, suffix, ftype); 511 const Eolian_Function *fid = eolian_class_function_by_name_get(cl, suffix, ftype);
512 if (!fid) 512 if (!fid)
513 return EOLIAN_OBJECT_UNKNOWN; 513 return EOLIAN_OBJECT_UNKNOWN;
514 514
diff --git a/src/scripts/elua/apps/docgen/doctree.lua b/src/scripts/elua/apps/docgen/doctree.lua
index bad0e68637..f5657d5bfc 100644
--- a/src/scripts/elua/apps/docgen/doctree.lua
+++ b/src/scripts/elua/apps/docgen/doctree.lua
@@ -253,12 +253,12 @@ M.Class = Node:clone {
253 return ret 253 return ret
254 end, 254 end,
255 255
256 function_get_by_name = function(self, fn, ft) 256 function_by_name_get = function(self, fn, ft)
257 local fun = self._cache_func 257 local fun = self._cache_func
258 if fun then 258 if fun then
259 return fun 259 return fun
260 end 260 end
261 fun = M.Function(self._obj:function_get_by_name(fn, ft)) 261 fun = M.Function(self._obj:function_by_name_get(fn, ft))
262 self._cache_func = fun 262 self._cache_func = fun
263 return fun 263 return fun
264 end, 264 end,
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):
659 def events(self): 659 def events(self):
660 return Iterator(Event, lib.eolian_class_events_get(self._obj)) 660 return Iterator(Event, lib.eolian_class_events_get(self._obj))
661 661
662 def event_get_by_name(self, event_name): 662 def event_by_name_get(self, event_name):
663 c_event = lib.eolian_class_event_get_by_name(self._obj, 663 c_event = lib.eolian_class_event_by_name_get(self._obj,
664 _str_to_bytes(event_name)) 664 _str_to_bytes(event_name))
665 return Event(c_event) if c_event else None 665 return Event(c_event) if c_event else None
666 666
@@ -703,9 +703,9 @@ class Class(Object):
703 def dtor_enable(self): 703 def dtor_enable(self):
704 return bool(lib.eolian_class_dtor_enable_get(self._obj)) 704 return bool(lib.eolian_class_dtor_enable_get(self._obj))
705 705
706 def function_get_by_name(self, func_name, 706 def function_by_name_get(self, func_name,
707 ftype=Eolian_Function_Type.UNRESOLVED): 707 ftype=Eolian_Function_Type.UNRESOLVED):
708 f = lib.eolian_class_function_get_by_name(self._obj, 708 f = lib.eolian_class_function_by_name_get(self._obj,
709 _str_to_bytes(func_name), 709 _str_to_bytes(func_name),
710 ftype) 710 ftype)
711 return Function(f) if f else None 711 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
251lib.eolian_class_functions_get.argtypes = [c_void_p, c_int] 251lib.eolian_class_functions_get.argtypes = [c_void_p, c_int]
252lib.eolian_class_functions_get.restype = c_void_p 252lib.eolian_class_functions_get.restype = c_void_p
253 253
254# EAPI const Eolian_Function *eolian_class_function_get_by_name(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type); 254# EAPI const Eolian_Function *eolian_class_function_by_name_get(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type);
255lib.eolian_class_function_get_by_name.argtypes = [c_void_p, c_char_p, c_int] 255lib.eolian_class_function_by_name_get.argtypes = [c_void_p, c_char_p, c_int]
256lib.eolian_class_function_get_by_name.restype = c_void_p 256lib.eolian_class_function_by_name_get.restype = c_void_p
257 257
258# EAPI Eina_Iterator *eolian_class_implements_get(const Eolian_Class *klass); 258# EAPI Eina_Iterator *eolian_class_implements_get(const Eolian_Class *klass);
259lib.eolian_class_implements_get.argtypes = [c_void_p,] 259lib.eolian_class_implements_get.argtypes = [c_void_p,]
@@ -271,9 +271,9 @@ lib.eolian_class_events_get.restype = c_void_p
271lib.eolian_class_parts_get.argtypes = [c_void_p,] 271lib.eolian_class_parts_get.argtypes = [c_void_p,]
272lib.eolian_class_parts_get.restype = c_void_p 272lib.eolian_class_parts_get.restype = c_void_p
273 273
274# EAPI const Eolian_Event *eolian_class_event_get_by_name(const Eolian_Class *klass, const char *event_name); 274# EAPI const Eolian_Event *eolian_class_event_by_name_get(const Eolian_Class *klass, const char *event_name);
275lib.eolian_class_event_get_by_name.argtypes = [c_void_p, c_char_p] 275lib.eolian_class_event_by_name_get.argtypes = [c_void_p, c_char_p]
276lib.eolian_class_event_get_by_name.restype = c_void_p 276lib.eolian_class_event_by_name_get.restype = c_void_p
277 277
278# EAPI Eina_Bool eolian_class_ctor_enable_get(const Eolian_Class *klass); 278# EAPI Eina_Bool eolian_class_ctor_enable_get(const Eolian_Class *klass);
279lib.eolian_class_ctor_enable_get.argtypes = [c_void_p,] 279lib.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):
326class TestEolianFunction(unittest.TestCase): 326class TestEolianFunction(unittest.TestCase):
327 def test_function(self): 327 def test_function(self):
328 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 328 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
329 f = cls.function_get_by_name('delay') 329 f = cls.function_by_name_get('delay')
330 self.assertIsInstance(f, eolian.Function) 330 self.assertIsInstance(f, eolian.Function)
331 self.assertEqual(f.name, 'delay') 331 self.assertEqual(f.name, 'delay')
332 self.assertEqual(f.type, eolian.Eolian_Function_Type.METHOD) 332 self.assertEqual(f.type, eolian.Eolian_Function_Type.METHOD)
@@ -357,7 +357,7 @@ class TestEolianFunction(unittest.TestCase):
357 357
358 def test_function_parameter(self): 358 def test_function_parameter(self):
359 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 359 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
360 f = cls.function_get_by_name('delay') 360 f = cls.function_by_name_get('delay')
361 p = list(f.parameters)[0] 361 p = list(f.parameters)[0]
362 self.assertEqual(p.direction, eolian.Eolian_Parameter_Dir.IN) 362 self.assertEqual(p.direction, eolian.Eolian_Parameter_Dir.IN)
363 self.assertEqual(p.name, 'add') 363 self.assertEqual(p.name, 'add')
@@ -372,7 +372,7 @@ class TestEolianFunction(unittest.TestCase):
372class TestEolianImplement(unittest.TestCase): 372class TestEolianImplement(unittest.TestCase):
373 def test_implement(self): 373 def test_implement(self):
374 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 374 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
375 f = cls.function_get_by_name('delay') 375 f = cls.function_by_name_get('delay')
376 im = f.implement 376 im = f.implement
377 self.assertIsInstance(im, eolian.Implement) 377 self.assertIsInstance(im, eolian.Implement)
378 self.assertEqual(im.full_name, 'Efl.Loop.Timer.delay') 378 self.assertEqual(im.full_name, 'Efl.Loop.Timer.delay')
@@ -392,7 +392,7 @@ class TestEolianEvent(unittest.TestCase):
392 def test_event(self): 392 def test_event(self):
393 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 393 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
394 self.assertEqual([e.name for e in cls.events], ['tick']) 394 self.assertEqual([e.name for e in cls.events], ['tick'])
395 ev = cls.event_get_by_name('tick') 395 ev = cls.event_by_name_get('tick')
396 self.assertIsInstance(ev, eolian.Event) 396 self.assertIsInstance(ev, eolian.Event)
397 self.assertEqual(ev.name, 'tick') 397 self.assertEqual(ev.name, 'tick')
398 self.assertEqual(ev.c_name, 'EFL_LOOP_TIMER_EVENT_TICK') 398 self.assertEqual(ev.c_name, 'EFL_LOOP_TIMER_EVENT_TICK')
@@ -535,7 +535,7 @@ class TestEolianTypedecl(unittest.TestCase):
535class TestEolianType(unittest.TestCase): 535class TestEolianType(unittest.TestCase):
536 def test_type_regular_builtin(self): 536 def test_type_regular_builtin(self):
537 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 537 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
538 func = cls.function_get_by_name('delay') 538 func = cls.function_by_name_get('delay')
539 param = list(func.parameters)[0] 539 param = list(func.parameters)[0]
540 t = param.type # type: double 540 t = param.type # type: double
541 self.assertIsInstance(t, eolian.Type) 541 self.assertIsInstance(t, eolian.Type)
@@ -560,7 +560,7 @@ class TestEolianType(unittest.TestCase):
560 560
561 def test_type_regular(self): 561 def test_type_regular(self):
562 cls = eolian_db.class_by_name_get('Efl.Gfx') 562 cls = eolian_db.class_by_name_get('Efl.Gfx')
563 func = cls.function_get_by_name('geometry') 563 func = cls.function_by_name_get('geometry')
564 param = list(func.setter_values)[0] 564 param = list(func.setter_values)[0]
565 t = param.type # type: Eina.Rect 565 t = param.type # type: Eina.Rect
566 self.assertIsInstance(t, eolian.Type) 566 self.assertIsInstance(t, eolian.Type)
@@ -584,7 +584,7 @@ class TestEolianType(unittest.TestCase):
584 584
585 def test_type_class(self): 585 def test_type_class(self):
586 cls = eolian_db.class_by_name_get('Efl.Content') 586 cls = eolian_db.class_by_name_get('Efl.Content')
587 func = cls.function_get_by_name('content') 587 func = cls.function_by_name_get('content')
588 param = list(func.setter_values)[0] 588 param = list(func.setter_values)[0]
589 t = param.type # type: Efl.Gfx (class interface) 589 t = param.type # type: Efl.Gfx (class interface)
590 self.assertIsInstance(t, eolian.Type) 590 self.assertIsInstance(t, eolian.Type)
diff --git a/src/tests/eolian/eolian_parsing.c b/src/tests/eolian/eolian_parsing.c
index 33c26f1593..e6a4b2c165 100644
--- a/src/tests/eolian/eolian_parsing.c
+++ b/src/tests/eolian/eolian_parsing.c
@@ -162,9 +162,9 @@ START_TEST(eolian_events)
162 162
163 fail_if(eina_iterator_next(iter, &dummy)); 163 fail_if(eina_iterator_next(iter, &dummy));
164 eina_iterator_free(iter); 164 eina_iterator_free(iter);
165 /* Check eolian_class_event_get_by_name */ 165 /* Check eolian_class_event_by_name_get */
166 fail_if(!eolian_class_event_get_by_name(class, "clicked,double")); 166 fail_if(!eolian_class_event_by_name_get(class, "clicked,double"));
167 fail_if(eolian_class_event_get_by_name(class, "clicked,triple")); 167 fail_if(eolian_class_event_by_name_get(class, "clicked,triple"));
168 168
169 eolian_state_free(eos); 169 eolian_state_free(eos);
170 eolian_shutdown(); 170 eolian_shutdown();
@@ -245,7 +245,7 @@ START_TEST(eolian_consts)
245 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Consts"))); 245 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Consts")));
246 246
247 /* Method */ 247 /* Method */
248 fail_if(!(fid = eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD))); 248 fail_if(!(fid = eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD)));
249 fail_if(EINA_FALSE == eolian_function_object_is_const(fid)); 249 fail_if(EINA_FALSE == eolian_function_object_is_const(fid));
250 250
251 eolian_state_free(eos); 251 eolian_state_free(eos);
@@ -297,7 +297,7 @@ START_TEST(eolian_ctor_dtor)
297 eina_iterator_free(iter); 297 eina_iterator_free(iter);
298 298
299 /* Custom ctors/dtors */ 299 /* Custom ctors/dtors */
300 fail_if(!eolian_class_function_get_by_name(base, "destructor", EOLIAN_METHOD)); 300 fail_if(!eolian_class_function_by_name_get(base, "destructor", EOLIAN_METHOD));
301 fail_if(!(iter = eolian_class_constructors_get(class))); 301 fail_if(!(iter = eolian_class_constructors_get(class)));
302 fail_if(!(eina_iterator_next(iter, (void**)&ctor))); 302 fail_if(!(eina_iterator_next(iter, (void**)&ctor)));
303 fail_if(eolian_constructor_is_optional(ctor)); 303 fail_if(eolian_constructor_is_optional(ctor));
@@ -341,7 +341,7 @@ START_TEST(eolian_typedef)
341 341
342 /* Check that the class Dummy is still readable */ 342 /* Check that the class Dummy is still readable */
343 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Typedef"))); 343 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Typedef")));
344 fail_if(!eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD)); 344 fail_if(!eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD));
345 345
346 /* Basic type */ 346 /* Basic type */
347 fail_if(!(tdl = eolian_unit_alias_by_name_get(unit, "Evas.Coord"))); 347 fail_if(!(tdl = eolian_unit_alias_by_name_get(unit, "Evas.Coord")));
@@ -426,7 +426,7 @@ START_TEST(eolian_complex_type)
426 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Complex_Type"))); 426 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Complex_Type")));
427 427
428 /* Properties return type */ 428 /* Properties return type */
429 fail_if(!(fid = eolian_class_function_get_by_name(class, "a", EOLIAN_PROPERTY))); 429 fail_if(!(fid = eolian_class_function_by_name_get(class, "a", EOLIAN_PROPERTY)));
430 fail_if(!(type = eolian_function_return_type_get(fid, EOLIAN_PROP_SET))); 430 fail_if(!(type = eolian_function_return_type_get(fid, EOLIAN_PROP_SET)));
431 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_RETURN))); 431 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_RETURN)));
432 fail_if(!eolian_type_is_owned(type)); 432 fail_if(!eolian_type_is_owned(type));
@@ -465,7 +465,7 @@ START_TEST(eolian_complex_type)
465 eina_stringshare_del(type_name); 465 eina_stringshare_del(type_name);
466 466
467 /* Methods return type */ 467 /* Methods return type */
468 fail_if(!(fid = eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD))); 468 fail_if(!(fid = eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD)));
469 fail_if(!(type = eolian_function_return_type_get(fid, EOLIAN_METHOD))); 469 fail_if(!(type = eolian_function_return_type_get(fid, EOLIAN_METHOD)));
470 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_RETURN))); 470 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_RETURN)));
471 fail_if(!eolian_type_is_owned(type)); 471 fail_if(!eolian_type_is_owned(type));
@@ -510,21 +510,21 @@ START_TEST(eolian_scope)
510 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Scope"))); 510 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Scope")));
511 511
512 /* Property scope */ 512 /* Property scope */
513 fail_if(eolian_class_function_get_by_name(class, "a", EOLIAN_PROPERTY)); 513 fail_if(eolian_class_function_by_name_get(class, "a", EOLIAN_PROPERTY));
514 fail_if(!(fid = eolian_class_function_get_by_name(class, "a", EOLIAN_PROP_GET))); 514 fail_if(!(fid = eolian_class_function_by_name_get(class, "a", EOLIAN_PROP_GET)));
515 fail_if(eolian_function_scope_get(fid, EOLIAN_PROP_GET) != EOLIAN_SCOPE_PROTECTED); 515 fail_if(eolian_function_scope_get(fid, EOLIAN_PROP_GET) != EOLIAN_SCOPE_PROTECTED);
516 fail_if(!(fid = eolian_class_function_get_by_name(class, "b", EOLIAN_PROP_GET))); 516 fail_if(!(fid = eolian_class_function_by_name_get(class, "b", EOLIAN_PROP_GET)));
517 fail_if(eolian_function_scope_get(fid, EOLIAN_PROP_GET) != EOLIAN_SCOPE_PUBLIC); 517 fail_if(eolian_function_scope_get(fid, EOLIAN_PROP_GET) != EOLIAN_SCOPE_PUBLIC);
518 fail_if(!(fid = eolian_class_function_get_by_name(class, "c", EOLIAN_PROPERTY))); 518 fail_if(!(fid = eolian_class_function_by_name_get(class, "c", EOLIAN_PROPERTY)));
519 fail_if(eolian_function_scope_get(fid, EOLIAN_PROP_GET) != EOLIAN_SCOPE_PUBLIC); 519 fail_if(eolian_function_scope_get(fid, EOLIAN_PROP_GET) != EOLIAN_SCOPE_PUBLIC);
520 fail_if(eolian_function_scope_get(fid, EOLIAN_PROP_SET) != EOLIAN_SCOPE_PROTECTED); 520 fail_if(eolian_function_scope_get(fid, EOLIAN_PROP_SET) != EOLIAN_SCOPE_PROTECTED);
521 521
522 /* Method scope */ 522 /* Method scope */
523 fail_if(!(fid = eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD))); 523 fail_if(!(fid = eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD)));
524 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PUBLIC); 524 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PUBLIC);
525 fail_if(!(fid = eolian_class_function_get_by_name(class, "bar", EOLIAN_METHOD))); 525 fail_if(!(fid = eolian_class_function_by_name_get(class, "bar", EOLIAN_METHOD)));
526 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PROTECTED); 526 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PROTECTED);
527 fail_if(!(fid = eolian_class_function_get_by_name(class, "foobar", EOLIAN_METHOD))); 527 fail_if(!(fid = eolian_class_function_by_name_get(class, "foobar", EOLIAN_METHOD)));
528 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PUBLIC); 528 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PUBLIC);
529 529
530 eolian_state_free(eos); 530 eolian_state_free(eos);
@@ -575,7 +575,7 @@ START_TEST(eolian_simple_parsing)
575 eina_stringshare_del(string); 575 eina_stringshare_del(string);
576 576
577 /* Property */ 577 /* Property */
578 fail_if(!(fid = eolian_class_function_get_by_name(class, "a", EOLIAN_PROPERTY))); 578 fail_if(!(fid = eolian_class_function_by_name_get(class, "a", EOLIAN_PROPERTY)));
579 fail_if(strcmp(eolian_function_name_get(fid), "a")); 579 fail_if(strcmp(eolian_function_name_get(fid), "a"));
580 fail_if(!eolian_function_is_beta(fid)); 580 fail_if(!eolian_function_is_beta(fid));
581 fail_if(eolian_function_class_get(fid) != class); 581 fail_if(eolian_function_class_get(fid) != class);
@@ -608,14 +608,14 @@ START_TEST(eolian_simple_parsing)
608 fail_if(v.value.i != 100); 608 fail_if(v.value.i != 100);
609 609
610 /* legacy only + c only */ 610 /* legacy only + c only */
611 fail_if(eolian_class_function_get_by_name(class, "b", EOLIAN_PROPERTY)); 611 fail_if(eolian_class_function_by_name_get(class, "b", EOLIAN_PROPERTY));
612 fail_if(!(fid = eolian_class_function_get_by_name(class, "b", EOLIAN_PROP_SET))); 612 fail_if(!(fid = eolian_class_function_by_name_get(class, "b", EOLIAN_PROP_SET)));
613 fail_if(eolian_function_is_legacy_only(fid, EOLIAN_PROP_GET)); 613 fail_if(eolian_function_is_legacy_only(fid, EOLIAN_PROP_GET));
614 fail_if(!eolian_function_is_legacy_only(fid, EOLIAN_PROP_SET)); 614 fail_if(!eolian_function_is_legacy_only(fid, EOLIAN_PROP_SET));
615 fail_if(eolian_function_is_beta(fid)); 615 fail_if(eolian_function_is_beta(fid));
616 616
617 /* Method */ 617 /* Method */
618 fail_if(!(fid = eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD))); 618 fail_if(!(fid = eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD)));
619 fail_if(!eolian_function_is_beta(fid)); 619 fail_if(!eolian_function_is_beta(fid));
620 fail_if(!eolian_type_is_ptr(eolian_function_return_type_get(fid, EOLIAN_METHOD))); 620 fail_if(!eolian_type_is_ptr(eolian_function_return_type_get(fid, EOLIAN_METHOD)));
621 /* Function return */ 621 /* Function return */
@@ -661,7 +661,7 @@ START_TEST(eolian_simple_parsing)
661 eina_iterator_free(iter); 661 eina_iterator_free(iter);
662 662
663 /* legacy only + c only */ 663 /* legacy only + c only */
664 fail_if(!(fid = eolian_class_function_get_by_name(class, "bar", EOLIAN_METHOD))); 664 fail_if(!(fid = eolian_class_function_by_name_get(class, "bar", EOLIAN_METHOD)));
665 fail_if(!eolian_function_is_legacy_only(fid, EOLIAN_METHOD)); 665 fail_if(!eolian_function_is_legacy_only(fid, EOLIAN_METHOD));
666 fail_if(eolian_function_is_beta(fid)); 666 fail_if(eolian_function_is_beta(fid));
667 fail_if(!eolian_type_is_ptr(eolian_function_return_type_get(fid, EOLIAN_METHOD))); 667 fail_if(!eolian_type_is_ptr(eolian_function_return_type_get(fid, EOLIAN_METHOD)));
@@ -691,7 +691,7 @@ START_TEST(eolian_struct)
691 691
692 /* Check that the class Dummy is still readable */ 692 /* Check that the class Dummy is still readable */
693 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Struct"))); 693 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Struct")));
694 fail_if(!eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD)); 694 fail_if(!eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD));
695 695
696 /* named struct */ 696 /* named struct */
697 fail_if(!(tdl = eolian_unit_struct_by_name_get(unit, "Named"))); 697 fail_if(!(tdl = eolian_unit_struct_by_name_get(unit, "Named")));
@@ -732,7 +732,7 @@ START_TEST(eolian_struct)
732 fail_if(eolian_typedecl_type_get(tdl) != EOLIAN_TYPEDECL_STRUCT_OPAQUE); 732 fail_if(eolian_typedecl_type_get(tdl) != EOLIAN_TYPEDECL_STRUCT_OPAQUE);
733 733
734 /* use in function */ 734 /* use in function */
735 fail_if(!(func = eolian_class_function_get_by_name(class, "bar", EOLIAN_METHOD))); 735 fail_if(!(func = eolian_class_function_by_name_get(class, "bar", EOLIAN_METHOD)));
736 fail_if(!(type = eolian_function_return_type_get(func, EOLIAN_METHOD))); 736 fail_if(!(type = eolian_function_return_type_get(func, EOLIAN_METHOD)));
737 fail_if(eolian_type_type_get(type) != EOLIAN_TYPE_REGULAR); 737 fail_if(eolian_type_type_get(type) != EOLIAN_TYPE_REGULAR);
738 fail_if(!eolian_type_is_ptr(type)); 738 fail_if(!eolian_type_is_ptr(type));
@@ -759,7 +759,7 @@ START_TEST(eolian_extern)
759 759
760 /* Check that the class Dummy is still readable */ 760 /* Check that the class Dummy is still readable */
761 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Extern"))); 761 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Extern")));
762 fail_if(!eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD)); 762 fail_if(!eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD));
763 763
764 /* regular type */ 764 /* regular type */
765 fail_if(!(tdl = eolian_unit_alias_by_name_get(unit, "Foo"))); 765 fail_if(!(tdl = eolian_unit_alias_by_name_get(unit, "Foo")));
@@ -801,7 +801,7 @@ START_TEST(eolian_var)
801 801
802 /* Check that the class Dummy is still readable */ 802 /* Check that the class Dummy is still readable */
803 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Var"))); 803 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Var")));
804 fail_if(!eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD)); 804 fail_if(!eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD));
805 805
806 /* regular constant */ 806 /* regular constant */
807 fail_if(!(var = eolian_unit_constant_by_name_get(unit, "Foo"))); 807 fail_if(!(var = eolian_unit_constant_by_name_get(unit, "Foo")));
@@ -872,7 +872,7 @@ START_TEST(eolian_enum)
872 872
873 /* Check that the class Dummy is still readable */ 873 /* Check that the class Dummy is still readable */
874 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Enum"))); 874 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Enum")));
875 fail_if(!eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD)); 875 fail_if(!eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD));
876 876
877 fail_if(!(tdl = eolian_unit_enum_by_name_get(unit, "Foo"))); 877 fail_if(!(tdl = eolian_unit_enum_by_name_get(unit, "Foo")));
878 878
@@ -968,23 +968,23 @@ START_TEST(eolian_class_funcs)
968 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Class_Funcs"))); 968 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Class_Funcs")));
969 969
970 /* Class properties */ 970 /* Class properties */
971 fail_if(eolian_class_function_get_by_name(class, "a", EOLIAN_PROPERTY)); 971 fail_if(eolian_class_function_by_name_get(class, "a", EOLIAN_PROPERTY));
972 fail_if(!(fid = eolian_class_function_get_by_name(class, "a", EOLIAN_PROP_GET))); 972 fail_if(!(fid = eolian_class_function_by_name_get(class, "a", EOLIAN_PROP_GET)));
973 fail_if(!eolian_function_is_class(fid)); 973 fail_if(!eolian_function_is_class(fid));
974 fail_if(!(fid = eolian_class_function_get_by_name(class, "b", EOLIAN_PROP_GET))); 974 fail_if(!(fid = eolian_class_function_by_name_get(class, "b", EOLIAN_PROP_GET)));
975 fail_if(eolian_function_is_class(fid)); 975 fail_if(eolian_function_is_class(fid));
976 976
977 /* Class methods */ 977 /* Class methods */
978 fail_if(!(fid = eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD))); 978 fail_if(!(fid = eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD)));
979 fail_if(!eolian_function_is_class(fid)); 979 fail_if(!eolian_function_is_class(fid));
980 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PUBLIC); 980 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PUBLIC);
981 fail_if(!(fid = eolian_class_function_get_by_name(class, "bar", EOLIAN_METHOD))); 981 fail_if(!(fid = eolian_class_function_by_name_get(class, "bar", EOLIAN_METHOD)));
982 fail_if(eolian_function_is_class(fid)); 982 fail_if(eolian_function_is_class(fid));
983 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PUBLIC); 983 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PUBLIC);
984 fail_if(!(fid = eolian_class_function_get_by_name(class, "baz", EOLIAN_METHOD))); 984 fail_if(!(fid = eolian_class_function_by_name_get(class, "baz", EOLIAN_METHOD)));
985 fail_if(!eolian_function_is_class(fid)); 985 fail_if(!eolian_function_is_class(fid));
986 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PROTECTED); 986 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PROTECTED);
987 fail_if(!(fid = eolian_class_function_get_by_name(class, "bah", EOLIAN_METHOD))); 987 fail_if(!(fid = eolian_class_function_by_name_get(class, "bah", EOLIAN_METHOD)));
988 fail_if(eolian_function_is_class(fid)); 988 fail_if(eolian_function_is_class(fid));
989 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PROTECTED); 989 fail_if(eolian_function_scope_get(fid, EOLIAN_METHOD) != EOLIAN_SCOPE_PROTECTED);
990 990
@@ -1009,7 +1009,7 @@ START_TEST(eolian_free_func)
1009 1009
1010 /* Check that the class Dummy is still readable */ 1010 /* Check that the class Dummy is still readable */
1011 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Free_Func"))); 1011 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Free_Func")));
1012 fail_if(!eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD)); 1012 fail_if(!eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD));
1013 1013
1014 /* regular struct */ 1014 /* regular struct */
1015 fail_if(!(tdl = eolian_unit_struct_by_name_get(unit, "Named1"))); 1015 fail_if(!(tdl = eolian_unit_struct_by_name_get(unit, "Named1")));
@@ -1058,7 +1058,7 @@ START_TEST(eolian_null)
1058 fail_if(!(unit = eolian_state_file_parse(eos, TESTS_SRC_DIR"/data/null.eo"))); 1058 fail_if(!(unit = eolian_state_file_parse(eos, TESTS_SRC_DIR"/data/null.eo")));
1059 1059
1060 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Null"))); 1060 fail_if(!(class = eolian_unit_class_by_name_get(unit, "Null")));
1061 fail_if(!(func = eolian_class_function_get_by_name(class, "foo", EOLIAN_METHOD))); 1061 fail_if(!(func = eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD)));
1062 1062
1063 fail_if(!(iter = eolian_function_parameters_get(func))); 1063 fail_if(!(iter = eolian_function_parameters_get(func)));
1064 1064
@@ -1356,7 +1356,7 @@ START_TEST(eolian_docs)
1356 "@Foo @Bar @Alias @pants @Docs.meth @Docs.prop " 1356 "@Foo @Bar @Alias @pants @Docs.meth @Docs.prop "
1357 "@Docs.prop.get @Docs.prop.set @Foo.field1 @Bar.foo @Docs")); 1357 "@Docs.prop.get @Docs.prop.set @Foo.field1 @Bar.foo @Docs"));
1358 1358
1359 fail_if(!(fid = eolian_class_function_get_by_name(class, "meth", EOLIAN_METHOD))); 1359 fail_if(!(fid = eolian_class_function_by_name_get(class, "meth", EOLIAN_METHOD)));
1360 const Eolian_Implement *fimp = eolian_function_implement_get(fid); 1360 const Eolian_Implement *fimp = eolian_function_implement_get(fid);
1361 fail_if(!(doc = eolian_implement_documentation_get(fimp, EOLIAN_METHOD))); 1361 fail_if(!(doc = eolian_implement_documentation_get(fimp, EOLIAN_METHOD)));
1362 fail_if(strcmp(eolian_documentation_summary_get(doc), 1362 fail_if(strcmp(eolian_documentation_summary_get(doc),
@@ -1388,7 +1388,7 @@ START_TEST(eolian_docs)
1388 "Return documentation.")); 1388 "Return documentation."));
1389 fail_if(eolian_documentation_description_get(doc)); 1389 fail_if(eolian_documentation_description_get(doc));
1390 1390
1391 fail_if(!(fid = eolian_class_function_get_by_name(class, "prop", EOLIAN_PROPERTY))); 1391 fail_if(!(fid = eolian_class_function_by_name_get(class, "prop", EOLIAN_PROPERTY)));
1392 fimp = eolian_function_implement_get(fid); 1392 fimp = eolian_function_implement_get(fid);
1393 fail_if(!(doc = eolian_implement_documentation_get(fimp, EOLIAN_PROPERTY))); 1393 fail_if(!(doc = eolian_implement_documentation_get(fimp, EOLIAN_PROPERTY)));
1394 fail_if(strcmp(eolian_documentation_summary_get(doc), 1394 fail_if(strcmp(eolian_documentation_summary_get(doc),
@@ -1416,7 +1416,7 @@ START_TEST(eolian_docs)
1416 fail_if(eina_iterator_next(itr, (void**)&par)); 1416 fail_if(eina_iterator_next(itr, (void**)&par));
1417 eina_iterator_free(itr); 1417 eina_iterator_free(itr);
1418 1418
1419 fail_if(!(event = eolian_class_event_get_by_name(class, "clicked"))); 1419 fail_if(!(event = eolian_class_event_by_name_get(class, "clicked")));
1420 fail_if(!(doc = eolian_event_documentation_get(event))); 1420 fail_if(!(doc = eolian_event_documentation_get(event)));
1421 fail_if(strcmp(eolian_documentation_summary_get(doc), 1421 fail_if(strcmp(eolian_documentation_summary_get(doc),
1422 "Event docs.")); 1422 "Event docs."));
@@ -1576,7 +1576,7 @@ START_TEST(eolian_function_as_arguments)
1576 1576
1577 fail_if(!(cls = eolian_unit_class_by_name_get(unit, "Function_As_Argument"))); 1577 fail_if(!(cls = eolian_unit_class_by_name_get(unit, "Function_As_Argument")));
1578 1578
1579 fail_if(!(fid = eolian_class_function_get_by_name(cls, "set_cb", EOLIAN_METHOD))); 1579 fail_if(!(fid = eolian_class_function_by_name_get(cls, "set_cb", EOLIAN_METHOD)));
1580 1580
1581 fail_if(!(iter = (eolian_function_parameters_get(fid)))); 1581 fail_if(!(iter = (eolian_function_parameters_get(fid))));
1582 1582