]> mj.ucw.cz Git - libucw.git/blob - lib/sorter/config.c
Cleanup of bucket handling.
[libucw.git] / lib / sorter / config.c
1 /*
2  *      UCW Library -- Universal Sorter: Configuration
3  *
4  *      (c) 2007 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #include "lib/lib.h"
11 #include "lib/conf.h"
12 #include "lib/fastbuf.h"
13 #include "lib/sorter/common.h"
14
15 uns sorter_trace;
16 uns sorter_presort_bufsize = 65536;
17 uns sorter_stream_bufsize = 65536;
18 u64 sorter_bufsize = 65536;
19 uns sorter_debug;
20
21 static struct cf_section sorter_config = {
22   CF_ITEMS {
23     CF_UNS("Trace", &sorter_trace),
24     CF_UNS("PresortBuffer", &sorter_presort_bufsize),
25     CF_UNS("StreamBuffer", &sorter_stream_bufsize),
26     CF_U64("SortBuffer", &sorter_bufsize),
27     CF_UNS("Debug", &sorter_debug),
28     CF_END
29   }
30 };
31
32 static void CONSTRUCTOR sorter_init_config(void)
33 {
34   cf_declare_section("Sorter", &sorter_config, 0);
35 }