decrypt drsuapi attributes
[wireshark-sm.git] / ringbuffer.h
blob3b22e55ecb5aa33ef0b929279672699c544e16ac
1 /** @file
3 * Definitions for capture ringbuffer files
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __RINGBUFFER_H__
13 #define __RINGBUFFER_H__
15 #include <stdio.h>
16 #include "wiretap/wtap.h"
18 #define RINGBUFFER_UNLIMITED_FILES 0
19 /* Minimum number of ringbuffer files */
20 #define RINGBUFFER_MIN_NUM_FILES 0
21 /* Maximum number of ringbuffer files */
22 /* Avoid crashes on very large numbers. Should be a power of 10 */
23 #define RINGBUFFER_MAX_NUM_FILES 100000
24 /* Maximum number for FAT filesystems */
25 #define RINGBUFFER_WARN_NUM_FILES 65535
27 int ringbuf_init(const char *capture_name, unsigned num_files, bool group_read_access, char* compress_type,
28 bool nametimenum);
29 bool ringbuf_is_initialized(void);
30 const char *ringbuf_current_filename(void);
31 FILE *ringbuf_init_libpcap_fdopen(int *err);
32 bool ringbuf_switch_file(FILE **pdh, char **save_file, int *save_file_fd,
33 int *err);
34 bool ringbuf_libpcap_dump_close(char **save_file, int *err);
35 void ringbuf_free(void);
36 void ringbuf_error_cleanup(void);
37 bool ringbuf_set_print_name(char *name, int *err);
39 #endif /* ringbuffer.h */