diff options
| author | luwenpeng <[email protected]> | 2024-09-02 17:49:33 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-09-02 17:49:33 +0800 |
| commit | a8206cffc0ba55c6cb2b0b1054860ee28ec4a0b8 (patch) | |
| tree | 5e3e8b2a01fc3e3f54e3bcb85b1afbfcedeec209 /include | |
| parent | f8ec4dc5a74547ac9f36f38952a21df031c7469e (diff) | |
rename flow_direction to flow_type
Diffstat (limited to 'include')
| -rw-r--r-- | include/stellar/session.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/stellar/session.h b/include/stellar/session.h index 5a2567a..e8cfbc1 100644 --- a/include/stellar/session.h +++ b/include/stellar/session.h @@ -32,12 +32,12 @@ enum session_direction SESSION_DIRECTION_OUTBOUND = 1, }; -enum flow_direction +enum flow_type { - FLOW_DIRECTION_NONE = -1, - FLOW_DIRECTION_C2S = 0, - FLOW_DIRECTION_S2C = 1, - MAX_FLOW_DIRECTION = 2, + FLOW_TYPE_NONE = -1, + FLOW_TYPE_C2S = 0, + FLOW_TYPE_S2C = 1, + MAX_FLOW_TYPE = 2, }; enum closing_reason @@ -135,11 +135,11 @@ const struct packet *session_get0_current_packet(const struct session *sess); enum closing_reason session_get_closing_reason(const struct session *sess); enum session_direction session_get_direction(const struct session *sess); -enum flow_direction session_get_current_flow_direction(const struct session *sess); -const struct packet *session_get_first_packet(const struct session *sess, enum flow_direction dir); +enum flow_type session_get_flow_type(const struct session *sess); +const struct packet *session_get_first_packet(const struct session *sess, enum flow_type type); 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_direction dir, enum session_stat stat); +uint64_t session_get_stat(const struct session *sess, enum flow_type type, enum session_stat stat); const char *session_get0_readable_addr(const struct session *sess); |
