1 /* -*- Mode: C; c-basic-offset: 4 -*-
2 * vim: tabstop=4 shiftwidth=4 expandtab
4 * Copyright (C) 2005-2009 Johan Dahlin <johan@gnome.org>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
22 #ifndef __PYGI_INFO_H__
23 #define __PYGI_INFO_H__
27 #include <girepository.h>
31 gboolean pygi_g_struct_info_is_simple (GIStructInfo *struct_info);
36 extern PyTypeObject PyGIBaseInfo_Type;
37 extern PyTypeObject PyGICallableInfo_Type;
38 extern PyTypeObject PyGICallbackInfo_Type;
39 extern PyTypeObject PyGIFunctionInfo_Type;
40 extern PyTypeObject PyGIRegisteredTypeInfo_Type;
41 extern PyTypeObject PyGIStructInfo_Type;
42 extern PyTypeObject PyGIEnumInfo_Type;
43 extern PyTypeObject PyGIObjectInfo_Type;
44 extern PyTypeObject PyGIInterfaceInfo_Type;
45 extern PyTypeObject PyGIConstantInfo_Type;
46 extern PyTypeObject PyGIValueInfo_Type;
47 extern PyTypeObject PyGIFieldInfo_Type;
48 extern PyTypeObject PyGIUnresolvedInfo_Type;
49 extern PyTypeObject PyGIVFuncInfo_Type;
50 extern PyTypeObject PyGIUnionInfo_Type;
51 extern PyTypeObject PyGIBoxedInfo_Type;
52 extern PyTypeObject PyGIErrorDomainInfo_Type;
53 extern PyTypeObject PyGISignalInfo_Type;
54 extern PyTypeObject PyGIPropertyInfo_Type;
55 extern PyTypeObject PyGIArgInfo_Type;
56 extern PyTypeObject PyGITypeInfo_Type;
58 #define PyGIBaseInfo_GET_GI_INFO(object) g_base_info_ref(((PyGIBaseInfo *)object)->info)
60 PyObject* _pygi_info_new (GIBaseInfo *info);
61 GIBaseInfo* _pygi_object_get_gi_info (PyObject *object,
64 gchar* _pygi_g_base_info_get_fullname (GIBaseInfo *info);
66 gsize _pygi_g_type_tag_size (GITypeTag type_tag);
67 gsize _pygi_g_type_info_size (GITypeInfo *type_info);
69 void _pygi_info_register_types (PyObject *m);
71 gboolean _pygi_is_python_keyword (const gchar *name);
75 #endif /* __PYGI_INFO_H__ */