syslog-ng source
scratch-buffers.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Balabit
3  * Copyright (c) 2017 Balazs Scheidler <balazs.scheidler@balabit.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 
25 #ifndef SCRATCH_BUFFERS2_H_INCLUDED
26 #define SCRATCH_BUFFERS2_H_INCLUDED 1
27 
28 #include "syslog-ng.h"
29 
30 typedef gint32 ScratchBuffersMarker;
31 
32 GString *scratch_buffers_alloc(void);
37 
43 
44 /* lazy stats update */
46 
47 /* garbage collector */
49 
54 
57 
58 
61 
62 #endif
void scratch_buffers_reclaim_marked(ScratchBuffersMarker marker)
Definition: scratch-buffers.c:147
void scratch_buffers_register_stats(void)
Definition: scratch-buffers.c:308
void scratch_buffers_unregister_stats(void)
Definition: scratch-buffers.c:323
void scratch_buffers_lazy_update_stats(void)
Definition: scratch-buffers.c:248
void scratch_buffers_automatic_gc_deinit(void)
Definition: scratch-buffers.c:301
void scratch_buffers_global_init(void)
Definition: scratch-buffers.c:338
void scratch_buffers_automatic_gc_init(void)
Definition: scratch-buffers.c:290
gssize scratch_buffers_get_global_allocation_count(void)
Definition: scratch-buffers.c:154
gssize scratch_buffers_get_local_allocation_bytes(void)
Definition: scratch-buffers.c:167
void scratch_buffers_update_stats(void)
Definition: scratch-buffers.c:186
gssize scratch_buffers_get_local_allocation_count(void)
Definition: scratch-buffers.c:161
gint scratch_buffers_get_local_usage_count(void)
Definition: scratch-buffers.c:180
GString * scratch_buffers_alloc_and_mark(ScratchBuffersMarker *marker)
Definition: scratch-buffers.c:117
void scratch_buffers_global_deinit(void)
Definition: scratch-buffers.c:344
void scratch_buffers_allocator_init(void)
Definition: scratch-buffers.c:194
void scratch_buffers_allocator_deinit(void)
Definition: scratch-buffers.c:200
void scratch_buffers_mark(ScratchBuffersMarker *marker)
Definition: scratch-buffers.c:111
gint32 ScratchBuffersMarker
Definition: scratch-buffers.h:30
void scratch_buffers_reclaim_allocations(void)
Definition: scratch-buffers.c:141
void scratch_buffers_explicit_gc(void)
Definition: scratch-buffers.c:269
GString * scratch_buffers_alloc(void)
Definition: scratch-buffers.c:135