summaryrefslogtreecommitdiffstats
path: root/libshiboken/bindingmanager.h
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-24 16:06:48 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-24 16:40:07 -0300
commit2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd (patch)
tree95e340b5f152b26b9c5df1f2405e81f2b32ef0a5 /libshiboken/bindingmanager.h
parent2e715ed74316704cba426e99ba7fe06ace038ed4 (diff)
downloadshiboken-2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd.tar.gz
shiboken-2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd.tar.xz
shiboken-2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd.zip
Created a new rule to parent ownership.
In the new rule if the child object is a Shiboken wrapper class, the object is not invalidade during the parent destructions, the binding manager will wait for object destructor to invalidade the wrapper. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/bindingmanager.h')
-rw-r--r--libshiboken/bindingmanager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h
index d6985ccc..2f486829 100644
--- a/libshiboken/bindingmanager.h
+++ b/libshiboken/bindingmanager.h
@@ -64,6 +64,10 @@ public:
void addClassInheritance(SbkBaseWrapperType* parent, SbkBaseWrapperType* child);
SbkBaseWrapperType* resolveType(void* cptr, SbkBaseWrapperType* type);
+
+ /// Called by wrapper destructor
+ void destroyWrapper(const void* cptr);
+ void destroyWrapper(SbkBaseWrapper* wrapper);
private:
~BindingManager();
// disable copy