summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libshiboken/basewrapper.cpp5
-rw-r--r--libshiboken/basewrapper.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index 8f5acff8..eb01116c 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -560,6 +560,11 @@ void initPrivateData(SbkObjectType* self)
memset(self->d, 0, sizeof(SbkObjectTypePrivate));
}
+void* getTypeUserData(SbkObjectType* type)
+{
+ return type->d->user_data;
+}
+
} // namespace ObjectType
namespace Object
diff --git a/libshiboken/basewrapper.h b/libshiboken/basewrapper.h
index 460f3159..30268dce 100644
--- a/libshiboken/basewrapper.h
+++ b/libshiboken/basewrapper.h
@@ -155,6 +155,11 @@ LIBSHIBOKEN_API MultipleInheritanceInitFunction getMultipleIheritanceFunction(Sb
LIBSHIBOKEN_API void setDestructorFunction(SbkObjectType* self, ObjectDestructor func);
LIBSHIBOKEN_API void initPrivateData(SbkObjectType* self);
+
+/**
+ * Get the user data previously setted by Shiboken::Object::setTypeUserData
+ */
+LIBSHIBOKEN_API void* getTypeUserData(SbkObjectType* type);
}
namespace Object {