1 /* 2 BAREOS® - Backup Archiving REcovery Open Sourced 3 4 Copyright (C) 2000-2011 Free Software Foundation Europe e.V. 5 Copyright (C) 2011-2012 Planets Communications B.V. 6 Copyright (C) 2019-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_STORED_AUTOCHANGER_RESOURCE_H_ 25 #define BAREOS_STORED_AUTOCHANGER_RESOURCE_H_ 26 27 #include "lib/bareos_resource.h" 28 29 class alist; 30 31 namespace storagedaemon { 32 33 class AutochangerResource : public BareosResource { 34 public: 35 AutochangerResource(); 36 virtual ~AutochangerResource() = default; 37 AutochangerResource& operator=(const AutochangerResource& rhs); 38 bool PrintConfigToBuffer(PoolMem& buf); 39 40 alist* device; /**< List of DeviceResource device pointers */ 41 char* changer_name; /**< Changer device name */ 42 char* changer_command; /**< Changer command -- external program */ 43 brwlock_t changer_lock; /**< One changer operation at a time */ 44 }; 45 } /* namespace storagedaemon */ 46 47 #endif /* BAREOS_STORED_AUTOCHANGER_RESOURCE_H_ */ 48