diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-07-16 17:31:08 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:04 -0300 |
commit | 5d61dc4c2d080c1e843d8958169c924c8b31f4de (patch) | |
tree | 93d12d7e4ea333f9c55935d5b070b4e8796436d0 /libshiboken/basewrapper.h | |
parent | a456b8d969eb81331cf35cfbfab8690072bae692 (diff) |
Introduces new API to create and import Python modules.
The Shiboken::Module namespace also provides management of module types,
including the communication of types among dependent modules.
Module::create() will call Shiboken::init(), so this can be removed
from the generated module's source code.
This deprecates the old Shiboken::importModule() function.
The generation of module initialization code was updated to use the new
Shiboken::Module functions.
Diffstat (limited to 'libshiboken/basewrapper.h')
-rw-r--r-- | libshiboken/basewrapper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.h b/libshiboken/basewrapper.h index f9f2a36a3..4d08b7cd4 100644 --- a/libshiboken/basewrapper.h +++ b/libshiboken/basewrapper.h @@ -106,6 +106,9 @@ void callCppDestructor(void* cptr) delete reinterpret_cast<T*>(cptr); } +/** + * Shiboken::importModule is DEPRECATED. Use Shiboken::Module::import() instead. + */ LIBSHIBOKEN_API bool importModule(const char* moduleName, PyTypeObject*** cppApiPtr); LIBSHIBOKEN_API void setErrorAboutWrongArguments(PyObject* args, const char* funcName, const char** cppOverloads); |