12#ifndef __RINGBUFFER_H__
13#define __RINGBUFFER_H__
18#define RINGBUFFER_UNLIMITED_FILES 0
20#define RINGBUFFER_MIN_NUM_FILES 0
23#define RINGBUFFER_MAX_NUM_FILES 100000
25#define RINGBUFFER_WARN_NUM_FILES 65535
27int ringbuf_init(
const char *capture_name,
unsigned num_files,
bool group_read_access,
char* compress_type,
29bool ringbuf_is_initialized(
void);
30const char *ringbuf_current_filename(
void);
31FILE *ringbuf_init_libpcap_fdopen(
int *err);
32bool ringbuf_switch_file(FILE **pdh,
char **save_file,
int *save_file_fd,
34bool ringbuf_libpcap_dump_close(
char **save_file,
int *err);
35void ringbuf_free(
void);
36void ringbuf_error_cleanup(
void);
37bool ringbuf_set_print_name(
char *name,
int *err);