[gobject-introspection] [girepository-private] Add ffi declarations
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [girepository-private] Add ffi declarations
- Date: Wed, 28 Jul 2010 12:02:31 +0000 (UTC)
commit cbdd9ee09e367e4dd76d6d8a9a20bf714f794c20
Author: Johan Dahlin <johan gnome org>
Date: Wed Jul 28 09:01:33 2010 -0300
[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/girepository-private.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/girepository/girepository-private.h b/girepository/girepository-private.h
index 8382f40..e2810d2 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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]