From 42154013b5ecd075288c7ccc9fe341875ad3431b Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 1 Mar 2010 17:28:27 -0300 Subject: Wrapper meta type can now point to converter extensions. The SbkBaseWrapperType structure now stores pointers to functions that extend the type Converter methods 'isConvertible' and 'toCpp'. This is used when a module is extended by another module that defines a conversion operator for a class in the first module. --- libshiboken/basewrapper.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libshiboken/basewrapper.cpp') diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index fe9b73b1d..358d6b249 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -231,6 +231,8 @@ SbkBaseWrapperType_TpNew(PyTypeObject* metatype, PyObject* args, PyObject* kwds) newType->mi_init = parentType->mi_init; newType->mi_specialcast = parentType->mi_specialcast; newType->type_name_func = parentType->type_name_func; + newType->ext_isconvertible = parentType->ext_isconvertible; + newType->ext_tocpp = parentType->ext_tocpp; return reinterpret_cast(newType); } @@ -357,7 +359,9 @@ SbkBaseWrapperType SbkBaseWrapper_Type = { { { /*mi_offsets*/ 0, /*mi_init*/ 0, /*mi_specialcast*/ 0, - /*type_name_func*/ 0 + /*type_name_func*/ 0, + /*ext_isconvertible*/ 0, + /*ext_tocpp*/ 0 }; void initShiboken() -- cgit v1.2.3