🦄 refactor(module manager): rename polling API

This commit is contained in:
yangwei
2024-11-25 19:23:01 +08:00
parent ef5a65155b
commit 73a8402a09
7 changed files with 33 additions and 46 deletions

View File

@@ -27,11 +27,18 @@ struct module_descriptor
}__attribute__((aligned(sizeof(void*))));
struct polling_node
{
on_polling_callback *on_polling;
void *polling_arg;
struct polling_node *next;
};
struct module_manager
{
struct module_descriptor *descriptors;
int n_descriptor;
int topic_polling_id;
struct polling_node *node_list;
struct
{
char *toml_path;
@@ -42,9 +49,7 @@ struct module_manager
}__attribute__((aligned(sizeof(void*))));
struct module_manager *module_manager_new_with_toml(const char *toml_path, int max_thread_num, struct mq_schema *mq_schema, struct logger *logger);
void module_manager_polling_dispatch(struct module_manager *mod_mgr);
#ifdef __cplusplus
}