summaryrefslogtreecommitdiff
path: root/test/dns_decoder_perf_dummy.h
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2024-06-13 19:53:11 +0000
committerliuxueli <[email protected]>2024-06-13 19:53:11 +0000
commit3ceb02698316b2ad5f7570b30c6f180d0d7fd603 (patch)
tree082079a65d810db6c2e927b937c50e820df24358 /test/dns_decoder_perf_dummy.h
parentaaba41c67cdcbe80938dff2c504c4bc56c4a0590 (diff)
Feature: performance test case
Diffstat (limited to 'test/dns_decoder_perf_dummy.h')
-rw-r--r--test/dns_decoder_perf_dummy.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/dns_decoder_perf_dummy.h b/test/dns_decoder_perf_dummy.h
new file mode 100644
index 0000000..12d742d
--- /dev/null
+++ b/test/dns_decoder_perf_dummy.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "stellar/stellar.h"
+#include <stellar/session_mq.h>
+
+struct stellar_packet
+{
+ size_t payload_sz;
+ uint8_t payload[2048];
+};
+
+struct stellar *stellar_init(int worker_thread_num);
+
+struct session *stellar_session_new(struct stellar *st, int tid);
+void stellar_session_free(struct session *ss);
+
+int session_mq_publish_message_by_name(struct session *ss, const char *topic_name, struct stellar_packet *msg); \ No newline at end of file