From d9d9b4728dbb9b8c4aaef17a41067eb173744cb9 Mon Sep 17 00:00:00 2001 From: yangwei Date: Sun, 29 Sep 2024 14:23:26 +0800 Subject: ✨ feat(module manager API): add stellar_module_manager_get_logger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/stellar/module_manager.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/stellar/module_manager.h b/include/stellar/module_manager.h index 283e948..70ee5a5 100644 --- a/include/stellar/module_manager.h +++ b/include/stellar/module_manager.h @@ -6,6 +6,7 @@ extern "C" #endif #include "stellar/mq.h" +#include "stellar/log.h" struct stellar_module; struct stellar_module *stellar_module_new(const char *name, void *ctx); @@ -22,7 +23,7 @@ struct stellar_module_manager; typedef struct stellar_module *module_on_init_func(struct stellar_module_manager *mod_mgr); typedef void module_on_exit_func(struct stellar_module_manager *mod_mgr, struct stellar_module *mod); -struct stellar_module_manager *stellar_module_manager_new(const char *module_spec_toml_path, int max_thread_num, struct mq_schema *mq_schema); +struct stellar_module_manager *stellar_module_manager_new(const char *module_spec_toml_path, int max_thread_num, struct mq_schema *mq_schema, struct logger *logger); void stellar_module_manager_free(struct stellar_module_manager *mod_mgr); void stellar_module_manager_register_thread(struct stellar_module_manager* mod_mgr, int thread_id, struct mq_runtime *mq_rt); @@ -36,6 +37,7 @@ struct stellar_module *stellar_module_manager_get_module(struct stellar_module_m int stellar_module_manager_get_max_thread_num(struct stellar_module_manager* mod_mgr); const char *stellar_module_manager_get_toml_path(struct stellar_module_manager *mod_mgr); struct mq_schema *stellar_module_manager_get_mq_schema(struct stellar_module_manager *mod_mgr); +struct logger *stellar_module_manager_get_logger(struct stellar_module_manager *mod_mgr); -- cgit v1.2.3