summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-11-26 11:53:30 +0800
committerluwenpeng <[email protected]>2024-11-27 11:43:42 +0800
commit1e072950d7477a7154665b46c16e5c890e471cad (patch)
tree7fbbe40bbcdcf159338802c0e3def1db0cb5026a /include
parent9ba56055b320cf00e5c96370029ec19836075247 (diff)
refactor: use session_manager_discard_session() instead of session_set_discard()
Diffstat (limited to 'include')
-rw-r--r--include/stellar/session.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stellar/session.h b/include/stellar/session.h
index f47d6b5..c66cb3d 100644
--- a/include/stellar/session.h
+++ b/include/stellar/session.h
@@ -135,7 +135,6 @@ uint64_t session_get_id(const struct session *sess);
uint64_t session_get_timestamp(const struct session *sess, enum session_timestamp type);
uint64_t session_get_stat(const struct session *sess, enum flow_type type, enum session_stat stat);
const char *session_get_readable_addr(const struct session *sess);
-void session_set_discard(struct session *sess);
void session_set_exdata(struct session *sess, int idx, void *ex_ptr);
void *session_get_exdata(const struct session *sess, int idx);
@@ -145,6 +144,7 @@ struct session_manager *module_to_session_manager(struct module *mod);
int session_manager_new_session_exdata_index(struct session_manager *sess_mgr, const char *name, exdata_free *func, void *arg);
struct session *session_manager_lookup_session_by_packet(struct session_manager *sess_mgr, uint16_t thread_id, const struct packet *pkt);
struct session *session_manager_lookup_session_by_id(struct session_manager *sess_mgr, uint16_t thread_id, uint64_t sess_id);
+void session_manager_discard_session(struct session_manager *sess_mgr, uint16_t thread_id, struct session *sess);
void session_manager_on_packet_forward(struct packet *pkt, struct module *mod);
void session_manager_on_packet_output(struct packet *pkt, struct module *mod);