diff options
author | Colin Walters <walters@verbum.org> | 2009-12-07 11:54:18 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-12-16 18:17:12 -0500 |
commit | 8df06489020fd43499f16e8b5cb2ec14e1f3fe29 (patch) | |
tree | 6d792ed556e4a0df89a955e3c28d9f30f67ea0aa /girepository/giroffsets.c | |
parent | dc93d485fab8965dd65fed00a968c41bf17262cb (diff) | |
download | gobject-introspection-8df06489020fd43499f16e8b5cb2ec14e1f3fe29.tar.gz |
[girffi] Clean up API, add g_function_info_prep_invoker
Rather than having bindings use g_function_info_invoke, which is basically
a toy/demo API, export a convenience utility function which takes the introspection
information and sets up things we need to pass to libffi.
Then invocation can be done directly to libffi by a binding.
As part of this work, remove some (unused by gjs) public functions from the
girffi API, and instead export a function to map to libffi which can work
semi-correctly.
https://bugzilla.gnome.org/show_bug.cgi?id=604074
Diffstat (limited to 'girepository/giroffsets.c')
-rw-r--r-- | girepository/giroffsets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/girepository/giroffsets.c b/girepository/giroffsets.c index 8354bc51..96ff5764 100644 --- a/girepository/giroffsets.c +++ b/girepository/giroffsets.c @@ -18,7 +18,7 @@ * Boston, MA 02111-1307, USA. */ -#include "girffi.h" +#include "girffi-private.h" #include "girnode.h" /* The C standard specifies that an enumeration can be any char or any signed @@ -262,7 +262,7 @@ get_type_size_alignment (GIrNodeType *type, } else { - type_ffi = g_ir_ffi_get_ffi_type (type->tag); + type_ffi = g_ir_ffi_get_ffi_type (type->tag, type->is_pointer); if (type_ffi == &ffi_type_void) { |