From 7b32a86e66eefab011fdb33d9706528a66142ac4 Mon Sep 17 00:00:00 2001 From: yangwei Date: Thu, 19 Sep 2024 16:56:26 +0800 Subject: ✨ feat(module manager API): rename api with manager MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/stellar/module_manager.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/stellar/module_manager.h b/include/stellar/module_manager.h index fad50cf..06c51a4 100644 --- a/include/stellar/module_manager.h +++ b/include/stellar/module_manager.h @@ -27,15 +27,16 @@ 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); -struct stellar_module *stellar_module_manager_get_module(struct stellar_module_manager *mod_mgr, const char *module_name); - // return -1 on error int stellar_module_manager_get_thread_id(struct stellar_module_manager* mod_mgr); -int stellar_module_manager_get_max_thread_num(struct stellar_module_manager* mod_mgr); +struct mq_runtime *stellar_module_manager_get_mq_runtime(struct stellar_module_manager *mod_mgr); +struct stellar_module *stellar_module_manager_get_module(struct stellar_module_manager *mod_mgr, const char *module_name); + +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_get_mq_schema(struct stellar_module_manager *mod_mgr); -struct mq_runtime *stellar_module_get_mq_runtime(struct stellar_module_manager *mod_mgr); +struct mq_schema *stellar_module_manager_get_mq_schema(struct stellar_module_manager *mod_mgr); + #ifdef __cplusplus } -- cgit v1.2.3