diff options
| author | luwenpeng <[email protected]> | 2024-10-09 10:01:20 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-10-09 10:02:42 +0800 |
| commit | 0f082d975ec067e268d868b0855083caaeff9522 (patch) | |
| tree | 7bcecc3aa50aa0a2941361797bdedbdf6e0af9a4 /include | |
| parent | d9d9b4728dbb9b8c4aaef17a41067eb173744cb9 (diff) | |
stellar registers packet_manager as a module; session_manager registers polling callback
Diffstat (limited to 'include')
| -rw-r--r-- | include/stellar/module_manager.h | 3 | ||||
| -rw-r--r-- | include/stellar/stellar.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/stellar/module_manager.h b/include/stellar/module_manager.h index 70ee5a5..a944186 100644 --- a/include/stellar/module_manager.h +++ b/include/stellar/module_manager.h @@ -8,6 +8,9 @@ extern "C" #include "stellar/mq.h" #include "stellar/log.h" +#define PACKET_MANAGER_MODULE_NAME "packet_manager_module" +#define SESSION_MANAGER_MODULE_NAME "session_manager_module" + struct stellar_module; struct stellar_module *stellar_module_new(const char *name, void *ctx); void stellar_module_free(struct stellar_module *mod); diff --git a/include/stellar/stellar.h b/include/stellar/stellar.h index e03b791..2f103a3 100644 --- a/include/stellar/stellar.h +++ b/include/stellar/stellar.h @@ -23,7 +23,7 @@ void stellar_emit_datapath_telemetry(struct packet *pkt, const char * module, c // only send user build packet, can't send packet which come from network // void stellar_send_build_packet(struct stellar *st, struct packet *pkt); -struct stellar *stellar_new(const char *stellar_cfg_file, const char *module_cfg_file, const char *log_cfg_file); +struct stellar *stellar_new(const char *toml_file); void stellar_run(struct stellar *st); void stellar_free(struct stellar *st); void stellar_loopbreak(struct stellar *st); |
