diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-07-02 14:06:17 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-07-05 17:40:17 -0300 |
commit | 8a6790433c874ff6882c7c191582b66e092ae6c5 (patch) | |
tree | 14047f74280cb1efa2735aaa1d307fa6eeacf695 /libshiboken | |
parent | 95b44627e2080c25a6fba858b18a68727c064d16 (diff) |
Store class orignal name to future use.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'libshiboken')
-rw-r--r-- | libshiboken/basewrapper.cpp | 1 | ||||
-rw-r--r-- | libshiboken/basewrapper.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index cc3a70a61..eaa6a2aae 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -517,6 +517,7 @@ PyObject* SbkBaseWrapperType_TpNew(PyTypeObject* metatype, PyObject* args, PyObj newType->cpp_dtor = 0; newType->is_multicpp = 1; } + newType->original_name = ""; newType->user_data = 0; newType->d_func = 0; newType->is_user_type = 1; diff --git a/libshiboken/basewrapper.h b/libshiboken/basewrapper.h index 4031fb856..d5a23939c 100644 --- a/libshiboken/basewrapper.h +++ b/libshiboken/basewrapper.h @@ -102,6 +102,8 @@ struct LIBSHIBOKEN_API SbkBaseWrapperType int is_multicpp:1; /// True if this type was definied by the user. int is_user_type:1; + /// C++ name + const char* original_name; /// Type user data void *user_data; DeleteUserDataFunc d_func; |