From c4c7aa89bf01b321f5b582d84b684171e6dbcf66 Mon Sep 17 00:00:00 2001 From: lijia Date: Wed, 17 Jul 2024 14:27:15 +0800 Subject: Add BODY_START message; add http_url_decode(); disable CONNECT tunnel. --- test/http_decoder_gtest.h | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'test/http_decoder_gtest.h') diff --git a/test/http_decoder_gtest.h b/test/http_decoder_gtest.h index c413d08..d620972 100644 --- a/test/http_decoder_gtest.h +++ b/test/http_decoder_gtest.h @@ -1,7 +1,16 @@ #pragma once +#ifdef __cplusplus +extern "C" +{ +#endif +#include +#include +#include +#include +#ifdef __cplusplus +} +#endif #include "http_decoder.h" -#include "stellar/session.h" -#include "stellar/session_mq.h" #include "md5.h" #include #include @@ -46,4 +55,11 @@ #define GTEST_HTTP_TRANS_SEQ_NAME "__X_HTTP_TRANSACTION_SEQ" #define GTEST_HTTP_TUPLE4_NAME "__X_HTTP_TUPLE4" #define GTEST_HTTP_PAYLOAD_NAME "__X_HTTP_PAYLOAD" -#define GTEST_HTTP_PAYLOAD_MD5_NAME "__X_HTTP_PAYLOAD_MD5" \ No newline at end of file +#define GTEST_HTTP_PAYLOAD_MD5_NAME "__X_HTTP_PAYLOAD_MD5" + +struct stellar *stellar_init(void); +void stellar_destroy(struct stellar *st); +int stellar_load_plugin(struct stellar *st, void *(plugin_init_cb)(struct stellar *st)); +struct session *stellar_session_new(struct stellar *st, int topic_id, const char *payload, size_t payload_len, u_int8_t dir); +void stellar_session_active(struct stellar *st, struct session *sess, int topic_id, const char *payload, size_t payload_len, u_int8_t dir); +void stellar_session_close(struct stellar *st, struct session *sess, int topic_id); \ No newline at end of file -- cgit v1.2.3