X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Fdiskfile.h;h=a7f13b60c233cf70d4eb3436d720154a17ee3707;hb=94a044f90357edefa6f4ae9f0b1d5885b0e34aee;hp=78a49efed844ce77dbbbacd5fec955d4ffa7a690;hpb=d3b2175e084f88c8736ad7073eacbf4670147aec;p=debian%2Famanda diff --git a/server-src/diskfile.h b/server-src/diskfile.h index 78a49ef..a7f13b6 100644 --- a/server-src/diskfile.h +++ b/server-src/diskfile.h @@ -36,13 +36,19 @@ #include "conffile.h" #include "amfeatures.h" +typedef struct netif_s { + struct netif_s *next; + interface_t *config; + unsigned long curusage; +} netif_t; + typedef struct amhost_s { struct amhost_s *next; /* next host */ char *hostname; /* name of host */ struct disk_s *disks; /* linked list of disk records */ int inprogress; /* # dumps in progress */ int maxdumps; /* maximum dumps in parallel */ - interface_t *netif; /* network interface this host is on */ + netif_t *netif; /* network interface this host is on */ time_t start_t; /* start dump after this time */ char *up; /* generic user pointer */ am_feature_t *features; /* feature set */ @@ -138,4 +144,6 @@ char *optionstr(disk_t *dp, am_feature_t *their_features, FILE *fdout); char *match_disklist(disklist_t *origqp, int sargc, char **sargv); void free_disklist(disklist_t *dl); +netif_t *disklist_netifs(void); + #endif /* ! DISKFILE_H */