source: trunk/mondo/mondo/mondorestore/mr-externs.h @ 1

Last change on this file since 1 was 1, checked in by bcornec, 14 years ago

Initial import from latest mondo-2.04_cvs_20050503/mindi-1.04_cvs_20050503 on http://www.mondorescue.org

File size: 4.5 KB
Line 
1/*
2 * $Id: mr-externs.h,v 1.3 2004/06/10 15:29:13 hugo Exp $
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
16extern bool ask_me_yes_or_no(char*);
17extern char* calc_checksum_of_file(char*);
18extern int closein_tape(struct s_bkpinfo*);
19extern void close_evalcall_form(void);
20extern char *call_program_and_get_last_line_of_output(char*);
21extern void close_progress_form(void);
22extern long count_lines_in_file(char*);
23extern bool does_file_exist(char*);
24extern int does_partition_exist(const char*device, int partno);
25extern int do_my_funky_lvm_stuff(bool, bool);
26extern int edit_filelist(struct s_node *);
27extern int edit_mountlist(char* mountlist_fname, struct mountlist_itself*, struct raidlist_itself*);
28extern int format_everything(struct mountlist_itself*, bool);
29extern int format_device(char*,char*);
30extern void finish(int);
31extern void free_filelist(struct s_node*);
32extern long get_time(void);
33extern bool get_isodir_info(char*,char*,char*,bool);
34extern void fatal_error(char*);
35extern void initialize_raid_record(struct raid_device_record*);
36extern bool is_this_device_mounted(char*);
37extern long long length_of_file(char*);
38extern char *last_line_of_file(char*);
39extern struct s_node *load_filelist(char*);
40extern void log_tape_pos(void);
41extern void initialize_raidrec(struct raid_device_record*);
42extern void log_file_end_to_screen(char*,char*);
43extern void log_to_screen (const char *fmt, ...);
44extern void mvaddstr_and_log_it(int, int, char *);
45extern int make_dummy_partitions(char*,int);
46extern int make_hole_for_file(char*);
47extern int make_list_of_drives(struct mountlist_itself*, struct list_of_disks*);
48extern bool mountlist_contains_raid_devices(struct mountlist_itself*);
49extern void open_evalcall_form(char*);
50extern void open_progress_form(char*,char*,char*,char*,long);
51extern int openin_cdstream(struct s_bkpinfo *);
52extern int openin_tape(struct s_bkpinfo *);
53extern int partition_device(char*,int,int,char*,long);
54extern int partition_device_with_fdisk(char*,int,int,char*,long);
55extern int partition_device_with_parted(char*,int,int,char*,long);
56extern int partition_drive(struct mountlist_itself*, char*);
57extern int partition_everything(struct mountlist_itself*);
58extern void popup_and_OK(char*);
59extern bool popup_and_get_string(char*,char*,char*, int);
60extern void setup_newt_stuff(void);
61extern void reset_bkpinfo(struct s_bkpinfo*);
62extern int read_cfg_var(char*, char*, char*);
63extern int read_file_from_stream_to_file(struct s_bkpinfo*, char*, long long);
64extern int read_file_from_stream_to_stream(struct s_bkpinfo*, FILE*, long long);
65extern int read_file_from_stream_FULL(struct s_bkpinfo*, char*, FILE*, long long);
66extern int read_header_block_from_stream(long long *, char*, int *);
67extern void save_filelist(struct s_node*, char*);
68extern void strip_spaces(char*);
69extern int strcmp_inc_numbers(char*,char*);
70extern char *slice_fname(long,long,char*,char*);
71extern int stop_raid_device(char*);
72extern int stop_all_raid_devices(struct mountlist_itself*);
73extern void update_evalcall_form(int);
74extern void update_progress_form(char*);
75extern int verify_tape_backups(struct s_bkpinfo*);
76extern char which_restore_mode(void);
77extern int which_format_command_do_i_need(char*,char*);
78extern int write_cfg_var(char*,char*,char*);
79extern void wrong_marker(int,int);
80extern void resize_drive_proportionately_to_suit_new_drives(struct mountlist_itself *mountlist, char*drive_name);
81extern void resize_mountlist_proportionately_to_suit_new_drives(struct mountlist_itself *mountlist);
82extern int get_cfg_file_from_archive(struct s_bkpinfo*);
83
84
85
86/**************************************************************************
87 * Externals   yummmy!!!                                                  *
88 **************************************************************************/
89extern long   g_maximum_progress;
90extern long   g_current_progress;
91extern long   g_start_time;
92extern int    g_currentY;
93extern int    g_current_media_number;  /* set to 1 in mondo-tools.c (tape)*/
94extern long long g_tape_posK;
95extern FILE *g_tape_stream;
96extern bool g_cd_recovery;
97extern bool g_text_mode;
98extern bool g_restoring_live_from_cd;
99extern int fput_string_one_char_at_a_time(FILE*, char*);
100
101
102
103
104
105extern int
106evaluate_mountlist (struct mountlist_itself *mountlist, char *flaws_str_A,
107            char *flaws_str_B, char *flaws_str_C);
108
109
110
111#ifdef __FreeBSD__
112#undef raid_device_record
113#endif
Note: See TracBrowser for help on using the repository browser.