par2check.h File Reference

Go to the source code of this file.


Data Structures

struct   _par2_file_slice_checksum_part
struct   _par2file

Typedefs

typedef struct
_par2_file_slice_checksum_part 
PAR2FileSliceChecksumPart
typedef struct _par2file  PAR2File

Functions

gboolean  par2_get_md5_chunks (const char *par2file, guint64 *block_size, GList **files)
  Read a PAR2 file and return a list of all the files in the set including verification data.
gboolean  par2_test_file (const char *directory, PAR2File *par2file, guint64 blocksize, int *num_blocks_found, int *num_blocks_missing)

Typedef Documentation

typedef struct _par2file PAR2File

typedef struct _par2_file_slice_checksum_part PAR2FileSliceChecksumPart


Function Documentation

gboolean par2_get_md5_chunks ( const char *  par2file,
guint64 *  block_size,
GList **  files  
)

Read a PAR2 file and return a list of all the files in the set including verification data.

Parameters:
par2file  Location of the PAR2 file
block_size  The block-size of each PAR2 blocks
files  A list of pointers to PAR2File's. All the elements need to be freed using g_slice_free(PAR2File, ptr)
Returns:
TRUE when a PAR2 file was found and successfully decoded

Definition at line 156 of file par2check.c.

gboolean par2_test_file ( const char *  directory,
PAR2File par2file,
guint64  blocksize,
int *  num_blocks_found,
int *  num_blocks_missing  
)

Definition at line 366 of file par2check.c.


Generated on Sun Oct 12 01:45:31 2008 for NNTPGrab by  1.5.4