refactor: session module (split to define/utils/pool/table/timer/transition/manager)

This commit is contained in:
luwenpeng
2024-06-25 10:32:51 +08:00
parent 71422ebb36
commit 076b3c7b0b
55 changed files with 342 additions and 227 deletions

View File

@@ -1,9 +1,9 @@
#include <assert.h>
#include "plugin_manager.h"
#include "session_priv.h"
#include "stellar_priv.h"
#include "session_utils.h"
#include "packet_utils.h"
#include "stellar_utils.h"
#include "stellar/utils.h"
#include "stellar/session.h"
#include "stellar/session_exdata.h"
#include "stellar/session_mq.h"
#include "tcp_reassembly.h"
@@ -212,7 +212,6 @@ PLUGIN_SPEC_LOAD_ERROR:
return NULL;
}
#include "session_priv.h"
static void tcp_stream_msg_free_fn(void *msg, void *msg_free_arg)
{
struct session *cur_sess = plugin_manager_scratch_session_get();

View File

@@ -5,11 +5,6 @@ extern "C"
{
#endif
#include "session_priv.h"
#define PLUGIN_MANAGER_LOG_ERROR(format, ...) LOG_ERROR("plugin manager", format, ##__VA_ARGS__)
#define PLUGIN_MANAGER_LOG_DEBUG(format, ...) LOG_DEBUG("plugin manager", format, ##__VA_ARGS__)
struct plugin_manager_schema;
struct plugin_manager_runtime;