summaryrefslogtreecommitdiff
path: root/genisoimage/jte.h
blob: 4469452d5878831f426b4038c1aa6fb50e34b1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * jte.c
 *
 * Copyright (c) 2004-2006 Steve McIntyre <steve@einval.com>
 *
 * Prototypes and declarations for JTE
 *
 * GNU GPL v2
 */

extern char *jtemplate_out;
extern char *jjigdo_out;
extern char *jmd5_list;
extern FILE	*jthelper;
extern FILE *jtjigdo;
extern FILE *jttemplate;
extern int  jte_min_size;
extern int  checksum_algo_iso;
extern int  checksum_algo_tmpl;

extern void write_jt_header(FILE *template_file, FILE *jigdo_file);
extern void write_jt_footer(void);
extern void jtwrite(void *buffer, int size, int count, int submode, BOOL islast);
extern void write_jt_match_record(char *filename, char *mirror_name, int sector_size, off_t size, unsigned char md5[16]);
extern int  list_file_in_jigdo(char *filename, off_t size, char **realname, unsigned char md5[16]);
extern int  jte_add_exclude(char *pattern);
extern int  jte_add_include(char *pattern);
extern int  jte_add_mapping(char *arg);

typedef enum _jtc_e
{
    JTE_TEMP_GZIP = 0,
    JTE_TEMP_BZIP2
} jtc_t;

extern jtc_t jte_template_compression;


#define MIN_JIGDO_FILE_SIZE 1024