]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/tape_dev.h
Backport from BEE
[bacula/bacula] / bacula / src / stored / tape_dev.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2014-2014 Free Software Foundation Europe e.V.
5
6    The main author of Bacula is Kern Sibbald, with contributions from many
7    others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    Bacula® is a registered trademark of Kern Sibbald.
15 */
16 /*
17  * Inspired by vtape.h
18  */
19
20 #ifndef __TAPE_DEV_
21 #define __TAPE_DEV_
22
23 class tape_dev : public DEVICE {
24 public:
25
26    tape_dev() { };
27    ~tape_dev() { };
28
29    /* DEVICE virtual functions that we redefine with our tape code */
30    bool fsf(int num);
31    bool offline();
32    bool rewind(DCR *dcr);
33    bool bsf(int num);
34    void lock_door();
35    void unlock_door();
36    bool reposition(DCR *dcr, uint32_t rfile, uint32_t rblock);
37 };
38
39 #endif /* __TAPE_DEV_ */