diff options
author | Camil Staps | 2016-01-31 14:46:55 +0100 |
---|---|---|
committer | Camil Staps | 2016-01-31 14:46:55 +0100 |
commit | 2fb8dc632b4c007033d9a40c6d6ab060d1ea1fe3 (patch) | |
tree | 1877df4581887fd0e79aa396b64e61b28ada87a3 /hacking.h | |
parent | Makefile (diff) |
Working version
Diffstat (limited to 'hacking.h')
-rw-r--r-- | hacking.h | 10 |
1 files changed, 10 insertions, 0 deletions
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); + |