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