]> mj.ucw.cz Git - libucw.git/blob - lib/sorter/config.c
1587207628212859bd330376580a8b75dda759de
[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
19 static struct cf_section sorter_config = {
20   CF_ITEMS {
21     CF_UNS("Trace", &sorter_trace),
22     CF_UNS("PresortBuffer", &sorter_presort_bufsize),
23     CF_UNS("StreamBuffer", &sorter_stream_bufsize),
24     CF_END
25   }
26 };
27
28 static void CONSTRUCTOR sorter_init_config(void)
29 {
30   cf_declare_section("Sorter", &sorter_config, 0);
31 }