00001 #ifndef _PAR2CHECK_H_ 00002 #define _PAR2CHECK_H_ 00003 00004 typedef struct _par2_file_slice_checksum_part { 00005 unsigned char md5_hash[16]; 00006 unsigned char crc[4]; 00007 } PAR2FileSliceChecksumPart; 00008 00009 typedef struct _par2file { 00010 const char filename[256]; 00011 unsigned char file_id[16]; 00012 unsigned char md5_hash_total[16]; 00013 unsigned char md5_hash_16k[16]; 00014 guint64 file_size; 00015 GList *slices; // List containing PAR2FileChecksumPart's 00016 } PAR2File; 00017 00018 gboolean par2_get_md5_chunks(const char *par2file, guint64 *block_size, GList **files); 00019 gboolean par2_test_file(const char *directory, PAR2File *par2file, guint64 blocksize, int *num_blocks_found, int *num_blocks_missing); 00020 00021 #endif /* _PAR2CHECK_H_ */