diff options
| author | yangwei <[email protected]> | 2024-11-26 14:37:05 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-11-26 14:37:05 +0800 |
| commit | 78562a8dd879a3753debae14198f00fe2dc0112a (patch) | |
| tree | 0c316ea52a36bda174b9df7fbd3df44bb65e7908 /include | |
| parent | 1ddd1f6b783573aa8ae5e1594430865b20c9f0a3 (diff) | |
✨ feat(stellar core): module & node register in stellar_new
Diffstat (limited to 'include')
| -rw-r--r-- | include/stellar/monitor.h | 4 | ||||
| -rw-r--r-- | include/stellar/packet.h | 6 | ||||
| -rw-r--r-- | include/stellar/session.h | 8 |
3 files changed, 18 insertions, 0 deletions
diff --git a/include/stellar/monitor.h b/include/stellar/monitor.h index 9e50949..8199810 100644 --- a/include/stellar/monitor.h +++ b/include/stellar/monitor.h @@ -49,6 +49,10 @@ extern "C" "show moduleb -h" "show modulec --help" */ + + struct module *monitor_on_init(struct module_manager *mod_mgr); + void monitor_on_exit(struct module_manager *mod_mgr __attribute__((unused)), struct module *mod); + #ifdef __cplusplus } #endif diff --git a/include/stellar/packet.h b/include/stellar/packet.h index 8eb7b74..a19e892 100644 --- a/include/stellar/packet.h +++ b/include/stellar/packet.h @@ -238,6 +238,12 @@ struct packet *packet_manager_build_l3_packet(struct packet_manager *pkt_mgr, ui struct packet *packet_manager_dup_packet(struct packet_manager *pkt_mgr, uint16_t thread_id, const struct packet *origin_pkt); void packet_manager_free_packet(struct packet_manager *pkt_mgr, uint16_t thread_id, struct packet *pkt); + +struct module *packet_manager_on_init(struct module_manager *mod_mgr); +void packet_manager_on_exit(struct module_manager *mod_mgr __attribute__((unused)), struct module *mod); +struct module *packet_manager_on_thread_init(struct module_manager *mod_mgr __attribute__((unused)), int thread_id, struct module *mod); +void packet_manager_on_thread_exit(struct module_manager *mod_mgr __attribute__((unused)), int thread_id, struct module *mod); + #ifdef __cplusplus } #endif diff --git a/include/stellar/session.h b/include/stellar/session.h index b5f3c07..866d986 100644 --- a/include/stellar/session.h +++ b/include/stellar/session.h @@ -149,6 +149,14 @@ struct session *session_manager_lookup_session_by_id(struct session_manager *ses void session_manager_on_packet_forward(struct packet *pkt, void *args); void session_manager_on_packet_output(struct packet *pkt, void *args); +struct module *session_manager_on_init(struct module_manager *mod_mgr); +void session_manager_on_exit(struct module_manager *mod_mgr, struct module *mod); +struct module *session_manager_on_thread_init(struct module_manager *mod_mgr, int thread_id, struct module *mod); +void session_manager_on_thread_exit(struct module_manager *mod_mgr, int thread_id, struct module *mod); + +struct module *session_monitor_on_init(struct module_manager *mod_mgr); +void session_monitor_on_exit(struct module_manager *mod_mgr, struct module *mod); + struct tcp_segment { uint32_t len; |
