From 2fb8dc632b4c007033d9a40c6d6ab060d1ea1fe3 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 31 Jan 2016 14:46:55 +0100 Subject: Working version --- hacking.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hacking.h (limited to 'hacking.h') diff --git a/hacking.h b/hacking.h new file mode 100644 index 0000000..5498e03 --- /dev/null +++ b/hacking.h @@ -0,0 +1,10 @@ +typedef struct { + ffi_cif* cif; + void(*fp)(void); +} Callable; + +Callable* funcnameToCallable(char* fname, + uint8_t n_params, ffi_type** parameter_types, ffi_type* return_type); + +void call(Callable*, void** parameters, void* return_val); + -- cgit v1.2.3