1 /*
2    BAREOS® - Backup Archiving REcovery Open Sourced
3 
4    Copyright (C) 2000-2011 Free Software Foundation Europe e.V.
5    Copyright (C) 2013-2013 Bareos GmbH & Co. KG
6 
7    This program is Free Software; you can redistribute it and/or
8    modify it under the terms of version three of the GNU Affero General Public
9    License as published by the Free Software Foundation and included
10    in the file LICENSE.
11 
12    This program is distributed in the hope that it will be useful, but
13    WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15    Affero General Public License for more details.
16 
17    You should have received a copy of the GNU Affero General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20    02110-1301, USA.
21 */
22 
23 /*
24  * Kern Sibbald, January MM
25  *
26  * Extracted from other source files by Marco van Wieringen, June 2013
27  */
28 
29 #ifndef BAREOS_LIB_GENERIC_RES_H_
30 #define BAREOS_LIB_GENERIC_RES_H_ 1
31 
32 #include "lib/keyword_table_s.h"
33 
34 #ifndef DIRECTOR_DAEMON
35 /*
36  * Used for message types.
37  */
38 struct s_mtypes {
39   const char* name;
40   uint32_t token;
41 };
42 
43 /*
44  * Various message types
45  */
46 static struct s_mtypes msg_types[] = {
47     {"debug", M_DEBUG},       {"abort", M_ABORT},
48     {"fatal", M_FATAL},       {"error", M_ERROR},
49     {"warning", M_WARNING},   {"info", M_INFO},
50     {"saved", M_SAVED},       {"notsaved", M_NOTSAVED},
51     {"skipped", M_SKIPPED},   {"mount", M_MOUNT},
52     {"Terminate", M_TERM},    {"restored", M_RESTORED},
53     {"security", M_SECURITY}, {"alert", M_ALERT},
54     {"volmgmt", M_VOLMGMT},   {"audit", M_AUDIT},
55     {"all", M_MAX + 1},       {NULL, 0}};
56 #endif /* DIRECTOR_DAEMON */
57 
58 /*
59  * Tape Label types permitted in Pool records
60  *
61  * tape_label label_code = token
62  */
63 static s_kw tapelabels[] = {{"bareos", B_BAREOS_LABEL},
64                             {"ansi", B_ANSI_LABEL},
65                             {"ibm", B_IBM_LABEL},
66                             {NULL, 0}};
67 
68 #endif /* BAREOS_LIB_GENERIC_RES_H_ */
69