[girffi] Clean up API, add g_function_info_prep_invoker
authorColin Walters <walters@verbum.org>
Mon, 7 Dec 2009 16:54:18 +0000 (11:54 -0500)
committerColin Walters <walters@verbum.org>
Wed, 16 Dec 2009 23:17:12 +0000 (18:17 -0500)
commit8df06489020fd43499f16e8b5cb2ec14e1f3fe29
tree6d792ed556e4a0df89a955e3c28d9f30f67ea0aa
parentdc93d485fab8965dd65fed00a968c41bf17262cb
[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
girepository/Makefile.am
girepository/ginvoke.c
girepository/girffi-private.h [new file with mode: 0644]
girepository/girffi.c
girepository/girffi.h
girepository/giroffsets.c