summaryrefslogtreecommitdiff
path: root/girepository/girepository-private.h
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-07-28 09:01:33 -0300
committerJohan Dahlin <johan@gnome.org>2010-07-28 09:01:33 -0300
commitcbdd9ee09e367e4dd76d6d8a9a20bf714f794c20 (patch)
treecb8fa63445581c8459d4df2492eb87dcea6407aa /girepository/girepository-private.h
parentf78812bca2afcdbe7ff9434ae0607cb553bce61e (diff)
downloadgobject-introspection-cbdd9ee09e367e4dd76d6d8a9a20bf714f794c20.tar.gz
[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.
Diffstat (limited to 'girepository/girepository-private.h')
-rw-r--r--girepository/girepository-private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/girepository/girepository-private.h b/girepository/girepository-private.h
index 8382f408..e2810d26 100644
--- a/girepository/girepository-private.h
+++ b/girepository/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__ */