1 | /***************************************************************************
|
---|
2 | mondoverify.h - description
|
---|
3 | -------------------
|
---|
4 | begin : Mon Apr 22 2002
|
---|
5 | copyright : (C) 2002 by Stan Benoit
|
---|
6 | email : troff@nakedsoul.org
|
---|
7 | cvsid : $Id: libmondo-verify.h 1713 2007-10-27 18:31:17Z bruno $
|
---|
8 | ***************************************************************************/
|
---|
9 |
|
---|
10 | /***************************************************************************
|
---|
11 | * *
|
---|
12 | * This program is free software; you can redistribute it and/or modify *
|
---|
13 | * it under the terms of the GNU General Public License as published by *
|
---|
14 | * the Free Software Foundation; either version 2 of the License, or *
|
---|
15 | * (at your option) any later version. *
|
---|
16 | * *
|
---|
17 | ***************************************************************************/
|
---|
18 |
|
---|
19 |
|
---|
20 |
|
---|
21 |
|
---|
22 | /** externals *************************************************************/
|
---|
23 | int close_tape();
|
---|
24 | extern void close_progress_form(void);
|
---|
25 | extern long count_lines_in_file(char *);
|
---|
26 | extern bool does_file_exist(char *);
|
---|
27 | extern void exclude_nonexistent_files(char *);
|
---|
28 | extern void fatal_error(char *);
|
---|
29 | extern int find_and_mount_actual_cd(char *);
|
---|
30 | extern int find_cdrom_device(char *, bool);
|
---|
31 | extern void finish(int);
|
---|
32 | extern int get_last_filelist_number();
|
---|
33 | extern long get_time(void);
|
---|
34 | extern int grab_percentage_from_last_line_of_file(char *);
|
---|
35 | extern char *last_line_of_file(char *);
|
---|
36 | extern off_t length_of_file(char *);
|
---|
37 | extern void log_file_end_to_screen(char *, char *);
|
---|
38 | extern void log_tape_pos(void);
|
---|
39 | extern char *marker_to_string(int);
|
---|
40 | extern void open_evalcall_form(char *);
|
---|
41 | extern void open_progress_form(char *, char *, char *, char *, long);
|
---|
42 | extern int openin_tape();
|
---|
43 | extern void popup_and_OK(char *);
|
---|
44 | extern bool popup_and_get_string(char *, char *, char *, int);
|
---|
45 | extern int read_file_from_tape_to_file(char *,
|
---|
46 | long long);
|
---|
47 | extern int read_header_block_from_tape(long long *, char *, int *);
|
---|
48 | extern void setup_newt_stuff(void);
|
---|
49 | extern char *slice_fname(long, long, char *, char *);
|
---|
50 | extern long long space_occupied_by_cd(char *);
|
---|
51 | extern int strcmp_inc_numbers(char *, char *);
|
---|
52 | extern char *strip_afio_output_line(char *);
|
---|
53 | extern char *trim_empty_quotes(char *);
|
---|
54 | extern void update_evalcall_form(int);
|
---|
55 | extern void update_progress_form(char *);
|
---|
56 | extern int write_data_disks_to_tape(char *);
|
---|
57 | extern int write_header_block_to_tape(long long, char *, int);
|
---|
58 | extern void wrong_marker(int, int);
|
---|
59 |
|
---|
60 |
|
---|
61 | /** Locals *****************************************************************/
|
---|
62 |
|
---|
63 |
|
---|
64 | int verify_cd_image();
|
---|
65 | int verify_usb_image();
|
---|
66 | int verify_a_tarball(char *);
|
---|
67 | int verify_an_afioball_from_CD(char *);
|
---|
68 | int verify_an_afioball_from_tape(char *, long long);
|
---|
69 | int verify_a_biggiefile_from_tape(char *, long long);
|
---|
70 | int verify_afioballs_from_CD();
|
---|
71 | int verify_afioballs_from_tape();
|
---|
72 | int verify_biggiefiles_from_tape();
|
---|
73 | int verify_tape_backups();
|
---|
74 | char *vfy_tball_fname(char *, int);
|
---|
75 |
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 | /*---------------------------------------------------------------------*/
|
---|
80 |
|
---|
81 |
|
---|
82 |
|
---|
83 | extern FILE *g_tape_stream;
|
---|
84 | extern long g_start_time, g_minimum_progress, g_maximum_progress,
|
---|
85 | g_current_progress, g_currentY;
|
---|
86 | extern char err_log_lines[NOOF_ERR_LINES][MAX_STR_LEN];
|
---|
87 | extern int g_current_media_number;
|
---|
88 |
|
---|
89 | extern void mvaddstr_and_log_it(int, int, char *);
|
---|
90 |
|
---|
91 | extern bool ask_me_yes_or_no(char *);
|
---|
92 | extern char *calc_checksum_of_file(char *filename);
|
---|
93 | extern void center_string(char *, int);
|
---|
94 | extern void close_evalcall_form(void);
|
---|
95 | extern int closein_tape();
|
---|