diff options
Diffstat (limited to 'include/plugins.h')
| -rw-r--r-- | include/plugins.h | 24 |
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 |
