#include #include #include #include #include #include #include #include #include #include #include "par2check.h"Go to the source code of this file.
        Data Structures | 
    |
| struct | _par2_packet_hdr | 
| struct | _par2_file_descriptor | 
| struct | _par2_file_slice_checksum | 
| struct | _par2_main | 
| struct | MAGIC | 
| struct | PACKETTYPE | 
        Defines | 
    |
| #define | PACKED __attribute__ ((packed)) | 
| #define | PRINT(x,...) | 
        Typedefs | 
    |
| typedef struct _par2_packet_hdr | PAR2PacketHDR | 
| typedef struct _par2_file_descriptor  | 
      PAR2FileDescriptor | 
| typedef struct _par2_file_slice_checksum  | 
      PAR2FileSliceChecksum | 
| typedef struct _par2_main | PAR2Main | 
| typedef struct MAGIC | MAGIC | 
| typedef struct PACKETTYPE | PACKETTYPE | 
        Functions | 
    |
| gboolean | test_par2_packet_hdr (const unsigned char *data) | 
| gboolean | test_par2_is_file_description_type (const unsigned char *data) | 
| gboolean | test_par2_is_file_verification_type (const unsigned char *data) | 
| gboolean | test_par2_is_main_packet_type (const unsigned char *data) | 
| gboolean | test_par2_is_recovery_block_packet_type (const unsigned char *data) | 
| gboolean | test_par2_is_creator_packet_type (const unsigned char *data) | 
| 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) | 
        Variables | 
    |
| struct MAGIC | PACKED | 
| MAGIC | magic_hdr = {{'P', 'A', 'R', '2', '\0','P', 'K', 'T'}} | 
| PACKETTYPE | fileverificationpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'I', 'F', 'S', 'C', '\0','\0','\0','\0'}} | 
| PACKETTYPE | filedescriptionpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'F', 'i', 'l', 'e', 'D', 'e', 's', 'c' }} | 
| PACKETTYPE | mainpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'M', 'a', 'i', 'n', '\0','\0','\0','\0'}} | 
| PACKETTYPE | recoveryblockpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'R', 'e', 'c', 'v', 'S', 'l', 'i', 'c' }} | 
| PACKETTYPE | creatorpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'C', 'r', 'e', 'a', 't', 'o', 'r', '\0'}} | 
| struct RECOVERYBLOCKPACKET PACKED __attribute__ ((packed)) | 
Definition at line 64 of file par2check.c.
| #define PRINT | ( | x, | |||
| ... | ) | 
Definition at line 83 of file par2check.c.
| typedef struct MAGIC MAGIC | 
Definition at line 67 of file par2check.c.
| typedef struct PACKETTYPE PACKETTYPE | 
Definition at line 68 of file par2check.c.
| typedef struct _par2_file_descriptor PAR2FileDescriptor | 
| typedef struct _par2_file_slice_checksum PAR2FileSliceChecksum | 
| typedef struct _par2_main PAR2Main | 
| typedef struct _par2_packet_hdr PAR2PacketHDR | 
| 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.
| 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) | 
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.
| gboolean test_par2_is_creator_packet_type | ( | const unsigned char * | data | ) | 
Definition at line 137 of file par2check.c.
| gboolean test_par2_is_file_description_type | ( | const unsigned char * | data | ) | 
Definition at line 97 of file par2check.c.
| gboolean test_par2_is_file_verification_type | ( | const unsigned char * | data | ) | 
Definition at line 107 of file par2check.c.
| gboolean test_par2_is_main_packet_type | ( | const unsigned char * | data | ) | 
Definition at line 117 of file par2check.c.
| gboolean test_par2_is_recovery_block_packet_type | ( | const unsigned char * | data | ) | 
Definition at line 127 of file par2check.c.
| gboolean test_par2_packet_hdr | ( | const unsigned char * | data | ) | 
Definition at line 87 of file par2check.c.
| PACKETTYPE creatorpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'C', 'r', 'e', 'a', 't', 'o', 'r', '\0'}} | 
Definition at line 78 of file par2check.c.
| PACKETTYPE filedescriptionpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'F', 'i', 'l', 'e', 'D', 'e', 's', 'c' }} | 
Definition at line 75 of file par2check.c.
| PACKETTYPE fileverificationpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'I', 'F', 'S', 'C', '\0','\0','\0','\0'}} | 
Definition at line 74 of file par2check.c.
| MAGIC magic_hdr = {{'P', 'A', 'R', '2', '\0','P', 'K', 'T'}} | 
Definition at line 73 of file par2check.c.
| PACKETTYPE mainpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'M', 'a', 'i', 'n', '\0','\0','\0','\0'}} | 
Definition at line 76 of file par2check.c.
| struct PACKETTYPE PACKED | 
| PACKETTYPE recoveryblockpacket_type = {{'P', 'A', 'R', ' ', '2', '.', '0', '\0', 'R', 'e', 'c', 'v', 'S', 'l', 'i', 'c' }} | 
Definition at line 77 of file par2check.c.