1 | /*
|
---|
2 | * $Id: mr-externs.h 684 2006-06-26 11:12:48Z bcornec $
|
---|
3 | *
|
---|
4 | * mondo-restore.c's externs
|
---|
5 | *
|
---|
6 | */
|
---|
7 |
|
---|
8 | #define SIZE 730000 * 1024 /* Size for ISO's stops -1 */
|
---|
9 | #define BIGGIELIST MNT_CDROM"/archives/biggielist.txt"
|
---|
10 | #define ARCHIVES_PATH MNT_CDROM"/archives"
|
---|
11 |
|
---|
12 | #ifdef __FreeBSD__
|
---|
13 | #define raid_device_record vinum_volume
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | extern bool ask_me_yes_or_no(char *);
|
---|
17 | extern char *calc_checksum_of_file(char *);
|
---|
18 | extern int closein_tape(struct s_bkpinfo *);
|
---|
19 | extern void close_evalcall_form(void);
|
---|
20 | extern char *call_program_and_get_last_line_of_output(char *);
|
---|
21 | extern void close_progress_form(void);
|
---|
22 | extern long count_lines_in_file(char *);
|
---|
23 | extern bool does_file_exist(char *);
|
---|
24 | extern int does_partition_exist(const char *device, int partno);
|
---|
25 | extern int do_my_funky_lvm_stuff(bool, bool);
|
---|
26 | extern int edit_filelist(struct s_node *);
|
---|
27 | extern int edit_mountlist(char *mountlist_fname, struct mountlist_itself *,
|
---|
28 | struct raidlist_itself *);
|
---|
29 | extern int format_everything(struct mountlist_itself *, bool, struct raidlist_itself *);
|
---|
30 | extern int format_device(char *, char *, struct raidlist_itself *);
|
---|
31 | extern void finish(int);
|
---|
32 | extern void free_filelist(struct s_node *);
|
---|
33 | extern long get_time(void);
|
---|
34 | extern bool get_isodir_info(char *, char *, char *, bool);
|
---|
35 | extern void fatal_error(char *);
|
---|
36 | extern void initialize_raid_record(struct raid_device_record *);
|
---|
37 | extern bool is_this_device_mounted(char *);
|
---|
38 | extern off_t length_of_file(char *);
|
---|
39 | extern char *last_line_of_file(char *);
|
---|
40 | extern struct s_node *load_filelist(char *);
|
---|
41 | extern void log_tape_pos(void);
|
---|
42 | extern void initialize_raidrec(struct raid_device_record *);
|
---|
43 | extern void log_file_end_to_screen(char *, char *);
|
---|
44 | extern void log_to_screen(const char *fmt, ...);
|
---|
45 | extern void mvaddstr_and_log_it(int, int, char *);
|
---|
46 | extern int make_dummy_partitions(char *, int);
|
---|
47 | extern int make_hole_for_file(char *);
|
---|
48 | extern int make_list_of_drives(struct mountlist_itself *,
|
---|
49 | struct list_of_disks *);
|
---|
50 | extern bool mountlist_contains_raid_devices(struct mountlist_itself *);
|
---|
51 | extern void open_evalcall_form(char *);
|
---|
52 | extern void open_progress_form(char *, char *, char *, char *, long);
|
---|
53 | extern int openin_cdstream(struct s_bkpinfo *);
|
---|
54 | extern int openin_tape(struct s_bkpinfo *);
|
---|
55 | extern int partition_device(char *, int, int, char *, long);
|
---|
56 | extern int partition_device_with_fdisk(char *, int, int, char *, long);
|
---|
57 | extern int partition_device_with_parted(char *, int, int, char *, long);
|
---|
58 | extern int partition_drive(struct mountlist_itself *, char *);
|
---|
59 | extern int partition_everything(struct mountlist_itself *);
|
---|
60 | extern void popup_and_OK(char *);
|
---|
61 | extern bool popup_and_get_string(char *, char *, char *, int);
|
---|
62 | extern void setup_newt_stuff(void);
|
---|
63 | extern void reset_bkpinfo(struct s_bkpinfo *);
|
---|
64 | extern int read_cfg_var(char *, char *, char *);
|
---|
65 | extern int read_file_from_stream_to_file(struct s_bkpinfo *, char *,
|
---|
66 | long long);
|
---|
67 | extern int read_file_from_stream_to_stream(struct s_bkpinfo *, FILE *,
|
---|
68 | long long);
|
---|
69 | extern int read_file_from_stream_FULL(struct s_bkpinfo *, char *, FILE *,
|
---|
70 | long long);
|
---|
71 | extern int read_header_block_from_stream(long long *, char *, int *);
|
---|
72 | extern void save_filelist(struct s_node *, char *);
|
---|
73 | extern void strip_spaces(char *);
|
---|
74 | extern int strcmp_inc_numbers(char *, char *);
|
---|
75 | extern char *slice_fname(long, long, char *, char *);
|
---|
76 | extern int stop_raid_device(char *);
|
---|
77 | extern int stop_all_raid_devices(struct mountlist_itself *);
|
---|
78 | extern void update_evalcall_form(int);
|
---|
79 | extern void update_progress_form(char *);
|
---|
80 | extern int verify_tape_backups(struct s_bkpinfo *);
|
---|
81 | extern char which_restore_mode(void);
|
---|
82 | extern int which_format_command_do_i_need(char *, char *);
|
---|
83 | extern int write_cfg_var(char *, char *, char *);
|
---|
84 | extern void wrong_marker(int, int);
|
---|
85 | extern void resize_drive_proportionately_to_suit_new_drives(struct
|
---|
86 | mountlist_itself
|
---|
87 | *mountlist,
|
---|
88 | char
|
---|
89 | *drive_name);
|
---|
90 | extern void resize_mountlist_proportionately_to_suit_new_drives(struct
|
---|
91 | mountlist_itself
|
---|
92 | *mountlist);
|
---|
93 | extern int get_cfg_file_from_archive(struct s_bkpinfo *);
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|
97 | /**************************************************************************
|
---|
98 | * Externals yummmy!!! *
|
---|
99 | **************************************************************************/
|
---|
100 | extern long g_maximum_progress;
|
---|
101 | extern long g_current_progress;
|
---|
102 | extern long g_start_time;
|
---|
103 | extern int g_currentY;
|
---|
104 | extern int g_current_media_number; /* set to 1 in mondo-tools.c (tape) */
|
---|
105 | extern long long g_tape_posK;
|
---|
106 | extern FILE *g_tape_stream;
|
---|
107 | extern bool g_cd_recovery;
|
---|
108 | extern bool g_text_mode;
|
---|
109 | extern bool g_restoring_live_from_cd;
|
---|
110 | extern int fput_string_one_char_at_a_time(FILE *, char *);
|
---|
111 |
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 |
|
---|
116 | extern int
|
---|
117 | evaluate_mountlist(struct mountlist_itself *mountlist, char *flaws_str_A,
|
---|
118 | char *flaws_str_B, char *flaws_str_C);
|
---|
119 |
|
---|
120 |
|
---|
121 |
|
---|
122 | #ifdef __FreeBSD__
|
---|
123 | #undef raid_device_record
|
---|
124 | #endif
|
---|