Imported Upstream version 2.5.1
[debian/amanda] / server-src / diskfile.h
index f53441c9eb77f3feb335a18782bf3d602a7d8cf6..c8ad6742eea7a963e25fb7bce40b728cccfabfd5 100644 (file)
@@ -25,7 +25,7 @@
  *                        University of Maryland at College Park
  */
 /*
- * $Id: diskfile.h,v 1.32 2005/12/09 03:22:52 paddy_s Exp $
+ * $Id: diskfile.h,v 1.38 2006/06/22 20:41:33 martinea Exp $
  *
  * interface for disklist file reading code
  */
@@ -49,58 +49,61 @@ typedef struct amhost_s {
 } am_host_t;
 
 typedef struct disk_s {
-    int line;                          /* line number of last definition */
+    int                line;                   /* line number of last definition */
     struct disk_s *prev, *next;                /* doubly linked disk list */
 
-    am_host_t *host;                   /* host list */
+    am_host_t  *host;                  /* host list */
     struct disk_s *hostnext;
 
-    char *name;                                /* label name for disk */
-    char *device;                      /* device name for disk, eg "sd0g" */
-    char *dtype_name;                  /* name of dump type   XXX shouldn't need this */
-    char *program;                     /* dump program, eg DUMP, GNUTAR */
-    char *srvcompprog;                  /* custom compression server filter */
-    char *clntcompprog;                 /* custom compression client filter */
-    char *srv_encrypt;                  /* custom encryption server filter */
-    char *clnt_encrypt;                 /* custom encryption client filter */
-    sl_t *exclude_file;                        /* file exclude spec */
-    sl_t *exclude_list;                        /* exclude list */
-    sl_t *include_file;                        /* file include spec */
-    sl_t *include_list;                        /* include list */
-    int exclude_optional;              /* exclude list are optional */
-    int include_optional;              /* include list are optional */
-    long priority;                     /* priority of disk */
-    long tape_splitsize;               /* size of dumpfile chunks on tape */
-    char *split_diskbuffer;            /* place where we can buffer PORT-WRITE dumps other than RAM */
-    long fallback_splitsize;           /* size for in-RAM PORT-WRITE buffers */
-    long dumpcycle;                    /* days between fulls */
-    long frequency;                    /* XXX - not used */
-    char *security_driver;             /* type of authentication (per disk) */
-    int maxdumps;                      /* max number of parallel dumps (per system) */
-    int maxpromoteday;                 /* maximum of promote day */
-    int bumppercent;
-    int bumpsize;
-    int bumpdays;
-    double bumpmult;
-    time_t start_t;                    /* start this dump after this time */
-    int strategy;                      /* what dump strategy to use */
-    int estimate;                      /* what estimate strategy to use */
-    int compress;                      /* type of compression to use */
-    int encrypt;                       /* type of encryption to use */
-    char *srv_decrypt_opt;             /* server-side decryption option parameter to use */
-    char *clnt_decrypt_opt;             /* client-side decryption option parameter to use */
-    float comprate[2];                 /* default compression rates */
+    char       *name;                  /* label name for disk */
+    char       *device;                /* device name for disk, eg "sd0g" */
+    char       *dtype_name;            /* name of dump type   XXX shouldn't need this */
+    char       *program;               /* dump program, eg DUMP, STAR, GNUTAR */
+    char       *srvcompprog;           /* custom compression server filter */
+    char       *clntcompprog;          /* custom compression client filter */
+    char       *srv_encrypt;           /* custom encryption server filter */
+    char       *clnt_encrypt;          /* custom encryption client filter */
+    char       *amandad_path;          /* amandad path on the client */
+    char       *client_username;       /* username to connect on the client */
+    char       *ssh_keys;              /* ssh_key file to use */
+    sl_t       *exclude_file;          /* file exclude spec */
+    sl_t       *exclude_list;          /* exclude list */
+    sl_t       *include_file;          /* file include spec */
+    sl_t       *include_list;          /* include list */
+    int                exclude_optional;       /* exclude list are optional */
+    int                include_optional;       /* include list are optional */
+    int                priority;               /* priority of disk */
+    off_t      tape_splitsize;         /* size of dumpfile chunks on tape */
+    char       *split_diskbuffer;      /* place where we can buffer PORT-WRITE dumps other than RAM */
+    off_t      fallback_splitsize;     /* size for in-RAM PORT-WRITE buffers */
+    int                dumpcycle;              /* days between fulls */
+    long       frequency;              /* XXX - not used */
+    char       *security_driver;       /* type of authentication (per disk) */
+    int                maxdumps;               /* max number of parallel dumps (per system) */
+    int                maxpromoteday;          /* maximum of promote day */
+    int                bumppercent;
+    off_t      bumpsize;
+    int                bumpdays;
+    double     bumpmult;
+    time_t     start_t;                /* start this dump after this time */
+    int                strategy;               /* what dump strategy to use */
+    int                estimate;               /* what estimate strategy to use */
+    int                compress;               /* type of compression to use */
+    int                encrypt;                /* type of encryption to use */
+    char       *srv_decrypt_opt;       /* server-side decryption option parameter to use */
+    char       *clnt_decrypt_opt;      /* client-side decryption option parameter to use */
+    double     comprate[2];            /* default compression rates */
     /* flag options */
-    unsigned int record:1;             /* record dump in /etc/dumpdates ? */
-    unsigned int skip_incr:1;          /* incs done externally ? */
-    unsigned int skip_full:1;          /* fulls done externally ? */
-    unsigned int no_hold:1;            /* don't use holding disk ? */
-    unsigned int kencrypt:1;
-    unsigned int index:1;              /* produce an index ? */
-    int spindle;                       /* spindle # - for parallel dumps */
-    int inprogress;                    /* being dumped now? */
-    int todo;
-    void *up;                          /* generic user pointer */
+    int                record;                 /* record dump in /etc/dumpdates ? */
+    int                skip_incr;              /* incs done externally ? */
+    int                skip_full;              /* fulls done externally ? */
+    int                to_holdingdisk;         /* use holding disk ? */
+    int                kencrypt;
+    int                index;                  /* produce an index ? */
+    int                spindle;                /* spindle # - for parallel dumps */
+    int                inprogress;             /* being dumped now? */
+    int                todo;
+    void       *up;                    /* generic user pointer */
 } disk_t;
 
 typedef struct disklist_s {
@@ -110,26 +113,26 @@ typedef struct disklist_s {
 #define empty(dlist)   ((dlist).head == NULL)
 
 
-int read_diskfile P((const char *, disklist_t *));
+int read_diskfile(const char *, disklist_t *);
 
-am_host_t *lookup_host P((const char *hostname));
-disk_t *lookup_disk P((const char *hostname, const char *diskname));
+am_host_t *lookup_host(const char *hostname);
+disk_t *lookup_disk(const char *hostname, const char *diskname);
 
-disk_t *add_disk P((disklist_t *list, char *hostname, char *diskname));
+disk_t *add_disk(disklist_t *list, char *hostname, char *diskname);
 
-void enqueue_disk P((disklist_t *list, disk_t *disk));
-void headqueue_disk P((disklist_t *list, disk_t *disk));
-void insert_disk P((disklist_t *list, disk_t *disk, int (*f)(disk_t *a, disk_t *b)));
-int  find_disk P((disklist_t *list, disk_t *disk));
-void sort_disk P((disklist_t *in, disklist_t *out, int (*f)(disk_t *a, disk_t *b)));
-disk_t *dequeue_disk P((disklist_t *list));
-void remove_disk P((disklist_t *list, disk_t *disk));
+void enqueue_disk(disklist_t *list, disk_t *disk);
+void headqueue_disk(disklist_t *list, disk_t *disk);
+void insert_disk(disklist_t *list, disk_t *disk, int (*f)(disk_t *a, disk_t *b));
+int  find_disk(disklist_t *list, disk_t *disk);
+void sort_disk(disklist_t *in, disklist_t *out, int (*f)(disk_t *a, disk_t *b));
+disk_t *dequeue_disk(disklist_t *list);
+void remove_disk(disklist_t *list, disk_t *disk);
 
-void dump_queue P((char *str, disklist_t q, int npr, FILE *f));
+void dump_queue(char *str, disklist_t q, int npr, FILE *f);
 
-char *optionstr P((disk_t *dp, am_feature_t *their_features, FILE *fdout));
+char *optionstr(disk_t *dp, am_feature_t *their_features, FILE *fdout);
 
-void match_disklist P((disklist_t *origqp, int sargc, char **sargv));
-void free_disklist P((disklist_t *dl));
+char *match_disklist(disklist_t *origqp, int sargc, char **sargv);
+void free_disklist(disklist_t *dl);
 
 #endif /* ! DISKFILE_H */