aboutsummaryrefslogtreecommitdiff
path: root/hacking.h
diff options
context:
space:
mode:
authorCamil Staps2016-01-31 14:46:55 +0100
committerCamil Staps2016-01-31 14:46:55 +0100
commit2fb8dc632b4c007033d9a40c6d6ab060d1ea1fe3 (patch)
tree1877df4581887fd0e79aa396b64e61b28ada87a3 /hacking.h
parentMakefile (diff)
Working version
Diffstat (limited to 'hacking.h')
-rw-r--r--hacking.h10
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);
+