X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Fdisk_history.h;h=774ea3f5b672b78995f661784e0eead7ac5da078;hb=d28952249e392eb31bc8eecc53f6c477f30c617b;hp=b10f0358c364bad6016b867c9d56f81b4d047f12;hpb=1194fb66aa28d9929c3f2bef3cc6c1c3f40a60a4;p=debian%2Famanda diff --git a/server-src/disk_history.h b/server-src/disk_history.h index b10f035..774ea3f 100644 --- a/server-src/disk_history.h +++ b/server-src/disk_history.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 @@ -23,27 +24,35 @@ * Authors: the Amanda Development Team. Its members are listed in a * file named AUTHORS, in the root directory of this distribution. */ -/* $Id: disk_history.h,v 1.4 2005/10/11 01:17:01 vectro Exp $ +/* $Id: disk_history.h,v 1.6 2006/05/25 01:47:19 johnfranks Exp $ * * interface for obtaining disk backup history */ +#ifndef DISK_HISTORY_H +#define DISK_HISTORY_H #include "tapelist.h" typedef struct DUMP_ITEM { - char date[11]; + char date[20]; int level; int is_split; + int maxpart; char tape[256]; tapelist_t *tapes; - int file; + off_t file; + char *hostname; struct DUMP_ITEM *next; } DUMP_ITEM; -extern void clear_list P((void)); -extern void add_dump P((char *date, int level, char *tape, int file, int partnum)); -extern DUMP_ITEM *first_dump P((void)); -extern DUMP_ITEM *next_dump P((DUMP_ITEM *item)); +#define next_dump(item) ((item)->next) + +extern void clear_list(void); +extern void add_dump(char *hostname, char *date, int level, char *tape, + off_t file, int partnum, int maxpart); +extern void clean_dump(void); +extern DUMP_ITEM *first_dump(void); +#endif /* !DISK_HISTORY_H */