diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-11 15:11:00 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-11 15:11:00 +0000 |
| commit | 55247a3f12a9eee7ba3fd7ca6d8fcea7a82c20f3 (patch) | |
| tree | a2a71e2eb8ca0b2c483518c1902d89d18709c9ab /src/plugins/plugin_manager.h | |
| parent | 2e7abed7cfe84a2c0df371cde35f8f68cfdca16c (diff) | |
Added src/ folder. Now I will add the rest.
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 |
