From 899718c93c6524278c3abe4e23425cf000f805d4 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Wed, 28 Jul 2010 09:01:33 -0300 Subject: [PATCH] [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. --- girepository-private.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/girepository-private.h b/girepository-private.h index 8382f408f..e2810d26e 100644 --- a/girepository-private.h +++ b/girepository-private.h @@ -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); +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__ */