X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Ftapefile.h;h=55d2ca5144bab672980b1d3d3506bfe01985e277;hb=HEAD;hp=a90da570fe15da8cbd501ac5bab109440b7c4ec6;hpb=fb2bd066c2f8b34addafe48d62550e3033a59431;p=debian%2Famanda diff --git a/server-src/tapefile.h b/server-src/tapefile.h index a90da57..55d2ca5 100644 --- a/server-src/tapefile.h +++ b/server-src/tapefile.h @@ -1,6 +1,7 @@ /* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 1991-1998 University of Maryland at College Park + * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved. * All Rights Reserved. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -40,21 +41,27 @@ typedef struct tape_s { char * datestamp; int reuse; char *label; + char *barcode; + char *meta; + guint64 blocksize; + char *comment; } tape_t; int read_tapelist(char *tapefile); int write_tapelist(char *tapefile); void clear_tapelist(void); -tape_t *lookup_tapelabel(char *label); +tape_t *lookup_tapelabel(const char *label); tape_t *lookup_tapepos(int pos); tape_t *lookup_tapedate(char *datestamp); int lookup_nb_tape(void); +char *get_last_reusable_tape_label(int skip); tape_t *lookup_last_reusable_tape(int skip); void remove_tapelabel(char *label); -tape_t *add_tapelabel(char *datestamp, char *label); +tape_t *add_tapelabel(char *datestamp, char *label, char *comment); int reusable_tape(tape_t *tp); int guess_runs_from_tapelist(void); +char *list_new_tapes(int nb); void print_new_tapes(FILE *output, int nb); #endif /* !TAPEFILE_H */