feat(plugin manager integration): packet and session exdata&mq

This commit is contained in:
yangwei
2024-08-06 20:37:59 +08:00
committed by luwenpeng
parent ee69595720
commit 6786372449
27 changed files with 3438 additions and 508 deletions

View File

@@ -6,7 +6,6 @@ extern "C"
#endif
#include <stdint.h>
#include "stellar/session.h"
struct session;
struct stellar;
@@ -48,6 +47,9 @@ typedef int plugin_on_polling_func(void *plugin_env);
//return polling plugin_id
int stellar_polling_plugin_register(struct stellar *st, plugin_on_polling_func on_polling, void *plugin_env);
void stellar_emit_datapath_telemetry(struct packet *pkt, const char * module, const char *str);
int stellar_get_worker_thread_num(struct stellar *st);
uint16_t stellar_get_current_thread_index();
// only send user crafted packet, can't send packet which come from network
void stellar_send_crafted_packet(struct stellar *st, struct packet *pkt);