session table rename
This commit is contained in:
@@ -81,14 +81,14 @@ void session_table_add_session(struct session_table *table, struct session *sess
|
||||
table->count++;
|
||||
}
|
||||
|
||||
void session_table_delete_session_with_id(struct session_table *table, uint64_t id)
|
||||
void session_table_delete_session_by_id(struct session_table *table, uint64_t id)
|
||||
{
|
||||
if (table == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
struct session *sess = session_table_search_session_with_id(table, id);
|
||||
struct session *sess = session_table_find_session_by_id(table, id);
|
||||
if (sess == NULL)
|
||||
{
|
||||
return;
|
||||
@@ -105,14 +105,14 @@ void session_table_delete_session_with_id(struct session_table *table, uint64_t
|
||||
table->count--;
|
||||
}
|
||||
|
||||
void session_table_delete_session_with_addr(struct session_table *table, struct session_address *addr)
|
||||
void session_table_delete_session_by_addr(struct session_table *table, struct session_address *addr)
|
||||
{
|
||||
if (table == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
struct session *sess = session_table_search_session_with_addr(table, addr);
|
||||
struct session *sess = session_table_find_session_by_addr(table, addr);
|
||||
if (sess == NULL)
|
||||
{
|
||||
return;
|
||||
@@ -129,7 +129,7 @@ void session_table_delete_session_with_addr(struct session_table *table, struct
|
||||
table->count--;
|
||||
}
|
||||
|
||||
struct session *session_table_search_session_with_id(struct session_table *table, uint64_t id)
|
||||
struct session *session_table_find_session_by_id(struct session_table *table, uint64_t id)
|
||||
{
|
||||
if (table == NULL)
|
||||
{
|
||||
@@ -142,7 +142,7 @@ struct session *session_table_search_session_with_id(struct session_table *table
|
||||
return sess;
|
||||
}
|
||||
|
||||
struct session *session_table_search_session_with_addr(struct session_table *table, struct session_address *addr)
|
||||
struct session *session_table_find_session_by_addr(struct session_table *table, struct session_address *addr)
|
||||
{
|
||||
if (table == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user