summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-14 17:08:36 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-14 17:08:36 +0100
commit4fd0d5b43642f5c511df9c19ea2103d0f29ac8da (patch)
treef66836f68573b2767e13d8c63133c1216d9496c3 /src/scripts
parent0ee6410add1f55198d5324dce0c3e2513febcea3 (diff)
pyolian: remove unneeded bindings in eolian_state
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/pyolian/eolian.py56
-rw-r--r--src/scripts/pyolian/eolian_lib.py56
2 files changed, 0 insertions, 112 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index 1d91d01f2d..0dc9b68a02 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -444,86 +444,30 @@ class Eolian_State(Eolian_Unit):
444 def units(self): 444 def units(self):
445 return Iterator(Eolian_Unit, lib.eolian_state_units_get(self._obj)) 445 return Iterator(Eolian_Unit, lib.eolian_state_units_get(self._obj))
446 446
447 @property
448 def objects(self):
449 return Iterator(Object, lib.eolian_state_objects_get(self._obj))
450
451 def object_by_name_get(self, name):
452 c_obj = lib.eolian_state_object_by_name_get(self._obj, _str_to_bytes(name))
453 return Object(c_obj) if c_obj else None
454
455 def objects_by_file_get(self, file_name): 447 def objects_by_file_get(self, file_name):
456 return Iterator(Object, 448 return Iterator(Object,
457 lib.eolian_state_objects_by_file_get(self._obj, _str_to_bytes(file_name))) 449 lib.eolian_state_objects_by_file_get(self._obj, _str_to_bytes(file_name)))
458 450
459 @property
460 def classes(self):
461 return Iterator(Class, lib.eolian_state_classes_get(self._obj))
462
463 def class_by_name_get(self, class_name):
464 c_cls = lib.eolian_state_class_by_name_get(self._obj, _str_to_bytes(class_name))
465 return Class(c_cls) if c_cls else None
466
467 def class_by_file_get(self, file_name): 451 def class_by_file_get(self, file_name):
468 c_cls = lib.eolian_state_class_by_file_get(self._obj, _str_to_bytes(file_name)) 452 c_cls = lib.eolian_state_class_by_file_get(self._obj, _str_to_bytes(file_name))
469 return Class(c_cls) if c_cls else None 453 return Class(c_cls) if c_cls else None
470 454
471 @property
472 def constants(self):
473 return Iterator(Variable, lib.eolian_state_constants_get(self._obj))
474
475 def constant_by_name_get(self, name):
476 c_var = lib.eolian_state_constant_by_name_get(self._obj, _str_to_bytes(name))
477 return Variable(c_var) if c_var else None
478
479 def constants_by_file_get(self, file_name): 455 def constants_by_file_get(self, file_name):
480 return Iterator(Variable, 456 return Iterator(Variable,
481 lib.eolian_state_constants_by_file_get(self._obj, _str_to_bytes(file_name))) 457 lib.eolian_state_constants_by_file_get(self._obj, _str_to_bytes(file_name)))
482 458
483 @property
484 def globals(self):
485 return Iterator(Variable, lib.eolian_state_globals_get(self._obj))
486
487 def global_by_name_get(self, name):
488 c_var = lib.eolian_state_global_by_name_get(self._obj, _str_to_bytes(name))
489 return Variable(c_var) if c_var else None
490
491 def globals_by_file_get(self, file_name): 459 def globals_by_file_get(self, file_name):
492 return Iterator(Variable, 460 return Iterator(Variable,
493 lib.eolian_state_globals_by_file_get(self._obj, _str_to_bytes(file_name))) 461 lib.eolian_state_globals_by_file_get(self._obj, _str_to_bytes(file_name)))
494 462
495 @property
496 def aliases(self):
497 return Iterator(Typedecl, lib.eolian_state_aliases_get(self._obj))
498
499 def alias_by_name_get(self, name):
500 c_tdecl = lib.eolian_state_alias_by_name_get(self._obj, _str_to_bytes(name))
501 return Typedecl(c_tdecl) if c_tdecl else None
502
503 def aliases_by_file_get(self, file_name): 463 def aliases_by_file_get(self, file_name):
504 return Iterator(Typedecl, 464 return Iterator(Typedecl,
505 lib.eolian_state_aliases_by_file_get(self._obj, _str_to_bytes(file_name))) 465 lib.eolian_state_aliases_by_file_get(self._obj, _str_to_bytes(file_name)))
506 466
507 @property
508 def structs(self):
509 return Iterator(Typedecl, lib.eolian_state_structs_get(self._obj))
510
511 def struct_by_name_get(self, name):
512 c_tdecl = lib.eolian_state_struct_by_name_get(self._obj, _str_to_bytes(name))
513 return Typedecl(c_tdecl) if c_tdecl else None
514
515 def structs_by_file_get(self, file_name): 467 def structs_by_file_get(self, file_name):
516 return Iterator(Typedecl, 468 return Iterator(Typedecl,
517 lib.eolian_state_structs_by_file_get(self._obj, _str_to_bytes(file_name))) 469 lib.eolian_state_structs_by_file_get(self._obj, _str_to_bytes(file_name)))
518 470
519 @property
520 def enums(self):
521 return Iterator(Typedecl, lib.eolian_state_enums_get(self._obj))
522
523 def enum_by_name_get(self, name):
524 c_tdecl = lib.eolian_state_enum_by_name_get(self._obj, _str_to_bytes(name))
525 return Typedecl(c_tdecl) if c_tdecl else None
526
527 def enums_by_file_get(self, file_name): 471 def enums_by_file_get(self, file_name):
528 return Iterator(Typedecl, 472 return Iterator(Typedecl,
529 lib.eolian_state_enums_by_file_get(self._obj, _str_to_bytes(file_name))) 473 lib.eolian_state_enums_by_file_get(self._obj, _str_to_bytes(file_name)))
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py
index c16ef5ce5e..66ecccc487 100644
--- a/src/scripts/pyolian/eolian_lib.py
+++ b/src/scripts/pyolian/eolian_lib.py
@@ -93,38 +93,14 @@ lib.eolian_state_unit_by_file_get.restype = c_void_p
93lib.eolian_state_units_get.argtypes = [c_void_p,] 93lib.eolian_state_units_get.argtypes = [c_void_p,]
94lib.eolian_state_units_get.restype = c_void_p 94lib.eolian_state_units_get.restype = c_void_p
95 95
96# EAPI const Eolian_Object *eolian_state_object_by_name_get(const Eolian_State *state, const char *name);
97lib.eolian_state_object_by_name_get.argtypes = [c_void_p, c_char_p]
98lib.eolian_state_object_by_name_get.restype = c_void_p
99
100# EAPI Eina_Iterator *eolian_state_objects_by_file_get(const Eolian_State *state, const char *file_name); 96# EAPI Eina_Iterator *eolian_state_objects_by_file_get(const Eolian_State *state, const char *file_name);
101lib.eolian_state_objects_by_file_get.argtypes = [c_void_p, c_char_p] 97lib.eolian_state_objects_by_file_get.argtypes = [c_void_p, c_char_p]
102lib.eolian_state_objects_by_file_get.restype = c_void_p 98lib.eolian_state_objects_by_file_get.restype = c_void_p
103 99
104# EAPI Eina_Iterator *eolian_state_objects_get(const Eolian_State *state);
105lib.eolian_state_objects_get.argtypes = [c_void_p]
106lib.eolian_state_objects_get.restype = c_void_p
107
108# EAPI const Eolian_Class *eolian_state_class_by_name_get(const Eolian_State *state, const char *class_name);
109lib.eolian_state_class_by_name_get.argtypes = [c_void_p, c_char_p]
110lib.eolian_state_class_by_name_get.restype = c_void_p
111
112# EAPI const Eolian_Class *eolian_state_class_by_file_get(const Eolian_State *state, const char *file_name); 100# EAPI const Eolian_Class *eolian_state_class_by_file_get(const Eolian_State *state, const char *file_name);
113lib.eolian_state_class_by_file_get.argtypes = [c_void_p, c_char_p] 101lib.eolian_state_class_by_file_get.argtypes = [c_void_p, c_char_p]
114lib.eolian_state_class_by_file_get.restype = c_void_p 102lib.eolian_state_class_by_file_get.restype = c_void_p
115 103
116# EAPI Eina_Iterator *eolian_state_classes_get(const Eolian_State *state);
117lib.eolian_state_classes_get.argtypes = [c_void_p,]
118lib.eolian_state_classes_get.restype = c_void_p
119
120# EAPI const Eolian_Variable *eolian_state_global_by_name_get(const Eolian_State *state, const char *name);
121lib.eolian_state_global_by_name_get.argtypes = [c_void_p, c_char_p]
122lib.eolian_state_global_by_name_get.restype = c_void_p
123
124# EAPI const Eolian_Variable *eolian_state_constant_by_name_get(const Eolian_State *state, const char *name);
125lib.eolian_state_constant_by_name_get.argtypes = [c_void_p, c_char_p]
126lib.eolian_state_constant_by_name_get.restype = c_void_p
127
128# EAPI Eina_Iterator *eolian_state_globals_by_file_get(const Eolian_State *state, const char *file_name); 104# EAPI Eina_Iterator *eolian_state_globals_by_file_get(const Eolian_State *state, const char *file_name);
129lib.eolian_state_globals_by_file_get.argtypes = [c_void_p, c_char_p] 105lib.eolian_state_globals_by_file_get.argtypes = [c_void_p, c_char_p]
130lib.eolian_state_globals_by_file_get.restype = c_void_p 106lib.eolian_state_globals_by_file_get.restype = c_void_p
@@ -133,26 +109,6 @@ lib.eolian_state_globals_by_file_get.restype = c_void_p
133lib.eolian_state_constants_by_file_get.argtypes = [c_void_p, c_char_p] 109lib.eolian_state_constants_by_file_get.argtypes = [c_void_p, c_char_p]
134lib.eolian_state_constants_by_file_get.restype = c_void_p 110lib.eolian_state_constants_by_file_get.restype = c_void_p
135 111
136# EAPI Eina_Iterator *eolian_state_constants_get(const Eolian_State *state);
137lib.eolian_state_constants_get.argtypes = [c_void_p,]
138lib.eolian_state_constants_get.restype = c_void_p
139
140# EAPI Eina_Iterator *eolian_state_globals_get(const Eolian_State *state);
141lib.eolian_state_globals_get.argtypes = [c_void_p,]
142lib.eolian_state_globals_get.restype = c_void_p
143
144# EAPI const Eolian_Typedecl *eolian_state_alias_by_name_get(const Eolian_State *state, const char *name);
145lib.eolian_state_alias_by_name_get.argtypes = [c_void_p, c_char_p]
146lib.eolian_state_alias_by_name_get.restype = c_void_p
147
148# EAPI const Eolian_Typedecl *eolian_state_struct_by_name_get(const Eolian_State *state, const char *name);
149lib.eolian_state_struct_by_name_get.argtypes = [c_void_p, c_char_p]
150lib.eolian_state_struct_by_name_get.restype = c_void_p
151
152# EAPI const Eolian_Typedecl *eolian_state_enum_by_name_get(const Eolian_State *state, const char *name);
153lib.eolian_state_enum_by_name_get.argtypes = [c_void_p, c_char_p]
154lib.eolian_state_enum_by_name_get.restype = c_void_p
155
156# EAPI Eina_Iterator *eolian_state_aliases_by_file_get(const Eolian_State *state, const char *file_name); 112# EAPI Eina_Iterator *eolian_state_aliases_by_file_get(const Eolian_State *state, const char *file_name);
157lib.eolian_state_aliases_by_file_get.argtypes = [c_void_p, c_char_p] 113lib.eolian_state_aliases_by_file_get.argtypes = [c_void_p, c_char_p]
158lib.eolian_state_aliases_by_file_get.restype = c_void_p 114lib.eolian_state_aliases_by_file_get.restype = c_void_p
@@ -165,18 +121,6 @@ lib.eolian_state_structs_by_file_get.restype = c_void_p
165lib.eolian_state_enums_by_file_get.argtypes = [c_void_p, c_char_p] 121lib.eolian_state_enums_by_file_get.argtypes = [c_void_p, c_char_p]
166lib.eolian_state_enums_by_file_get.restype = c_void_p 122lib.eolian_state_enums_by_file_get.restype = c_void_p
167 123
168# EAPI Eina_Iterator *eolian_state_aliases_get(const Eolian_State *state);
169lib.eolian_state_aliases_get.argtypes = [c_void_p,]
170lib.eolian_state_aliases_get.restype = c_void_p
171
172# EAPI Eina_Iterator *eolian_state_structs_get(const Eolian_State *state);
173lib.eolian_state_structs_get.argtypes = [c_void_p,]
174lib.eolian_state_structs_get.restype = c_void_p
175
176# EAPI Eina_Iterator *eolian_state_enums_get(const Eolian_State *state);
177lib.eolian_state_enums_get.argtypes = [c_void_p,]
178lib.eolian_state_enums_get.restype = c_void_p
179
180### Eolian_Unit ############################################################# 124### Eolian_Unit #############################################################
181 125
182# EAPI Eina_Iterator *eolian_unit_children_get(const Eolian_Unit *unit); 126# EAPI Eina_Iterator *eolian_unit_children_get(const Eolian_Unit *unit);