1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2 * GObject introspection: Private headers
4 * Copyright (C) 2010 Johan Dahlin
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 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
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef __GIREPOSITORY_PRIVATE_H__
23 #define __GIREPOSITORY_PRIVATE_H__
28 #define __GIREPOSITORY_H_INSIDE__
30 #include <gibaseinfo.h>
31 #include <girepository.h>
32 #include <gitypelib.h>
34 typedef struct _GIRealInfo GIRealInfo;
37 * We just use one structure for all of the info object
38 * types; in general, we should be reading data directly
39 * from the typelib, and not having computed data in
40 * per-type structures.
44 /* Keep this part in sync with GIUnresolvedInfo below */
47 GIRepository *repository;
48 GIBaseInfo *container;
50 /* Resolved specific */
55 guint32 type_is_embedded : 1; /* Used by GITypeInfo */
56 guint32 reserved : 31;
58 gpointer reserved2[4];
61 struct _GIUnresolvedInfo
63 /* Keep this part in sync with GIBaseInfo above */
66 GIRepository *repository;
67 GIBaseInfo *container;
69 /* Unresolved specific */
72 const gchar *namespace;
75 void _g_info_init (GIRealInfo *info,
77 GIRepository *repository,
78 GIBaseInfo *container,
82 GIBaseInfo * _g_info_from_entry (GIRepository *repository,
86 GIBaseInfo * _g_info_new_full (GIInfoType type,
87 GIRepository *repository,
88 GIBaseInfo *container,
92 GITypeInfo * _g_type_info_new (GIBaseInfo *container,
96 void _g_type_info_init (GIBaseInfo *info,
97 GIBaseInfo *container,
101 GIFunctionInfo * _g_base_info_find_method (GIBaseInfo *base,
106 GIVFuncInfo * _g_base_info_find_vfunc (GIRealInfo *rinfo,
111 extern ffi_status ffi_prep_closure_loc (ffi_closure *,
113 void (*fun)(ffi_cif *, void *, void **, void *),
116 extern void *ffi_closure_alloc (size_t size, void **code);
117 extern void ffi_closure_free (void *);
120 #endif /* __GIREPOSITORY_PRIVATE_H__ */