7b41f3a7540b5db94a129cfe1bff31d41a5f2a5e
[idzebra-moved-to-github.git] / index / check_res.c
1 /* $Id: check_res.c,v 1.9 2008-03-05 09:21:48 adam Exp $
2    Copyright (C) 1995-2007
3    Index Data ApS
4
5 This file is part of the Zebra server.
6
7 Zebra is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
11
12 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
21 */
22
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  * indent-tabs-mode: nil
88  * End:
89  * vim: shiftwidth=4 tabstop=8 expandtab
90  */
91