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
39int ringbuf_init(
const char *capture_name,
unsigned num_files,
bool group_read_access,
40 const char *compress_type,
bool nametimenum);
ws_cwstream * ringbuf_init_libpcap_fdopen(int *err)
Initialize a libpcap dump file for the ringbuffer. Initializes a libpcap dump file for writing captur...
bool ringbuf_switch_file(ws_cwstream **pdh, char **save_file, int *save_file_fd, int *err)
Switch the ringbuffer dump file.
int ringbuf_init(const char *capture_name, unsigned num_files, bool group_read_access, const char *compress_type, bool nametimenum)
Initialize the ringbuffer system.
void ringbuf_error_cleanup(void)
Clean up any errors related to the ringbuffer system.
void ringbuf_free(void)
Frees all memory allocated by the ringbuffer.
bool ringbuf_libpcap_dump_close(char **save_file, int *err)
Close the ringbuffer dump file.
const char * ringbuf_current_filename(void)
Get the current filename used by the ringbuffer.
bool ringbuf_is_initialized(void)
Check if the ringbuffer system is initialized.
bool ringbuf_set_print_name(char *name, int *err)
Set the name for the ringbuffer.
Definition file_compressed.c:152