[pygobject/gsoc2009] Move a few declarations to some more appropriate header files



commit 0049cd4bcf53db0c3365b678ae27acb334f71953
Author: Simon van der Linden <svdlinden src gnome org>
Date:   Mon Aug 24 17:49:12 2009 +0200

    Move a few declarations to some more appropriate header files

 gi/pygi-info.h       |   14 ++++++++++++++
 gi/pygi-private.h    |   23 -----------------------
 gi/pygi-repository.h |    4 ++++
 3 files changed, 18 insertions(+), 23 deletions(-)
---
diff --git a/gi/pygi-info.h b/gi/pygi-info.h
index a566d71..3fa8632 100644
--- a/gi/pygi-info.h
+++ b/gi/pygi-info.h
@@ -33,6 +33,20 @@ gboolean pygi_g_struct_info_is_simple (GIStructInfo *struct_info);
 
 /* Private */
 
+extern PyTypeObject PyGIBaseInfo_Type;
+extern PyTypeObject PyGICallableInfo_Type;
+extern PyTypeObject PyGIFunctionInfo_Type;
+extern PyTypeObject PyGIRegisteredTypeInfo_Type;
+extern PyTypeObject PyGIStructInfo_Type;
+extern PyTypeObject PyGIEnumInfo_Type;
+extern PyTypeObject PyGIObjectInfo_Type;
+extern PyTypeObject PyGIInterfaceInfo_Type;
+extern PyTypeObject PyGIConstantInfo_Type;
+extern PyTypeObject PyGIValueInfo_Type;
+extern PyTypeObject PyGIFieldInfo_Type;
+extern PyTypeObject PyGIUnresolvedInfo_Type;
+
+
 PyObject* _pygi_info_new (GIBaseInfo *info);
 
 gchar* _pygi_g_base_info_get_fullname (GIBaseInfo *info);
diff --git a/gi/pygi-private.h b/gi/pygi-private.h
index aa92311..9404fde 100644
--- a/gi/pygi-private.h
+++ b/gi/pygi-private.h
@@ -23,29 +23,6 @@
 G_BEGIN_DECLS
 
 
-/* Python types */
-
-extern PyTypeObject PyGIRepository_Type;
-
-extern PyTypeObject PyGIBaseInfo_Type;
-extern PyTypeObject PyGICallableInfo_Type;
-extern PyTypeObject PyGIFunctionInfo_Type;
-extern PyTypeObject PyGIRegisteredTypeInfo_Type;
-extern PyTypeObject PyGIStructInfo_Type;
-extern PyTypeObject PyGIEnumInfo_Type;
-extern PyTypeObject PyGIObjectInfo_Type;
-extern PyTypeObject PyGIInterfaceInfo_Type;
-extern PyTypeObject PyGIConstantInfo_Type;
-extern PyTypeObject PyGIValueInfo_Type;
-extern PyTypeObject PyGIFieldInfo_Type;
-extern PyTypeObject PyGIUnresolvedInfo_Type;
-
-
-/* Errors */
-
-extern PyObject *PyGIRepositoryError;
-
-
 /* Functions (defined in gimodule.c) */
 
 PyObject* pygi_type_find_by_name (const char *namespace_,
diff --git a/gi/pygi-repository.h b/gi/pygi-repository.h
index e0376a3..d8eb8cf 100644
--- a/gi/pygi-repository.h
+++ b/gi/pygi-repository.h
@@ -28,6 +28,10 @@ G_BEGIN_DECLS
 
 /* Private */
 
+extern PyTypeObject PyGIRepository_Type;
+
+extern PyObject *PyGIRepositoryError;
+
 void _pygi_repository_register_types (PyObject *m);
 
 G_END_DECLS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]