aboutsummaryrefslogtreecommitdiff
path: root/frontend/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/plugin.h')
-rw-r--r--frontend/plugin.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/frontend/plugin.h b/frontend/plugin.h
new file mode 100644
index 0000000..48ab719
--- /dev/null
+++ b/frontend/plugin.h
@@ -0,0 +1,12 @@
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
+
+#define PLUGIN_DL_BASE 0xfbad0000
+
+enum builtint_plugins_e {
+ PLUGIN_GPU,
+ PLUGIN_SPU,
+ PLUGIN_CDR,
+ PLUGIN_PAD,
+};
+
+void *plugin_link(enum builtint_plugins_e id, const char *sym);