diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-11-29 14:37:39 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:07 -0300 |
commit | 05d3ef1f70c17605ce27f49a4c185751932bc370 (patch) | |
tree | 76dcf110327e2ef11722e0088d961b48b14c24c0 | |
parent | b4bd60648c654a719432a90979af863482a78abd (diff) |
Add function Shiboken::ObjectType::getUserData(SbjObjectTyoe*)
-rw-r--r-- | libshiboken/basewrapper.cpp | 5 | ||||
-rw-r--r-- | libshiboken/basewrapper.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index 1c79558ef..f93f14cf6 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -561,6 +561,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 460f31593..30268dcec 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 { |