summaryrefslogtreecommitdiff
path: root/examples/common/async_pcap_storing.h
blob: fa5b5468fc14fcf745484640138525bc1784941e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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_