about summary refs log tree commit diff stats
path: root/src/include/callback.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-03 16:43:42 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-03 16:43:42 +0100
commitf4829a8ce42b1abbcc8621802d6c6fad3a56cd5d (patch)
tree211276c3587721126ded00be46487bf23b605591 /src/include/callback.h
parentf73fbd3cee38b4c0086c934d73972375c9c8c7d6 (diff)
downloadbox64-f4829a8ce42b1abbcc8621802d6c6fad3a56cd5d.tar.gz
box64-f4829a8ce42b1abbcc8621802d6c6fad3a56cd5d.zip
More infrastructure added to elf and x64 emu
Diffstat (limited to 'src/include/callback.h')
-rwxr-xr-xsrc/include/callback.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/callback.h b/src/include/callback.h
new file mode 100755
index 00000000..b9482fc1
--- /dev/null
+++ b/src/include/callback.h
@@ -0,0 +1,12 @@
+#ifndef __CALLBACK_H__
+#define __CALLBACK_H__
+
+#include <stdint.h>
+
+typedef struct x64emu_s x64emu_t;
+
+uint64_t RunFunction(box64context_t *context, uintptr_t fnc, int nargs, ...);
+// use emu state to run function
+uint64_t RunFunctionWithEmu(x64emu_t *emu, int QuitOnLongJump, uintptr_t fnc, int nargs, ...);
+
+#endif //__CALLBACK_H__
\ No newline at end of file