source: MondoRescue/branches/3.1/mondo/src/mondorestore/mondoprep.h@ 3193

Last change on this file since 3193 was 3193, checked in by Bruno Cornec, 11 years ago
  • Finish with backports from 3.1 for now. Still some work to do, but we will now make that version compile and work again and serve as a base

so the gettext patch can be added

  • Property svn:keywords set to Id
File size: 3.9 KB
RevLine 
[1]1/***************************************************************************
2 mondoprep.h - description
3 -------------------
4 begin : Sat Apr 20 2002
5 copyright : (C) 2002 by Stan Benoit
6 email : troff@nakedsoul.org
[128]7 cvsid : $Id: mondoprep.h 3193 2013-09-29 07:31:34Z bruno $
[1]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/** Externals **************************************************************/
21
22extern long g_maximum_progress, g_current_progress, g_start_time;
23extern int g_currentY, g_current_cd_number;
24extern char *g_tape_device;
[128]25extern void finish(int);
26extern void setup_newt_stuff(void);
27extern char which_restore_mode(void);
28extern bool ask_me_yes_or_no(char *);
29extern long get_phys_size_of_drive(char *);
[1]30//extern void log_to_screen (char *);
[128]31extern void update_progress_form(char *);
32extern void open_progress_form(char *, char *, char *, char *, long);
33extern void close_progress_form(void);
34extern void popup_and_OK(char *);
[2316]35extern char *popup_and_get_string(char *, char *, char *);
[128]36extern long get_time(void);
37extern bool is_this_device_mounted(char *);
38extern int does_partition_exist(const char *device, int partno);
39extern int strcmp_inc_numbers(char *, char *);
40extern long count_lines_in_file(char *);
[684]41extern off_t length_of_file(char *);
[128]42extern long noof_lines_that_match_wildcard(char *, char *);
[1]43//extern char *slice_fname (long, long, bool, char *);
[128]44extern char *last_line_of_file(char *);
45extern void log_file_end_to_screen(char *, char *);
46extern int zero_out_a_device(char *);
47extern void mvaddstr_and_log_it(int, int, char *);
48extern bool does_file_exist(char *);
[1]49
50
51/** locals **********************************************************/
[128]52int extrapolate_mountlist_to_include_raid_partitions(struct mountlist_itself
53 *, struct mountlist_itself
54 *);
55bool mountlist_contains_raid_devices(struct mountlist_itself *);
56int start_raid_device(char *);
57int stop_raid_device(char *);
58int start_all_raid_devices(struct mountlist_itself *);
59int stop_all_raid_devices(struct mountlist_itself *);
[558]60int format_everything(struct mountlist_itself *, bool, struct raidlist_itself *);
[128]61int partition_device(FILE *, const char *, int, int, const char *,
62 long long);
63int partition_device_with_parted(FILE *, const char *, int, int,
64 const char *, long long);
65int partition_device_with_fdisk(FILE *, const char *, int, int,
66 const char *, long long);
[558]67int format_device(char *, char *, struct raidlist_itself *);
[128]68int partition_drive(struct mountlist_itself *, char *);
69int partition_everything(struct mountlist_itself *);
70int do_my_funky_lvm_stuff(bool, bool);
71int make_dummy_partitions(FILE *, char *, int);
72int make_list_of_drives(struct mountlist_itself *,
73 char drivelist[ARBITRARY_MAXIMUM][MAX_STR_LEN]);
74int set_partition_type(FILE *, const char *, int, const char *, long long);
75void resize_drive_proportionately_to_suit_new_drives(struct mountlist_itself
76 *mountlist,
77 char *drive_name);
78void resize_mountlist_proportionately_to_suit_new_drives(struct
79 mountlist_itself
80 *mountlist);
[1]81
82
[3147]83char *truncate_to_drive_name(const char *partition);
[128]84void create_mountlist_for_drive(struct mountlist_itself *mountlist,
85 char *drive_name,
86 struct mountlist_reference *drivemntlist);
Note: See TracBrowser for help on using the repository browser.