cdbackup.h
branchtrunk
changeset 4 79da91042fcc
parent 2 6bcb44b9edb1
child 15 a9348bf5f6e7
     1.1 --- a/cdbackup.h	Sat Dec 29 15:23:55 2007 +0100
     1.2 +++ b/cdbackup.h	Sat Dec 29 15:25:21 2007 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /* cdbackup.h.
     1.5 -Copyright (c) 2000-2002 Craig Condit, Stefan Hülswitt.
     1.6 +Copyright (c) 2000-2004 Craig Condit, Stefan Hülswitt.
     1.7  
     1.8  Redistribution and use in source and binary forms, with or without
     1.9  modification, are permitted provided that the following conditions are met: 
    1.10 @@ -34,19 +34,30 @@
    1.11  
    1.12  #define MIN_BLOCKS	2   /* min. required blocks for a session: header block, one data block */
    1.13  
    1.14 +#define F_NONE   0   /* flag values */
    1.15 +#define F_CRC    1   /* backup has CRC checksum */
    1.16 +
    1.17  struct header_block {
    1.18    char id_str[33];	/* recorder id string (32 chars) */
    1.19    char vol_id[33];	/* volume label (32 characters) */
    1.20    char t_stamp[13];	/* timestamp */
    1.21    char disk_set;	/* disk number - starts with 1 on multi-disk set */
    1.22 +  char flags;           /* flags for the backup set */
    1.23  };
    1.24  
    1.25  struct data_block {
    1.26    char status;		/* status of block (0=continue, 1=done, 2=disk full) */
    1.27 -  char reserved;	/* reserved byte to make structure 4 bytes long */
    1.28 +  char flags;		/* flags for this data block */
    1.29    short datasize;	/* # of bytes in block (max = CD_FRAMESIZE-this) */
    1.30  };
    1.31  
    1.32 +extern int padsize;
    1.33 +extern long cd_len;
    1.34 +extern int verbose;
    1.35 +extern char *prg_name;
    1.36 +
    1.37 +void start_cdrecord(void);
    1.38 +
    1.39  #define DBSIZE   sizeof(struct data_block)
    1.40  #define DATASIZE (CD_FRAMESIZE-DBSIZE)
    1.41