/
show_cmd_available_resources.h
56 lines (45 loc) · 2.28 KB
/
show_cmd_available_resources.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2000-2012 Free Software Foundation Europe e.V.
Copyright (C) 2011-2016 Planets Communications B.V.
Copyright (C) 2013-2021 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation and included
in the file LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef BAREOS_DIRD_SHOW_CMD_AVAILABLE_RESOURCES_H_
#define BAREOS_DIRD_SHOW_CMD_AVAILABLE_RESOURCES_H_
#include <include/bareos.h>
#include "dird/dird_conf.h"
namespace directordaemon {
static struct {
const char* res_name;
int type;
} show_cmd_available_resources[] = {{NT_("directors"), R_DIRECTOR},
{NT_("clients"), R_CLIENT},
{NT_("counters"), R_COUNTER},
{NT_("jobs"), R_JOB},
{NT_("jobdefs"), R_JOBDEFS},
{NT_("storages"), R_STORAGE},
{NT_("catalogs"), R_CATALOG},
{NT_("schedules"), R_SCHEDULE},
{NT_("filesets"), R_FILESET},
{NT_("pools"), R_POOL},
{NT_("messages"), R_MSGS},
{NT_("profiles"), R_PROFILE},
{NT_("consoles"), R_CONSOLE},
{NT_("users"), R_USER},
{NT_("all"), -1},
{NT_("help"), -2},
{NULL, 0}};
} // namespace directordaemon
#endif // BAREOS_DIRD_SHOW_CMD_AVAILABLE_RESOURCES_H_