aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pyolian
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/pyolian')
-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):
def units(self):
return Iterator(Eolian_Unit, lib.eolian_state_units_get(self._obj))
- @property
- def objects(self):
- return Iterator(Object, lib.eolian_state_objects_get(self._obj))
-
- def object_by_name_get(self, name):
- c_obj = lib.eolian_state_object_by_name_get(self._obj, _str_to_bytes(name))
- return Object(c_obj) if c_obj else None
-
def objects_by_file_get(self, file_name):
return Iterator(Object,
lib.eolian_state_objects_by_file_get(self._obj, _str_to_bytes(file_name)))
- @property
- def classes(self):
- return Iterator(Class, lib.eolian_state_classes_get(self._obj))
-
- def class_by_name_get(self, class_name):
- c_cls = lib.eolian_state_class_by_name_get(self._obj, _str_to_bytes(class_name))
- return Class(c_cls) if c_cls else None
-
def class_by_file_get(self, file_name):
c_cls = lib.eolian_state_class_by_file_get(self._obj, _str_to_bytes(file_name))
return Class(c_cls) if c_cls else None
- @property
- def constants(self):
- return Iterator(Variable, lib.eolian_state_constants_get(self._obj))
-
- def constant_by_name_get(self, name):
- c_var = lib.eolian_state_constant_by_name_get(self._obj, _str_to_bytes(name))
- return Variable(c_var) if c_var else None
-
def constants_by_file_get(self, file_name):
return Iterator(Variable,
lib.eolian_state_constants_by_file_get(self._obj, _str_to_bytes(file_name)))
- @property
- def globals(self):
- return Iterator(Variable, lib.eolian_state_globals_get(self._obj))
-
- def global_by_name_get(self, name):
- c_var = lib.eolian_state_global_by_name_get(self._obj, _str_to_bytes(name))
- return Variable(c_var) if c_var else None
-
def globals_by_file_get(self, file_name):
return Iterator(Variable,
lib.eolian_state_globals_by_file_get(self._obj, _str_to_bytes(file_name)))
- @property
- def aliases(self):
- return Iterator(Typedecl, lib.eolian_state_aliases_get(self._obj))
-
- def alias_by_name_get(self, name):
- c_tdecl = lib.eolian_state_alias_by_name_get(self._obj, _str_to_bytes(name))
- return Typedecl(c_tdecl) if c_tdecl else None
-
def aliases_by_file_get(self, file_name):
return Iterator(Typedecl,
lib.eolian_state_aliases_by_file_get(self._obj, _str_to_bytes(file_name)))
- @property
- def structs(self):
- return Iterator(Typedecl, lib.eolian_state_structs_get(self._obj))
-
- def struct_by_name_get(self, name):
- c_tdecl = lib.eolian_state_struct_by_name_get(self._obj, _str_to_bytes(name))
- return Typedecl(c_tdecl) if c_tdecl else None
-
def structs_by_file_get(self, file_name):
return Iterator(Typedecl,
lib.eolian_state_structs_by_file_get(self._obj, _str_to_bytes(file_name)))
- @property
- def enums(self):
- return Iterator(Typedecl, lib.eolian_state_enums_get(self._obj))
-
- def enum_by_name_get(self, name):
- c_tdecl = lib.eolian_state_enum_by_name_get(self._obj, _str_to_bytes(name))
- return Typedecl(c_tdecl) if c_tdecl else None
-
def enums_by_file_get(self, file_name):
return Iterator(Typedecl,
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
lib.eolian_state_units_get.argtypes = [c_void_p,]
lib.eolian_state_units_get.restype = c_void_p
-# EAPI const Eolian_Object *eolian_state_object_by_name_get(const Eolian_State *state, const char *name);
-lib.eolian_state_object_by_name_get.argtypes = [c_void_p, c_char_p]
-lib.eolian_state_object_by_name_get.restype = c_void_p
-
# EAPI Eina_Iterator *eolian_state_objects_by_file_get(const Eolian_State *state, const char *file_name);
lib.eolian_state_objects_by_file_get.argtypes = [c_void_p, c_char_p]
lib.eolian_state_objects_by_file_get.restype = c_void_p
-# EAPI Eina_Iterator *eolian_state_objects_get(const Eolian_State *state);
-lib.eolian_state_objects_get.argtypes = [c_void_p]
-lib.eolian_state_objects_get.restype = c_void_p
-
-# EAPI const Eolian_Class *eolian_state_class_by_name_get(const Eolian_State *state, const char *class_name);
-lib.eolian_state_class_by_name_get.argtypes = [c_void_p, c_char_p]
-lib.eolian_state_class_by_name_get.restype = c_void_p
-
# EAPI const Eolian_Class *eolian_state_class_by_file_get(const Eolian_State *state, const char *file_name);
lib.eolian_state_class_by_file_get.argtypes = [c_void_p, c_char_p]
lib.eolian_state_class_by_file_get.restype = c_void_p
-# EAPI Eina_Iterator *eolian_state_classes_get(const Eolian_State *state);
-lib.eolian_state_classes_get.argtypes = [c_void_p,]
-lib.eolian_state_classes_get.restype = c_void_p
-
-# EAPI const Eolian_Variable *eolian_state_global_by_name_get(const Eolian_State *state, const char *name);
-lib.eolian_state_global_by_name_get.argtypes = [c_void_p, c_char_p]
-lib.eolian_state_global_by_name_get.restype = c_void_p
-
-# EAPI const Eolian_Variable *eolian_state_constant_by_name_get(const Eolian_State *state, const char *name);
-lib.eolian_state_constant_by_name_get.argtypes = [c_void_p, c_char_p]
-lib.eolian_state_constant_by_name_get.restype = c_void_p
-
# EAPI Eina_Iterator *eolian_state_globals_by_file_get(const Eolian_State *state, const char *file_name);
lib.eolian_state_globals_by_file_get.argtypes = [c_void_p, c_char_p]
lib.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
lib.eolian_state_constants_by_file_get.argtypes = [c_void_p, c_char_p]
lib.eolian_state_constants_by_file_get.restype = c_void_p
-# EAPI Eina_Iterator *eolian_state_constants_get(const Eolian_State *state);
-lib.eolian_state_constants_get.argtypes = [c_void_p,]
-lib.eolian_state_constants_get.restype = c_void_p
-
-# EAPI Eina_Iterator *eolian_state_globals_get(const Eolian_State *state);
-lib.eolian_state_globals_get.argtypes = [c_void_p,]
-lib.eolian_state_globals_get.restype = c_void_p
-
-# EAPI const Eolian_Typedecl *eolian_state_alias_by_name_get(const Eolian_State *state, const char *name);
-lib.eolian_state_alias_by_name_get.argtypes = [c_void_p, c_char_p]
-lib.eolian_state_alias_by_name_get.restype = c_void_p
-
-# EAPI const Eolian_Typedecl *eolian_state_struct_by_name_get(const Eolian_State *state, const char *name);
-lib.eolian_state_struct_by_name_get.argtypes = [c_void_p, c_char_p]
-lib.eolian_state_struct_by_name_get.restype = c_void_p
-
-# EAPI const Eolian_Typedecl *eolian_state_enum_by_name_get(const Eolian_State *state, const char *name);
-lib.eolian_state_enum_by_name_get.argtypes = [c_void_p, c_char_p]
-lib.eolian_state_enum_by_name_get.restype = c_void_p
-
# EAPI Eina_Iterator *eolian_state_aliases_by_file_get(const Eolian_State *state, const char *file_name);
lib.eolian_state_aliases_by_file_get.argtypes = [c_void_p, c_char_p]
lib.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
lib.eolian_state_enums_by_file_get.argtypes = [c_void_p, c_char_p]
lib.eolian_state_enums_by_file_get.restype = c_void_p
-# EAPI Eina_Iterator *eolian_state_aliases_get(const Eolian_State *state);
-lib.eolian_state_aliases_get.argtypes = [c_void_p,]
-lib.eolian_state_aliases_get.restype = c_void_p
-
-# EAPI Eina_Iterator *eolian_state_structs_get(const Eolian_State *state);
-lib.eolian_state_structs_get.argtypes = [c_void_p,]
-lib.eolian_state_structs_get.restype = c_void_p
-
-# EAPI Eina_Iterator *eolian_state_enums_get(const Eolian_State *state);
-lib.eolian_state_enums_get.argtypes = [c_void_p,]
-lib.eolian_state_enums_get.restype = c_void_p
-
### Eolian_Unit #############################################################
# EAPI Eina_Iterator *eolian_unit_children_get(const Eolian_Unit *unit);