diff options
Diffstat (limited to 'src/plugins/plugin_manager.h')
| -rw-r--r-- | src/plugins/plugin_manager.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugins/plugin_manager.h b/src/plugins/plugin_manager.h new file mode 100644 index 0000000..a1e8ca6 --- /dev/null +++ b/src/plugins/plugin_manager.h @@ -0,0 +1,23 @@ +#ifndef PLUGIN_MANAGER_H +#define PLUGIN_MANAGER_H + +#include "../../plugins/zprep_plugin.h" + +// Initialize the plugin system. +void zptr_plugin_mgr_init(void); + +// Register a plugin directly (for built-ins). +void zptr_register_plugin(ZPlugin *plugin); + +// Load a plugin from a shared object file (.so). +// Returns 1 on success, 0 on failure. +// Yeah, for now, I'm sorry Windows guys. +int zptr_load_plugin(const char *path); + +// Find a registered plugin by name. +ZPlugin *zptr_find_plugin(const char *name); + +// Cleanup. +void zptr_plugin_mgr_cleanup(void); + +#endif |
