summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-09-14 16:00:24 +0800
committeryangwei <[email protected]>2024-09-14 16:00:24 +0800
commit5150a03512a165f7c2f8f9c67e8d9fbf10516c8a (patch)
tree6037dd60d998dee1361ca86f350d719675d09924 /include
parentbf65690cdf8e097af2a29acf692be757a04eae57 (diff)
🧪 test(module manager): add test case
Diffstat (limited to 'include')
-rw-r--r--include/stellar/module_manager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/stellar/module_manager.h b/include/stellar/module_manager.h
index a626575..82c000c 100644
--- a/include/stellar/module_manager.h
+++ b/include/stellar/module_manager.h
@@ -15,6 +15,7 @@ void * stellar_module_get_ctx(struct stellar_module *mod);
void stellar_module_set_ctx(struct stellar_module *mod, void *ctx);
const char *stellar_module_get_name(struct stellar_module* mod);
+void stellar_module_set_name(struct stellar_module* mod, const char *name);
struct stellar_module_manager;
@@ -24,10 +25,10 @@ typedef void module_on_exit_func(struct stellar_module_manager *mod_mgr, struct
struct stellar_module_manager *stellar_module_manager_new(const char *module_spec_toml_path, int max_thread_num, struct mq_schema *mq_schema);
void stellar_module_manager_free(struct stellar_module_manager *mod_mgr);
-struct stellar_module *stellar_module_manager_get_module(struct stellar_module_manager *mod_mgr, const char *module_name);
-
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);