From: Ben O. <ben...@us...> - 2002-02-15 19:21:10
|
Update of /cvsroot/njbfs/njbfs In directory usw-pr-cvs1:/tmp/cvs-serv1813 Modified Files: njbfs.h Log Message: Ben: first commit Index: njbfs.h =================================================================== RCS file: /cvsroot/njbfs/njbfs/njbfs.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** njbfs.h 10 Feb 2002 21:59:23 -0000 1.4 --- njbfs.h 15 Feb 2002 19:21:07 -0000 1.5 *************** *** 20,23 **** --- 20,26 ---- #define NJBFS_BLOCKSIZE_BITS 12 /* 2^x = blocksize */ + #define NJBFS_ID3SIZE 8192 /* size of the false tag at the top */ + #define NJBFS_FOOTERSIZE 4096 /* size of the zeroed footers at the bottom */ + struct njbfs_mount_data { int version; *************** *** 36,39 **** --- 39,45 ---- #define NJBFS_MODE_ARTISTS 4 + char *njbfs_strdup(char *in); + #define SAFE_STRDUP(x, y) if ( !(x=njbfs_strdup(y)) ) return -ENOMEM; + struct njbfs_sb_info { struct njbfs_mount_data mnt; *************** *** 58,61 **** --- 64,68 ---- unsigned long f_blksize; unsigned long f_blocks; + int open; u_int32_t fileid; /* file id of the NJB */ /* file name parsing */ *************** *** 68,73 **** u_int32_t length; /* optional frame: length in seconds */ u_int32_t tracknum; /* optional frame: album track number */ track_t *track; /* track */ ! }; --- 75,81 ---- u_int32_t length; /* optional frame: length in seconds */ u_int32_t tracknum; /* optional frame: album track number */ + u_int32_t year; /* optional frame: album track number */ track_t *track; /* track */ ! off_t real_size; /* the size that got reported from the njb */ }; |