✨ feat(module manager): Define and implement the polling API
This commit is contained in:
@@ -37,6 +37,11 @@ int stellar_module_manager_get_max_thread_num(struct stellar_module_manager* mod
|
||||
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);
|
||||
|
||||
typedef void module_on_polling_func(struct stellar_module_manager* mod_mgr, void *polling_arg);
|
||||
//return 0 if success, otherwise return -1.
|
||||
int stellar_module_manager_polling_subscribe(struct stellar_module_manager* mod_mgr, module_on_polling_func on_polling, void *polling_arg);
|
||||
void stellar_module_manager_polling_dispatch(struct stellar_module_manager *mod_mgr);
|
||||
void stellar_module_manager_polling_active(struct stellar_module_manager *mod_mgr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user