1 
2 /*
3    BAREOS® - Backup Archiving REcovery Open Sourced
4 
5    Copyright (C) 2018-2018 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 #ifndef BAREOS_STORED_BUTIL_H_
23 #define BAREOS_STORED_BUTIL_H_
24 
25 namespace storagedaemon {
26 
27 void PrintLsOutput(const char* fname,
28                    const char* link,
29                    int type,
30                    struct stat* statp);
31 JobControlRecord* SetupJcr(const char* name,
32                            char* dev_name,
33                            BootStrapRecord* bsr,
34                            DirectorResource* director,
35                            DeviceControlRecord* dcr,
36                            const char* VolumeName,
37                            bool readonly);
38 void DisplayTapeErrorStatus(JobControlRecord* jcr, Device* dev);
39 
40 } /* namespace storagedaemon */
41 
42 #endif  // BAREOS_STORED_BUTIL_H_
43