about summary refs log tree commit diff stats
path: root/src/include/core.h
diff options
context:
space:
mode:
authorhoward97 <837971940@qq.com>2024-03-26 00:42:01 +0800
committerGitHub <noreply@github.com>2024-03-25 17:42:01 +0100
commit50caca8fdcb1316571849cfb2f293b929d1089bd (patch)
tree8b20567ed267f372e85661af6ef91916cb0a8fd3 /src/include/core.h
parent1dca97b4d3663af54e48057c63c7d4b17b75dd85 (diff)
downloadbox64-50caca8fdcb1316571849cfb2f293b929d1089bd.tar.gz
box64-50caca8fdcb1316571849cfb2f293b929d1089bd.zip
[REFACTOR] Refactor main.c (#1362)
Co-authored-by: howard <howardzz@foxmail.com>
Diffstat (limited to 'src/include/core.h')
-rw-r--r--src/include/core.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/core.h b/src/include/core.h
new file mode 100644
index 00000000..c9fec47c
--- /dev/null
+++ b/src/include/core.h
@@ -0,0 +1,13 @@
+#ifndef __CORE_H
+#define __CORE_H
+
+#include "custommem.h"
+#include "callback.h"
+#include "library.h"
+
+// exec : 0 = lib, 1 = exec
+int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elfheader_t** elfheader, int exec);
+
+int emulate(x64emu_t* emu, elfheader_t* elf_header);
+
+#endif // __CORE_H
\ No newline at end of file