From 894e4c69cc10242fc49bcaadf76b672607867d67 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Mon, 26 Jan 2026 02:23:19 +0000 Subject: Improved doxygen docs --- src/plugins/plugin_manager.h | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'src/plugins') 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 -- cgit v1.2.3