session manager not trigger event

This commit is contained in:
luwenpeng
2024-01-15 11:21:11 +08:00
parent 84bdd92534
commit a045c04f8d
8 changed files with 95 additions and 265 deletions

View File

@@ -32,18 +32,6 @@ enum session_type
SESSION_TYPE_UDP = 0x2,
};
enum session_event
{
SESSION_EVENT_NONE = 0,
SESSION_EVENT_OPENING,
SESSION_EVENT_PACKET,
SESSION_EVENT_CLOSING,
// Add new event before SESSION_EVENT_MAX
SESSION_EVENT_MAX,
};
enum session_dir
{
SESSION_DIR_NONE = 0,
@@ -107,14 +95,6 @@ const struct packet *session_get0_cur_pkt(const struct session *sess);
void session_set_cur_dir(struct session *sess, enum session_dir dir);
enum session_dir session_get_cur_dir(const struct session *sess);
/******************************************************************************
* session event
******************************************************************************/
// session event
bool session_push_event(struct session *sess, uint32_t event);
bool session_pop_event(struct session *sess, uint32_t *event);
/******************************************************************************
* session ex data
******************************************************************************/
@@ -160,7 +140,6 @@ void session_run_expirecb(struct session *sess);
* session dump
******************************************************************************/
const char *session_event_tostring(enum session_event event);
const char *session_state_tostring(enum session_state state);
const char *session_type_tostring(enum session_type type);
const char *session_dir_tostring(enum session_dir dir);