xorriso  1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

jte.h File Reference
#include <stdio.h>
#include <unistd.h>
#include <regex.h>
#include "checksum.h"
Include dependency graph for jte.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _checksum_data
 
struct  path_match
 
struct  path_mapping
 
struct  _file_entry
 
struct  _unmatched_entry
 
struct  _entry
 
struct  _jigdo_file_entry_md5
 
struct  _jigdo_file_entry_sha256
 
struct  _jigdo_chunk_entry
 
struct  _jigdo_image_entry_md5
 
struct  _jigdo_image_entry_sha256
 
struct  _checksum_list_entry
 
struct  _jigdo_msg_entry
 

Macros

#define ROUND_UP(N, S)   ((((N) + (S) - 1) / (S)) * (S))
 
#define MD5_BITS   128
 
#define MD5_BYTES   (MD5_BITS / 8)
 
#define HEX_MD5_BYTES   (MD5_BITS / 4)
 
#define BASE64_MD5_BYTES   ((ROUND_UP (MD5_BITS, 6)) / 6)
 
#define SHA256_BITS   256
 
#define SHA256_BYTES   (SHA256_BITS / 8)
 
#define HEX_SHA256_BYTES   (SHA256_BITS / 4)
 
#define BASE64_SHA256_BYTES   ((ROUND_UP (SHA256_BITS, 6)) / 6)
 
#define MIN_JIGDO_FILE_SIZE   1024
 

Typedefs

typedef int BOOL
 
typedef enum _jtc_e jtc_t
 
typedef struct _file_entry file_entry_t
 
typedef struct _unmatched_entry unmatched_entry_t
 
typedef struct _entry entry_t
 
typedef struct _jigdo_file_entry_md5 jigdo_file_entry_md5_t
 
typedef struct _jigdo_file_entry_sha256 jigdo_file_entry_sha256_t
 
typedef struct _jigdo_chunk_entry jigdo_chunk_entry_t
 
typedef struct _jigdo_image_entry_md5 jigdo_image_entry_md5_t
 
typedef struct _jigdo_image_entry_sha256 jigdo_image_entry_sha256_t
 
typedef struct _checksum_list_entry checksum_list_entry_t
 
typedef struct _jigdo_msg_entry jigdo_msg_entry_t
 

Enumerations

enum  _jtc_e { JTE_TEMP_GZIP = 0 , JTE_TEMP_BZIP2 }
 

Functions

int write_jt_header (struct libjte_env *o, FILE *template_file, FILE *jigdo_file)
 
int write_jt_footer (struct libjte_env *o)
 
int jtwrite (struct libjte_env *o, void *buffer, int size, int count)
 
int write_jt_match_record (struct libjte_env *o, char *filename, char *mirror_name, int sector_size, off_t size, unsigned char *checksum)
 
int list_file_in_jigdo (struct libjte_env *o, char *filename, off_t size, char **realname, unsigned char *checksum)
 
int jte_add_exclude (struct libjte_env *o, char *pattern)
 
int jte_add_include (struct libjte_env *o, char *pattern)
 
int jte_add_mapping (struct libjte_env *o, char *arg)
 
int libjte_destroy_path_match_list (struct libjte_env *o, int flag)
 
int libjte_destroy_path_mapping (struct libjte_env *o, int flag)
 
int libjte_destroy_entry_list (struct libjte_env *o, int flag)
 
int libjte_destroy_checksum_list (struct libjte_env *o, int flag)
 
int libjte_report_no_mem (struct libjte_env *o, size_t size, int flag)
 
int libjte_add_msg_entry (struct libjte_env *o, char *message, int flag)
 

Variables

static const struct _checksum_data check_algos []
 

Macro Definition Documentation

◆ BASE64_MD5_BYTES

#define BASE64_MD5_BYTES   ((ROUND_UP (MD5_BITS, 6)) / 6)

Definition at line 73 of file jte.h.

◆ BASE64_SHA256_BYTES

#define BASE64_SHA256_BYTES   ((ROUND_UP (SHA256_BITS, 6)) / 6)

Definition at line 78 of file jte.h.

◆ HEX_MD5_BYTES

#define HEX_MD5_BYTES   (MD5_BITS / 4)

Definition at line 72 of file jte.h.

◆ HEX_SHA256_BYTES

#define HEX_SHA256_BYTES   (SHA256_BITS / 4)

Definition at line 77 of file jte.h.

◆ MD5_BITS

#define MD5_BITS   128

Definition at line 70 of file jte.h.

◆ MD5_BYTES

#define MD5_BYTES   (MD5_BITS / 8)

Definition at line 71 of file jte.h.

◆ MIN_JIGDO_FILE_SIZE

#define MIN_JIGDO_FILE_SIZE   1024

Definition at line 105 of file jte.h.

◆ ROUND_UP

#define ROUND_UP (   N,
 
)    ((((N) + (S) - 1) / (S)) * (S))

Definition at line 68 of file jte.h.

◆ SHA256_BITS

#define SHA256_BITS   256

Definition at line 75 of file jte.h.

◆ SHA256_BYTES

#define SHA256_BYTES   (SHA256_BITS / 8)

Definition at line 76 of file jte.h.

Typedef Documentation

◆ BOOL

typedef int BOOL

Definition at line 24 of file jte.h.

◆ checksum_list_entry_t

◆ entry_t

typedef struct _entry entry_t

◆ file_entry_t

typedef struct _file_entry file_entry_t

◆ jigdo_chunk_entry_t

◆ jigdo_file_entry_md5_t

◆ jigdo_file_entry_sha256_t

◆ jigdo_image_entry_md5_t

◆ jigdo_image_entry_sha256_t

◆ jigdo_msg_entry_t

◆ jtc_t

typedef enum _jtc_e jtc_t

◆ unmatched_entry_t

Enumeration Type Documentation

◆ _jtc_e

enum _jtc_e
Enumerator
JTE_TEMP_GZIP 
JTE_TEMP_BZIP2 

Definition at line 50 of file jte.h.

Function Documentation

◆ jte_add_exclude()

int jte_add_exclude ( struct libjte_env o,
char *  pattern 
)

Definition at line 171 of file jte.c.

References jte_add_path_match().

Referenced by libjte_add_exclude().

◆ jte_add_include()

int jte_add_include ( struct libjte_env o,
char *  pattern 
)

Definition at line 202 of file jte.c.

References jte_add_path_match().

Referenced by libjte_add_checksum_demand(), and libjte_add_md5_demand().

◆ jte_add_mapping()

int jte_add_mapping ( struct libjte_env o,
char *  arg 
)

◆ jtwrite()

int jtwrite ( struct libjte_env o,
void *  buffer,
int  size,
int  count 
)

◆ libjte_add_msg_entry()

◆ libjte_destroy_checksum_list()

int libjte_destroy_checksum_list ( struct libjte_env o,
int  flag 
)

◆ libjte_destroy_entry_list()

int libjte_destroy_entry_list ( struct libjte_env o,
int  flag 
)

◆ libjte_destroy_path_mapping()

int libjte_destroy_path_mapping ( struct libjte_env o,
int  flag 
)

Definition at line 414 of file jte.c.

References path_mapping::from, libjte_env::map_list, path_mapping::next, and path_mapping::to.

Referenced by libjte_destroy().

◆ libjte_destroy_path_match_list()

int libjte_destroy_path_match_list ( struct libjte_env o,
int  flag 
)

◆ libjte_report_no_mem()

int libjte_report_no_mem ( struct libjte_env o,
size_t  size,
int  flag 
)

Definition at line 107 of file jte.c.

References libjte_add_msg_entry(), and libjte_env::message_buffer.

Referenced by jte_add_path_match(), and libjte_decide_file_jigdo2().

◆ list_file_in_jigdo()

◆ write_jt_footer()

int write_jt_footer ( struct libjte_env o)

◆ write_jt_header()

◆ write_jt_match_record()

int write_jt_match_record ( struct libjte_env o,
char *  filename,
char *  mirror_name,
int  sector_size,
off_t  size,
unsigned char *  checksum 
)

Variable Documentation

◆ check_algos

const struct _checksum_data check_algos[]
static
Initial value:
=
{
{
"md5",
( 128 / 8) ,
( 128 / 4) ,
(((((( 128 ) + ( 6 ) - 1) / ( 6 )) * ( 6 ))) / 6)
},
{
"sha256",
( 256 / 8) ,
( 256 / 4) ,
(((((( 256 ) + ( 6 ) - 1) / ( 6 )) * ( 6 ))) / 6)
},
{
NULL,
0,
0,
0
}
}
@ NUM_CHECKSUMS
Definition: checksum.h:22
@ CHECK_MD5
Definition: checksum.h:18
@ CHECK_SHA256
Definition: checksum.h:20

Definition at line 47 of file jte.h.

Referenced by add_checksum_entry(), add_file_entry(), libjte_begin_data_file(), libjte_decide_file_jigdo(), libjte_set_checksum_algorithm(), libjte_write_match_record(), list_file_in_jigdo(), parse_checksum_list(), write_jigdo_file(), write_template_desc_entries(), and write_template_header().