🧪 test(module manager): add test case
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user