X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tape-src%2Ftapeio.h;h=564ab99d1cecc9554ff64afbf8e64a346f3aa778;hb=1194fb66aa28d9929c3f2bef3cc6c1c3f40a60a4;hp=c3783192c568c2d8ccf33262081ea5f5b27a9a6d;hpb=3ab887b9bc819a846c75dd7f2ee5d41fac22b19f;p=debian%2Famanda diff --git a/tape-src/tapeio.h b/tape-src/tapeio.h index c378319..564ab99 100644 --- a/tape-src/tapeio.h +++ b/tape-src/tapeio.h @@ -25,7 +25,7 @@ * University of Maryland at College Park */ /* - * $Id: tapeio.h,v 1.9.2.2.4.3.2.3 2003/03/07 20:55:37 martinea Exp $ + * $Id: tapeio.h,v 1.20 2005/12/21 19:07:51 paddy_s Exp $ * * interface for tapeio.c */ @@ -33,6 +33,7 @@ #define TAPEIO_H #include "amanda.h" +#include "util.h" /* For BSTRNCMP */ /* * Tape drive status structure. This abstracts the things we are @@ -65,8 +66,9 @@ struct am_mt_status { }; #define FAKE_LABEL "[fake-label]" +#define NO_LABEL "[no-label-yet]" -int tape_open (); +int tape_open (char *, int, ...); int tapefd_rewind P((int tapefd)); int tapefd_unload P((int tapefd)); @@ -85,6 +87,10 @@ char *tapefd_wrlabel P((int tapefd, char *datestamp, char *label, unsigned int s)); + +char *auto_tapefd_label P((int tapefd, char **datestamp, char **label)); +char *auto_tape_label P((char *dev, char **datestamp, char **label)); + char *tapefd_wrendmark P((int tapefd, char *datestamp, unsigned int s)); int tapefd_eof P((int tapefd)); /* just used in tapeio-test */ @@ -139,4 +145,7 @@ char *tapeio_next_devname P((char * dev_left, char * dev_right, char **dev_next)); +#define NOT_AMANDA_TAPE_MSG "not an amanda tape" +#define CHECK_NOT_AMANDA_TAPE_MSG(x) (!BSTRNCMP(x, NOT_AMANDA_TAPE_MSG)) + #endif /* ! TAPEIO_H */