summaryrefslogtreecommitdiffstats
path: root/libshiboken/bindingmanager.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-11 17:48:17 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-13 13:55:02 -0200
commit1bfff6f2f2549dd3a4e068e5bd767f72d8c7bd8b (patch)
treef9fc2753fd512326e9cdd025bdb50327daf59248 /libshiboken/bindingmanager.h
parent9e7c52bbef25fb118452aacae4f8e05ca5c9cf9a (diff)
downloadshiboken-1bfff6f2f2549dd3a4e068e5bd767f72d8c7bd8b.tar.gz
shiboken-1bfff6f2f2549dd3a4e068e5bd767f72d8c7bd8b.tar.xz
shiboken-1bfff6f2f2549dd3a4e068e5bd767f72d8c7bd8b.zip
Fix object initialization.
The C++ object instanciation was made in tp_init function instead of tp_new function. Now tp_new just create a useless python object which will be filled in the tp_init function. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'libshiboken/bindingmanager.h')
-rw-r--r--libshiboken/bindingmanager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h
index 05e11541..ec5a936f 100644
--- a/libshiboken/bindingmanager.h
+++ b/libshiboken/bindingmanager.h
@@ -49,7 +49,8 @@ public:
static BindingManager& instance();
bool hasWrapper(const void *cptr);
- void assignWrapper(PyObject* wrapper, const void* cptr);
+
+ void registerWrapper(SbkBaseWrapper* pyobj);
void releaseWrapper(PyObject* wrapper);
PyObject* retrieveWrapper(const void* cptr);
PyObject* getOverride(const void* cptr, const char* methodName);