2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2017 Kern Sibbald
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.
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.
14 This notice must be preserved when any source code is
15 conveyed and/or propagated.
17 Bacula(R) is a registered trademark of Kern Sibbald.
32 class tape_dev : public DEVICE {
38 /* DEVICE virtual functions that we redefine with our tape code */
40 bool offline(DCR *dcr);
41 bool rewind(DCR *dcr);
45 bool reposition(DCR *dcr, uint64_t raddr);
46 bool mount(int timeout);
47 bool unmount(int timeout);
48 bool mount_tape(int mount, int dotimeout);
49 bool weof(DCR *dcr, int num);
51 bool is_eod_valid(DCR *dcr);
53 bool open_device(DCR *dcr, int omode);
55 const char *print_type();
56 DEVICE *get_dev(DCR *dcr);
57 uint32_t get_hi_addr();
58 uint32_t get_low_addr();
59 uint64_t get_full_addr();
60 bool end_of_volume(DCR *dcr);
61 char *print_addr(char *buf, int32_t buf_len);
62 char *print_addr(char *buf, int32_t maxlen, boffset_t addr);
63 bool get_tape_alerts(DCR *dcr);
64 void show_tape_alerts(DCR *dcr, alert_list_type type,
65 alert_list_which which, alert_cb alert_callback);
71 #endif /* __TAPE_DEV_ */