aboutsummaryrefslogtreecommitdiff
path: root/arken/src/plugin_load.c
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2026-01-07 00:26:32 -0700
committerJosh Rahm <joshuarahm@gmail.com>2026-01-07 00:26:32 -0700
commit4847aa0b4a6f945c24e1523e729652271bbc9680 (patch)
tree9ffac8b1934153cbde6f6814277f80c337d937b1 /arken/src/plugin_load.c
parent37e5037b68fb35276f0c426779f61aa278d5b21b (diff)
downloadmontis-4847aa0b4a6f945c24e1523e729652271bbc9680.tar.gz
montis-4847aa0b4a6f945c24e1523e729652271bbc9680.tar.bz2
montis-4847aa0b4a6f945c24e1523e729652271bbc9680.zip
[rebrand] Arken -> Ark, Plugin -> Soul, Erebor -> Cross
Diffstat (limited to 'arken/src/plugin_load.c')
-rw-r--r--arken/src/plugin_load.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/arken/src/plugin_load.c b/arken/src/plugin_load.c
deleted file mode 100644
index 6525969..0000000
--- a/arken/src/plugin_load.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include "plugin.h"
-
-#include <dlfcn.h>
-#include <stdio.h>
-
-#include "plugin_exports.h"
-
-int load_plugin_from_dl_(dlhandle_t dl, plugin_t *plug)
-{
- void *ptr;
- int ret = 0;
-
- const char **name = dlsym(dl, "plugin_name");
- if (name) {
- plug->plugin_name = *name;
- }
- else {
- plug->plugin_name = NULL;
- }
-
- plug->state = NULL;
- plug->library_handle = dl;
-
-#define LOAD_SYM(ret_type, sym, args) \
- do { \
- ptr = dlsym(dl, #sym); \
- if (!ptr) { \
- fprintf(stderr, "Plugin missing %s\n", #sym); \
- ret |= 1; \
- } \
- plug->sym = (ret_type(*) args)ptr; \
- } while (0);
-
- MONTIS_PLUGIN_EXPORTS(LOAD_SYM);
-
-#undef LOAD_SYM
-
- return ret;
-}