aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pyolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-01-12 17:33:28 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-01-12 18:05:13 +0100
commit707ed05d58b2dd46f7617073ab516a862e2a029a (patch)
tree75780247a8772af532b4d8fd48eb49cb02edee6e /src/scripts/pyolian
parenteolian: store typedecl/class in type (diff)
downloadefl-707ed05d58b2dd46f7617073ab516a862e2a029a.tar.gz
eolian: do not require unit for type_class_get
Diffstat (limited to 'src/scripts/pyolian')
-rw-r--r--src/scripts/pyolian/eolian.py9
-rw-r--r--src/scripts/pyolian/eolian_lib.py7
2 files changed, 7 insertions, 9 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index c15f167433..9146f5245b 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -1087,11 +1087,10 @@ class Type(EolianBaseObject): # OK (4 TODO Unit*)
# c_type = lib.eolian_type_aliased_base_get(self._obj)
# return Type(c_type) if c_type else None
- # TODO FIXME STRANGE API (need Eolian_Unit*)
- # @cached_property
- # def class_(self):
- # c_cls = lib.eolian_type_class_get(self._obj)
- # return Class(c_cls) if c_cls else None
+ @cached_property
+ def class_(self):
+ c_cls = lib.eolian_type_class_get(self._obj)
+ return Class(c_cls) if c_cls else None
@cached_property
def file(self):
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py
index 66b1556b5b..945f15d4c2 100644
--- a/src/scripts/pyolian/eolian_lib.py
+++ b/src/scripts/pyolian/eolian_lib.py
@@ -560,10 +560,9 @@ lib.eolian_type_next_type_get.restype = c_void_p
# lib.eolian_type_aliased_base_get.argtypes = [c_void_p,]
# lib.eolian_type_aliased_base_get.restype = c_void_p
-# TODO FIXME STRANGE API (need Eolian_Unit*)
-# EAPI const Eolian_Class *eolian_type_class_get(const Eolian_Unit *unit, const Eolian_Type *tp);
-# lib.eolian_type_class_get.argtypes = [c_void_p,]
-# lib.eolian_type_class_get.restype = c_void_p
+# EAPI const Eolian_Class *eolian_type_class_get(const Eolian_Type *tp);
+lib.eolian_type_class_get.argtypes = [c_void_p,]
+lib.eolian_type_class_get.restype = c_void_p
# EAPI Eina_Bool eolian_type_is_owned(const Eolian_Type *tp);
lib.eolian_type_is_owned.argtypes = [c_void_p,]