summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/plugin_manager.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/plugins/plugin_manager.h b/src/plugins/plugin_manager.h
index 9b35c2d..f5696e6 100644
--- a/src/plugins/plugin_manager.h
+++ b/src/plugins/plugin_manager.h
@@ -4,19 +4,35 @@
#include "../../plugins/zprep_plugin.h"
// Initialize the plugin system.
+/**
+ * @brief Initialize the plugin system.
+ */
void zptr_plugin_mgr_init(void);
-// Register a plugin directly (for built-ins).
+/**
+ * @brief Register a plugin directly (for built-in plugins).
+ * @param plugin The plugin to register.
+ */
void zptr_register_plugin(ZPlugin *plugin);
-// Load a plugin from a shared object file (.so).
-// Returns ZPlugin pointer on success, NULL on failure.
+/**
+ * @brief Load a plugin from a shared object file (.so).
+ *
+ * @param path Path to the shared object file.
+ * @return ZPlugin* Pointer to the loaded plugin on success, NULL on failure.
+ */
ZPlugin *zptr_load_plugin(const char *path);
-// Find a registered plugin by name.
+/**
+ * @brief Find a registered plugin by name.
+ * @param name The name of the plugin.
+ * @return ZPlugin* Pointer to the plugin or NULL if not found.
+ */
ZPlugin *zptr_find_plugin(const char *name);
-// Cleanup.
+/**
+ * @brief Cleanup the plugin system and free resources.
+ */
void zptr_plugin_mgr_cleanup(void);
#endif