aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/bindingmanager.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-25 18:46:33 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-25 19:08:26 -0300
commitffbb8bb1df621ab3f31f859e62d21e06f9ed8a80 (patch)
tree870de0043ce4c492987767c319caac3baca197a3 /libshiboken/bindingmanager.h
parent9f228238498dea95db7eb8c2f0b21186ea98d206 (diff)
Added the invalidateWrapper method to BindingManager.
It sets the wrapper as invalid and removes the relation of C++ objects to the Python wrapper from the mappings. Moved BindingManager::releaseWrapper(void*) to BindingManagerPrivate, since it should only be used by releaseWrapper(PyObject*). Modified includes on conversions.h to use quotes instead of < and >. Reviewed by Hugo Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'libshiboken/bindingmanager.h')
-rw-r--r--libshiboken/bindingmanager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h
index d082c7b5d..aba264fd5 100644
--- a/libshiboken/bindingmanager.h
+++ b/libshiboken/bindingmanager.h
@@ -48,11 +48,13 @@ public:
bool hasWrapper(const void *cptr);
void assignWrapper(PyObject* wrapper, const void* cptr);
- void releaseWrapper(void* cptr);
void releaseWrapper(PyObject* wrapper);
PyObject* retrieveWrapper(const void* cptr);
PyObject* getOverride(const void* cptr, const char* methodName);
+ /// Invalidate the Python wrapper and removes the relations from C++ objects the Python wrapper.
+ void invalidateWrapper(PyObject* wrapper);
+
private:
~BindingManager();
// disable copy