summaryrefslogtreecommitdiff
path: root/test/dns_decoder_perf_dummy.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/dns_decoder_perf_dummy.h')
-rw-r--r--test/dns_decoder_perf_dummy.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/dns_decoder_perf_dummy.h b/test/dns_decoder_perf_dummy.h
index 12d742d..d7ebcca 100644
--- a/test/dns_decoder_perf_dummy.h
+++ b/test/dns_decoder_perf_dummy.h
@@ -1,17 +1,30 @@
#pragma once
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include "stellar/stellar.h"
+#include "stellar/session.h"
#include <stellar/session_mq.h>
+#ifdef __cplusplus
+}
+#endif
+
struct stellar_packet
{
size_t payload_sz;
uint8_t payload[2048];
+ struct session_addr addr;
+ char *readable_addr;
+ enum session_addr_type addr_type;
};
struct stellar *stellar_init(int worker_thread_num);
-struct session *stellar_session_new(struct stellar *st, int tid);
+struct session *stellar_session_new(struct stellar *st, struct stellar_packet *cur_pkt, 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