summaryrefslogtreecommitdiffstats
path: root/libshiboken/bindingmanager.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-12-08 11:59:57 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-12-08 12:09:49 -0300
commitf38e34a3a987f15e947d45efb0ef7ffeb7f3275e (patch)
tree4908d7da9ea33cb6e19378633e0a401b57c0ef65 /libshiboken/bindingmanager.h
parentdc1ca0f9a9aa216973a6ab1f458f0f965033530d (diff)
downloadshiboken-f38e34a3a987f15e947d45efb0ef7ffeb7f3275e.tar.gz
shiboken-f38e34a3a987f15e947d45efb0ef7ffeb7f3275e.tar.xz
shiboken-f38e34a3a987f15e947d45efb0ef7ffeb7f3275e.zip
Renamed a lot of Shiboken things with "Py" prefix to use "Sbk" prefix.
To avoid confusion of Python stuff with Shiboken generated stuff. For example: a C++ class called "String" would have the PyString_Type wrapper generated for it, mixing with the proper Python PyString_Type; now the generate code will have things like SbkString_Type, SbkString_New, SbkString_someMethod, and so on. PyBaseWrapper and its variants were renamed to SbkBaseWrapper. PyType<T>() is now SbkType<T>() PyEnumObject was renamed to SbkEnumObject.
Diffstat (limited to 'libshiboken/bindingmanager.h')
-rw-r--r--libshiboken/bindingmanager.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h
index 602066f9..05e11541 100644
--- a/libshiboken/bindingmanager.h
+++ b/libshiboken/bindingmanager.h
@@ -41,7 +41,7 @@
namespace Shiboken
{
-struct PyBaseWrapper;
+struct SbkBaseWrapper;
class LIBSHIBOKEN_API BindingManager
{
@@ -55,21 +55,21 @@ public:
PyObject* getOverride(const void* cptr, const char* methodName);
/// Invalidate the Python wrapper and removes the relations from C++ pointers to the Python wrapper.
- void invalidateWrapper(PyBaseWrapper* wrapper);
- /// Convenience method to call invalidateWrapper with a properly cast PyBaseWrapper.
+ void invalidateWrapper(SbkBaseWrapper* wrapper);
+ /// Convenience method to call invalidateWrapper with a properly cast SbkBaseWrapper.
inline void invalidateWrapper(PyObject* wrapper)
{
- invalidateWrapper(reinterpret_cast<PyBaseWrapper*>(wrapper));
+ invalidateWrapper(reinterpret_cast<SbkBaseWrapper*>(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(PyBaseWrapper* wrapper);
- /// Convenience method to call transferOwnershipToCpp with a properly cast PyBaseWrapper.
+ void transferOwnershipToCpp(SbkBaseWrapper* wrapper);
+ /// Convenience method to call transferOwnershipToCpp with a properly cast SbkBaseWrapper.
inline void transferOwnershipToCpp(PyObject* wrapper)
{
- transferOwnershipToCpp(reinterpret_cast<PyBaseWrapper*>(wrapper));
+ transferOwnershipToCpp(reinterpret_cast<SbkBaseWrapper*>(wrapper));
}
private:
@@ -86,3 +86,4 @@ private:
} // namespace Shiboken
#endif // BINDINGMANAGER_H
+