🦄 refactor(polling manager): merge polling into module manager

This commit is contained in:
yangwei
2024-10-18 11:16:42 +08:00
parent 260787167a
commit 6e7bb30630
14 changed files with 117 additions and 251 deletions

View File

@@ -39,7 +39,9 @@ const char *stellar_module_manager_get_toml_path(struct stellar_module_manager *
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);
typedef void module_on_polling_func(struct stellar_module_manager *mod_mgr, void *polling_arg);
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_active(struct stellar_module_manager *mod_mgr);
#ifdef __cplusplus
}