summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-07-24 11:52:09 +0800
committeryangwei <[email protected]>2024-07-24 11:52:57 +0800
commit53563c910d45a416aecff801206bae6784be6fc6 (patch)
treeeb7b059ac3c9ac40f0269cbb4be8e2dc7d9714f2 /include
parentdae6d21e6245c38a26701f5e3774cd0c92e31259 (diff)
✨ feat(session.h): add packet_get0_session
Diffstat (limited to 'include')
-rw-r--r--include/stellar/session.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/stellar/session.h b/include/stellar/session.h
index d4b3f6d..f617197 100644
--- a/include/stellar/session.h
+++ b/include/stellar/session.h
@@ -128,4 +128,6 @@ unsigned char packet_get_ip_protocol(struct packet *pkt);
void packet_drop(const struct packet *pkt);
const char *packet_get0_readable_addr(struct packet *pkt);
-int packet_get_current_thread_id(struct packet *pkt); \ No newline at end of file
+int packet_get_current_thread_id(struct packet *pkt);
+
+struct session *packet_get_session(const struct packet *pkt); \ No newline at end of file