X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Finfofile.h;h=bb33b6b9172bfd2425b3d035e3ae87ff371c5089;hb=3a9beabdb44ee1b2dcce141c2571fbb2b3fa90b1;hp=eb068f7df20e909961a3344eab1392742fb31fdc;hpb=0de2ad0a86685398621fb8ffa6990c029681bb3a;p=debian%2Famanda diff --git a/server-src/infofile.h b/server-src/infofile.h index eb068f7..bb33b6b 100644 --- a/server-src/infofile.h +++ b/server-src/infofile.h @@ -25,7 +25,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 +34,6 @@ #include "amanda.h" -#define DUMP_LEVELS 10 #define MAX_LABEL 80 #define EPOCH ((time_t)0) @@ -44,26 +43,26 @@ 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 +79,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 */