🦄 refactor(plugin_manager): refactor intrinsic topic name

This commit is contained in:
yangwei
2024-08-28 19:58:28 +08:00
parent 283d591e6b
commit b2647a5a75
10 changed files with 156 additions and 164 deletions

View File

@@ -14,23 +14,24 @@ extern "C"
#include "bitmap/bitmap.h"
#include "uthash/utarray.h"
struct stellar_message;
struct per_thread_exdata_array
{
struct stellar_exdata *exdata_array;
};
struct stellar_message;
struct plugin_manger_per_thread_data
struct plugin_manager_per_thread_data
{
struct per_thread_exdata_array per_thread_pkt_exdata_array;
struct stellar_message *priority_mq[STELLAR_MQ_PRIORITY_MAX];// message list
struct stellar_message *dealth_letter_queue;// dlq list
long long pub_packet_msg_cnt;
struct session *thread_scratch_session;
};
struct plugin_manager_schema
{
struct stellar *st;
@@ -43,13 +44,14 @@ struct plugin_manager_schema
int stellar_mq_topic_num;
int packet_topic_subscriber_num;
int session_topic_subscriber_num;
int tcp_topic_id;
int tcp_input_topic_id;
int tcp_output_topic_id;
int tcp_stream_topic_id;
int udp_topic_id;
int egress_topic_id;
int udp_input_topic_id;
int udp_output_topic_id;
int control_packet_topic_id;
int max_message_dispatch;
struct plugin_manger_per_thread_data *per_thread_data;
struct plugin_manager_per_thread_data *per_thread_data;
}__attribute__((aligned(sizeof(void*))));
enum plugin_exdata_state