]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/tape_dev.h
Change copyright as per agreement with FSFE
[bacula/bacula] / bacula / src / stored / tape_dev.h
1 /*                                                              [vssfs.c] IQ
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2016 Kern Sibbald
5
6    The original author of Bacula is Kern Sibbald, with contributions
7    from many 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    This notice must be preserved when any source code is 
15    conveyed and/or propagated.
16
17    Bacula(R) is a registered trademark of Kern Sibbald.
18 */
19 /*
20  * Inspired by vtape.h
21  */
22
23 #ifndef __TAPE_DEV_
24 #define __TAPE_DEV_
25
26 class tape_dev : public DEVICE {
27 public:
28
29    tape_dev() { };
30    ~tape_dev() { };
31
32    /* DEVICE virtual functions that we redefine with our tape code */
33    bool fsf(int num);
34    bool offline();
35    bool rewind(DCR *dcr);
36    bool bsf(int num);
37    void lock_door();
38    void unlock_door();
39    bool reposition(DCR *dcr, uint32_t rfile, uint32_t rblock);
40    bool mount(int timeout);
41    bool unmount(int timeout);
42    bool mount_tape(int mount, int dotimeout);
43 };
44
45 #endif /* __TAPE_DEV_ */