summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-03-29 18:13:45 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-03-30 17:46:16 -0300
commit1da0a532711cfd3165d5c3d2723fa715c4e31175 (patch)
treef2cc04c3cf37be68350d7cff6944c6fa14e89df5
parentc0c093d485798aec96ea7a7230c0639797cd9830 (diff)
downloadshiboken-1da0a532711cfd3165d5c3d2723fa715c4e31175.tar.gz
shiboken-1da0a532711cfd3165d5c3d2723fa715c4e31175.tar.xz
shiboken-1da0a532711cfd3165d5c3d2723fa715c4e31175.zip
Class Shiboken::ParentInfo doesn't need to be exported.
It was moved to basewrapper private header.
-rw-r--r--libshiboken/basewrapper.h18
-rw-r--r--libshiboken/basewrapper_p.h16
2 files changed, 18 insertions, 16 deletions
diff --git a/libshiboken/basewrapper.h b/libshiboken/basewrapper.h
index c2b1e616..2386646c 100644
--- a/libshiboken/basewrapper.h
+++ b/libshiboken/basewrapper.h
@@ -44,22 +44,6 @@
namespace Shiboken
{
-struct SbkBaseWrapper;
-
-/// Linked list of SbkBaseWrapper pointers
-typedef std::list<SbkBaseWrapper*> ChildrenList;
-
-/// Struct used to store information about object parent and children.
-struct LIBSHIBOKEN_API ParentInfo
-{
- /// Default ctor.
- ParentInfo() : parent(0) {}
- /// Pointer to parent object.
- SbkBaseWrapper* parent;
- /// List of object children.
- ChildrenList children;
-};
-
/**
* This mapping associates a method and argument of an wrapper object with the wrapper of
* said argument when it needs the binding to help manage its reference counting.
@@ -115,6 +99,8 @@ struct LIBSHIBOKEN_API SbkBaseWrapperType
int is_multicpp:1;
};
+struct ParentInfo;
+
/// Base Python object for all the wrapped C++ classes.
struct LIBSHIBOKEN_API SbkBaseWrapper
{
diff --git a/libshiboken/basewrapper_p.h b/libshiboken/basewrapper_p.h
index 555f40d4..a1c69581 100644
--- a/libshiboken/basewrapper_p.h
+++ b/libshiboken/basewrapper_p.h
@@ -134,6 +134,22 @@ inline std::list<SbkBaseWrapperType*> getCppBaseClasses(PyTypeObject* baseType)
return visitor.bases();
}
+struct SbkBaseWrapper;
+
+/// Linked list of SbkBaseWrapper pointers
+typedef std::list<SbkBaseWrapper*> ChildrenList;
+
+/// Struct used to store information about object parent and children.
+struct ParentInfo
+{
+ /// Default ctor.
+ ParentInfo() : parent(0) {}
+ /// Pointer to parent object.
+ SbkBaseWrapper* parent;
+ /// List of object children.
+ ChildrenList children;
+};
+
}
#endif