1 /* 2 * libjte_private.h 3 * 4 * Copyright (c) 2010 Thomas Schmitt <scdbackup@gmx.net> 5 * 2019 Steve McIntyre <steve@einval.com> 6 * 7 * Environment structure for libjte 8 * 9 * GNU LGPL v2.1 (including option for GPL v2 or later) 10 * 11 */ 12 13 14 #ifndef LIBJTE_PRIVATE_H_INCLUDED 15 #define LIBJTE_PRIVATE_H_INCLUDED 1 16 17 /* Opaque handles */ 18 struct path_match; 19 struct path_mapping; 20 21 22 struct libjte_env { 23 char *outfile; 24 int verbose; 25 int checksum_algo; 26 char *jtemplate_out; 27 char *jjigdo_out; 28 char *jchecksum_list; 29 FILE *jtjigdo; 30 FILE *jttemplate; 31 int jte_min_size; 32 int checksum_algo_iso; 33 int checksum_algo_tmpl; 34 jtc_t jte_template_compression; 35 struct path_match *exclude_list; 36 struct path_match *include_list; 37 struct path_mapping *map_list; 38 uint64_t template_size; 39 uint64_t image_size; 40 checksum_context_t *iso_context; 41 checksum_context_t *template_context; 42 entry_t *entry_list; 43 entry_t *entry_last; 44 FILE *t_file; 45 FILE *j_file; 46 int num_matches; 47 int num_chunks; 48 checksum_list_entry_t *checksum_list; 49 checksum_list_entry_t *checksum_last; 50 51 int include_in_jigdo; /* 0= put data blocks into .template, 1= do not */ 52 53 char message_buffer[4096]; 54 int error_behavior; /* bit0= report messages to stderr rather than to list 55 bit1= perform traditional exit(1) 56 */ 57 jigdo_msg_entry_t *msg_list; 58 59 /* Static variables from write_compressed_chunk() */ 60 unsigned char *uncomp_buf; 61 size_t uncomp_size; 62 size_t uncomp_buf_used; 63 }; 64 65 66 #endif /* LIBJTE_PRIVATE_H_INCLUDED */