syslog-ng source
diskq-options.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2016 Balabit
3  * Copyright (c) 2016 Viktor Juhasz <viktor.juhasz@balabit.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef DISKQ_OPTIONS_H_
25 #define DISKQ_OPTIONS_H_
26 
27 #include "syslog-ng.h"
29 
30 #define MIN_CAPACITY_BYTES (1024*1024)
31 
32 typedef struct _DiskQueueOptions
33 {
36  gboolean read_only;
37  gboolean reliable;
38  gboolean compaction;
41  gchar *dir;
43  gboolean prealloc;
45 
46 void disk_queue_options_front_cache_size_set(DiskQueueOptions *self, gint front_cache_size);
47 void disk_queue_options_capacity_bytes_set(DiskQueueOptions *self, gint64 capacity_bytes);
48 void disk_queue_options_reliable_set(DiskQueueOptions *self, gboolean reliable);
49 void disk_queue_options_compaction_set(DiskQueueOptions *self, gboolean compaction);
50 void disk_queue_options_flow_control_window_bytes_set(DiskQueueOptions *self, gint flow_control_window_bytes);
51 void disk_queue_options_flow_control_window_size_set(DiskQueueOptions *self, gint flow_control_window_size);
53 void disk_queue_options_set_dir(DiskQueueOptions *self, const gchar *dir);
54 void disk_queue_options_set_truncate_size_ratio(DiskQueueOptions *self, gdouble truncate_size_ratio);
55 void disk_queue_options_set_prealloc(DiskQueueOptions *self, gboolean prealloc);
58 
59 #endif /* DISKQ_OPTIONS_H_ */
void disk_queue_options_set_truncate_size_ratio(DiskQueueOptions *self, gdouble truncate_size_ratio)
Definition: diskq-options.c:74
void disk_queue_options_set_default_options(DiskQueueOptions *self)
Definition: diskq-options.c:127
void disk_queue_options_set_dir(DiskQueueOptions *self, const gchar *dir)
Definition: diskq-options.c:116
void disk_queue_options_front_cache_size_set(DiskQueueOptions *self, gint front_cache_size)
Definition: diskq-options.c:30
void disk_queue_options_flow_control_window_bytes_set(DiskQueueOptions *self, gint flow_control_window_bytes)
Definition: diskq-options.c:62
void disk_queue_options_check_plugin_settings(DiskQueueOptions *self)
Definition: diskq-options.c:86
void disk_queue_options_set_prealloc(DiskQueueOptions *self, gboolean prealloc)
Definition: diskq-options.c:80
void disk_queue_options_capacity_bytes_set(DiskQueueOptions *self, gint64 capacity_bytes)
Definition: diskq-options.c:36
void disk_queue_options_flow_control_window_size_set(DiskQueueOptions *self, gint flow_control_window_size)
Definition: diskq-options.c:68
void disk_queue_options_destroy(DiskQueueOptions *self)
Definition: diskq-options.c:140
void disk_queue_options_reliable_set(DiskQueueOptions *self, gboolean reliable)
Definition: diskq-options.c:50
void disk_queue_options_compaction_set(DiskQueueOptions *self, gboolean compaction)
Definition: diskq-options.c:56
Definition: diskq-options.h:33
gdouble truncate_size_ratio
Definition: diskq-options.h:42
gint flow_control_window_size
Definition: diskq-options.h:40
gboolean reliable
Definition: diskq-options.h:37
gboolean compaction
Definition: diskq-options.h:38
gboolean read_only
Definition: diskq-options.h:36
gboolean prealloc
Definition: diskq-options.h:43
gint flow_control_window_bytes
Definition: diskq-options.h:39
gint front_cache_size
Definition: diskq-options.h:35
gint64 capacity_bytes
Definition: diskq-options.h:34
gchar * dir
Definition: diskq-options.h:41