diff options
author | Simon van der Linden <svdlinden@src.gnome.org> | 2009-08-24 17:49:12 +0200 |
---|---|---|
committer | Simon van der Linden <svdlinden@src.gnome.org> | 2009-08-24 17:49:12 +0200 |
commit | 0049cd4bcf53db0c3365b678ae27acb334f71953 (patch) | |
tree | 0c7fbb83d56bc5d48124d22b8a1fbb79eb6c069e | |
parent | 260837fc177222b3e58f742a649446dc05577972 (diff) | |
download | pygobject-0049cd4bcf53db0c3365b678ae27acb334f71953.tar.gz |
Move a few declarations to some more appropriate header filesgsoc2009
-rw-r--r-- | gi/pygi-info.h | 14 | ||||
-rw-r--r-- | gi/pygi-private.h | 23 | ||||
-rw-r--r-- | 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 a566d710..3fa8632a 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 aa923118..9404fde7 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 e0376a3c..d8eb8cfd 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 |