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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
/*
* libjte_private.h
*
* Copyright (c) 2010 Thomas Schmitt <scdbackup@gmx.net>
* 2019 Steve McIntyre <steve@einval.com>
*
* Environment structure for libjte
*
* GNU LGPL v2.1 (including option for GPL v2 or later)
*
*/
#ifndef LIBJTE_PRIVATE_H_INCLUDED
#define LIBJTE_PRIVATE_H_INCLUDED 1
/* Opaque handles */
struct path_match;
struct path_mapping;
struct libjte_env {
char *outfile;
int verbose;
int checksum_algo;
char *jtemplate_out;
char *jjigdo_out;
char *jchecksum_list;
FILE *jtjigdo;
FILE *jttemplate;
int jte_min_size;
int checksum_algo_iso;
int checksum_algo_tmpl;
jtc_t jte_template_compression;
struct path_match *exclude_list;
struct path_match *include_list;
struct path_mapping *map_list;
uint64_t template_size;
uint64_t image_size;
checksum_context_t *iso_context;
checksum_context_t *template_context;
entry_t *entry_list;
entry_t *entry_last;
FILE *t_file;
FILE *j_file;
int num_matches;
int num_chunks;
checksum_list_entry_t *checksum_list;
checksum_list_entry_t *checksum_last;
int include_in_jigdo; /* 0= put data blocks into .template, 1= do not */
char message_buffer[4096];
int error_behavior; /* bit0= report messages to stderr rather than to list
bit1= perform traditional exit(1)
*/
jigdo_msg_entry_t *msg_list;
/* Static variables from write_compressed_chunk() */
unsigned char *uncomp_buf;
size_t uncomp_size;
size_t uncomp_buf_used;
};
#endif /* LIBJTE_PRIVATE_H_INCLUDED */
|