diff options
Diffstat (limited to 'libshiboken/basewrapper.h')
-rw-r--r-- | libshiboken/basewrapper.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libshiboken/basewrapper.h b/libshiboken/basewrapper.h index 7de5f9086..38e0a0c48 100644 --- a/libshiboken/basewrapper.h +++ b/libshiboken/basewrapper.h @@ -69,6 +69,7 @@ struct SbkBaseWrapperType; * The implementation of this function is auto generated by the generator and you don't need to care about it. */ typedef void* (*SpecialCastFunction)(PyObject*, SbkBaseWrapperType*); +typedef const char* (*TypeNameFunction)(const void*); LIBSHIBOKEN_API PyAPI_DATA(PyTypeObject) SbkBaseWrapperType_Type; LIBSHIBOKEN_API PyAPI_DATA(SbkBaseWrapperType) SbkBaseWrapper_Type; @@ -81,6 +82,7 @@ struct LIBSHIBOKEN_API SbkBaseWrapperType MultipleInheritanceInitFunction mi_init; /// Special cast function, null if this class doesn't have multiple inheritance. SpecialCastFunction mi_specialcast; + TypeNameFunction type_name_func; }; /// Base Python object for all the wrapped C++ classes. @@ -194,7 +196,7 @@ LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) SbkBaseWrapper_New(SbkBaseWrapperType* instanceType, const void* cptr, bool hasOwnership = true, - bool containsCppWrapper = false); + bool isExactType = false); LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) SbkBaseWrapper_TpNew(PyTypeObject* subtype, PyObject*, PyObject*); |