aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugins.h
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-11-17 20:57:42 -0600
committerLibravatar bigfoot547 <[email protected]>2025-11-17 20:57:42 -0600
commit2b44f885e97b0d8902014a5a61f6687fa2931dec (patch)
tree9e3ecfb3858f33a3922f47bde8a2163d9deed95e /include/plugins.h
parentbuild config + more plugin stuff (diff)
ignore this commit
Diffstat (limited to 'include/plugins.h')
-rw-r--r--include/plugins.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/plugins.h b/include/plugins.h
new file mode 100644
index 0000000..f6865e5
--- /dev/null
+++ b/include/plugins.h
@@ -0,0 +1,24 @@
+#ifndef PTX_PLUGINS_H_INCLUDED
+#define PTX_PLUGINS_H_INCLUDED
+
+#include "macros.h"
+
+typedef struct ptx__plugin_manager_tag ptx_plugin_manager_t;
+typedef struct ptx__plugin_handle_tag ptx_plugin_t;
+
+/* for testing */
+#ifdef _CLANGD
+#undef PTX_PLUGIN
+#define PTX_PLUGIN 1
+#endif
+
+PTX_INTERNAL(ptx_plugin_manager_t *ptx_plugin_manager_new(void) ATTR_MALLOC() ATTR_MALLOC((ptx_plugin_manager_free, 1)) ATTR_WUR);
+PTX_INTERNAL(void ptx_plugin_manager_free(ptx_plugin_manager_t *mgr));
+
+PTX_INTERNAL(int ptx_plugin_manager_load_dir(ptx_plugin_manager_t *mgr, const char *dir));
+
+#ifdef PTX_PLUGIN
+
+#endif
+
+#endif