lintian doesn't like orphan packages with uploaders...
[debian/amanda] / server-src / tapefile.h
index 6d8fdb97c9e0c1802279788d76a67a8499a483a2..55d2ca5144bab672980b1d3d3506bfe01985e277 100644 (file)
@@ -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,20 +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 */