[girepository-private] Add ffi declarations

Add declarations for the ffi closure api we're using, this silents
GCC warnings on systems with broken ffi headers.
This commit is contained in:
Johan Dahlin 2010-07-28 09:01:33 -03:00
parent c93fbff870
commit 899718c93c

View File

@ -110,4 +110,13 @@ GIVFuncInfo * _g_base_info_find_vfunc (GIRealInfo *rinfo,
ffi_type * _gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean is_pointer); ffi_type * _gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean is_pointer);
extern ffi_status ffi_prep_closure_loc (ffi_closure *,
ffi_cif *,
void (*fun)(ffi_cif *, void *, void **, void *),
void *user_data,
void *codeloc);
extern void *ffi_closure_alloc (size_t size, void **code);
extern void ffi_closure_free (void *);
#endif /* __GIREPOSITORY_PRIVATE_H__ */ #endif /* __GIREPOSITORY_PRIVATE_H__ */