From 2b44f885e97b0d8902014a5a61f6687fa2931dec Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Mon, 17 Nov 2025 20:57:42 -0600 Subject: ignore this commit --- include/plugins.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/plugins.h (limited to 'include/plugins.h') 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 -- cgit v1.2.3-70-g09d2