WAND Trace processing  4.0.5
simple_circular_buffer.h
1 #ifndef LIBTRACE_SCB_H_
2 #define LIBTRACE_SCB_H_
3 
4 #include "libtrace.h"
5 
6 typedef struct libtracescb {
7  uint8_t *address;
8  uint32_t count_bytes;
9  uint32_t write_offset;
10  uint32_t read_offset;
11  int fd;
13 
14 
15 DLLEXPORT int libtrace_scb_init(libtrace_scb_t *buf, uint32_t size,
16  uint16_t id);
17 DLLEXPORT void libtrace_scb_destroy(libtrace_scb_t *buf);
18 DLLEXPORT int libtrace_scb_recv_sock(libtrace_scb_t *buf, int sock,
19  int recvflags);
20 DLLEXPORT uint8_t *libtrace_scb_get_read(libtrace_scb_t *buf,
21  uint32_t *available);
22 DLLEXPORT void libtrace_scb_advance_read(libtrace_scb_t *buf, uint32_t forward);
23 
24 #endif
Definition: simple_circular_buffer.h:6
Trace file processing library header.