🦄 refactor(module manager): rename polling API
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user