lintian doesn't like orphan packages with uploaders...
[debian/amanda] / server-src / infofile.h
index eb068f7df20e909961a3344eab1392742fb31fdc..28ac933df1e0e7303d510a3301de301526de1ba1 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
@@ -25,7 +26,7 @@
  *                        University of Maryland at College Park
  */
 /*
- * $Id: infofile.h,v 1.7.4.4.8.2 2005/03/16 18:15:28 martinea Exp $
+ * $Id: infofile.h,v 1.14 2006/05/25 01:47:20 johnfranks Exp $
  *
  * interface for current info file reading code
  */
@@ -34,7 +35,6 @@
 
 #include "amanda.h"
 
-#define DUMP_LEVELS    10
 #define MAX_LABEL      80
 #define EPOCH          ((time_t)0)
 
 
 typedef struct stats_s {
     /* fields updated by dumper */
-    long size;                 /* original size of dump in kbytes */
-    long csize;                        /* compressed size of dump in kbytes */
-    long secs;                 /* time of dump in secs */
+    off_t size;                        /* original size of dump in kbytes */
+    off_t csize;               /* compressed size of dump in kbytes */
+    time_t secs;               /* time of dump in secs */
     time_t date;               /* end time of dump */
     /* fields updated by taper */
-    int filenum;               /* file number on tape */
+    off_t filenum;             /* file number on tape */
     char label[MAX_LABEL];     /* tape label */
 } stats_t;
 
 typedef struct history_s {
     int level;                 /* level of dump */
-    long size;                 /* original size of dump in kbytes */
-    long csize;                        /* compressed size of dump in kbytes */
+    off_t size;                        /* original size of dump in kbytes */
+    off_t csize;               /* compressed size of dump in kbytes */
     time_t date;               /* time of dump */
-    long secs;                 /* time of dump in secs */
+    time_t secs;               /* time of dump in secs */
 } history_t;
 
 typedef struct perf_s {
-    float rate[AVG_COUNT];
-    float comp[AVG_COUNT];
+    double rate[AVG_COUNT];
+    double comp[AVG_COUNT];
 } perf_t;
 
 typedef struct info_s {
@@ -80,17 +80,13 @@ typedef struct info_s {
 } info_t;
 
 
-int open_infofile P((char *infofile));
-void close_infofile P((void));
+int open_infofile(char *infofile);
+void close_infofile(void);
 
-char *get_dumpdate P((info_t *info, int level));
-double perf_average P((float *array, double def));
-int get_info P((char *hostname, char *diskname, info_t *info));
-int get_firstkey P((char *hostname, int hostname_size,
-                   char *diskname, int diskname_size));
-int get_nextkey  P((char *hostname, int hostname_size,
-                   char *diskname, int diskname_size));
-int put_info P((char *hostname, char *diskname, info_t *info));
-int del_info P((char *hostname, char *diskname));
+char *get_dumpdate(info_t *info, int level);
+double perf_average(double *array, double def);
+int get_info(char *hostname, char *diskname, info_t *info);
+int put_info(char *hostname, char *diskname, info_t *info);
+int del_info(char *hostname, char *diskname);
 
 #endif /* ! INFOFILE_H */