aboutsummaryrefslogtreecommitdiff
path: root/hacking.h
diff options
context:
space:
mode:
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);
+