Do not build for Ubuntu raring, quantal (obsolete)
[idzebra-moved-to-github.git] / index / check_res.c
1 /* This file is part of the Zebra server.
2    Copyright (C) Index Data
3
4 Zebra is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
7 version.
8
9 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 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 */
19
20 #if HAVE_CONFIG_H
21 #include <config.h>
22 #endif
23 #include <stdlib.h>
24 #include <string.h>
25 #include <stdio.h>
26 #include <assert.h>
27
28 #include "index.h"
29
30 int zebra_check_res(Res res)
31 {
32     int errors = 0;
33     Res v = res_open(0, 0);
34
35     res_add(v, "attset", "");
36     res_add(v, "chdir", "");
37     res_add(v, "dbaccess", "");
38     res_add(v, "encoding", "");
39     res_add(v, "estimatehits", "");
40     res_add(v, "group", "");
41     res_add(v, "index", "");
42     res_add(v, "isam", "");
43     res_add(v, "isamcDebug", "");
44     res_add(v, "isamsDebug", "");
45     res_add(v, "keyTmpDir", "");
46     res_add(v, "lockDir", "");
47     res_add(v, "memmax", "");
48     res_add(v, "modulePath", "");
49     res_add(v, "perm", "s");
50     res_add(v, "passwd", "");
51     res_add(v, "passwd.c", "");
52     res_add(v, "profilePath", "");
53     res_add(v, "rank", "");
54     res_add(v, "recordCompression", "");
55     res_add(v, "register", "");
56     res_add(v, "root", "");
57     res_add(v, "shadow", "");
58     res_add(v, "segment", "");
59     res_add(v, "setTmpDir", "");
60     res_add(v, "sortindex", "");
61     res_add(v, "sortmax", "");
62     res_add(v, "staticrank", "");
63     res_add(v, "threads", "");
64     res_add(v, "trunclimit", "");
65     res_add(v, "truncmax", "");
66     res_add(v, "database", "p");
67     res_add(v, "explainDatabase", "p");
68     res_add(v, "fileVerboseLimit", "p");
69     res_add(v, "followLinks", "p");
70     res_add(v, "recordId", "p");
71     res_add(v, "recordType", "ps");
72     res_add(v, "storeKeys", "p");
73     res_add(v, "storeData", "p");
74     res_add(v, "openRW", "p");
75     res_add(v, "facetNumRecs", "");
76     res_add(v, "facetMaxChunks", "");
77
78     errors = res_check(res, v);
79
80     res_close(v);
81     return errors;
82 }
83
84 /*
85  * Local variables:
86  * c-basic-offset: 4
87  * c-file-style: "Stroustrup"
88  * indent-tabs-mode: nil
89  * End:
90  * vim: shiftwidth=4 tabstop=8 expandtab
91  */
92