summaryrefslogtreecommitdiff
path: root/examples/common/async_pcap_storing.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/common/async_pcap_storing.h')
-rw-r--r--examples/common/async_pcap_storing.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/common/async_pcap_storing.h b/examples/common/async_pcap_storing.h
new file mode 100644
index 00000000..fa5b5468
--- /dev/null
+++ b/examples/common/async_pcap_storing.h
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2019 Egor Pomozov <Egor.Pomozov@aquantia.com>
+*/
+#include <stdint.h>
+
+#ifndef _ASYNC_PCAP_STORING_H_
+#define _ASYNC_PCAP_STORING_H_
+
+int async_pcap_store_packet(void *context, void *buf, uint32_t size, uint64_t ts);
+void async_pcap_release_context(void *context);
+int async_pcap_initialize_context(char *file_name, uint32_t packet_count, uint32_t packet_size, void **context);
+
+#endif //_ASYNC_PCAP_STORING_H_