/** * Copyright (c) 2025 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #pragma once #include "scriptcontext.h" typedef struct scriptmodule_s { const char_t *name; void (*callback)(scriptcontext_t *ctx); } scriptmodule_t; extern const scriptmodule_t SCRIPT_MODULE_LIST[]; /** * Retrieves a script module by its name. * * @param name The name of the script module. * @return Pointer to the script module, or NULL if not found. */ const scriptmodule_t * scriptModuleGetByName(const char_t *name);