summaryrefslogtreecommitdiffstats
path: root/libshiboken/bindingmanager.h
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-29 11:02:40 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-29 11:23:07 -0300
commit43bd25e442557d825b66d979ea9460edede442f4 (patch)
treeb8f91f4d31303bb5c5f561836a5736991576fcd3 /libshiboken/bindingmanager.h
parent2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd (diff)
downloadshiboken-43bd25e442557d825b66d979ea9460edede442f4.tar.gz
shiboken-43bd25e442557d825b66d979ea9460edede442f4.tar.xz
shiboken-43bd25e442557d825b66d979ea9460edede442f4.zip
Implement support to object list on ownserhsip functions.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/bindingmanager.h')
-rw-r--r--libshiboken/bindingmanager.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h
index 2f486829..cec4a78f 100644
--- a/libshiboken/bindingmanager.h
+++ b/libshiboken/bindingmanager.h
@@ -47,21 +47,14 @@ public:
/// Invalidate the Python wrapper and removes the relations from C++ pointers to the Python wrapper.
void invalidateWrapper(SbkBaseWrapper* wrapper);
/// Convenience method to call invalidateWrapper with a properly cast SbkBaseWrapper.
- inline void invalidateWrapper(PyObject* wrapper)
- {
- invalidateWrapper(reinterpret_cast<SbkBaseWrapper*>(wrapper));
- }
+ void invalidateWrapper(PyObject* wrapper);
/// Convenience method to invalidate the Python wrapper for a C++ wrapped object. Do nothing if C++ pointer has no Python wrapper.
void invalidateWrapper(const void* cptr);
/// Transfers the ownership of a Python wrapper to C++.
void transferOwnershipToCpp(SbkBaseWrapper* wrapper);
/// Convenience method to call transferOwnershipToCpp with a properly cast SbkBaseWrapper.
- inline void transferOwnershipToCpp(PyObject* wrapper)
- {
- transferOwnershipToCpp(reinterpret_cast<SbkBaseWrapper*>(wrapper));
- }
-
+ void transferOwnershipToCpp(PyObject* wrapper);
void addClassInheritance(SbkBaseWrapperType* parent, SbkBaseWrapperType* child);
SbkBaseWrapperType* resolveType(void* cptr, SbkBaseWrapperType* type);