Changeset 1647


Ignore:
Timestamp:
Sep 24, 2007, 3:24:45 AM (12 years ago)
Author:
bruno
Message:

remove bkpinfo also from header files

Location:
branches/2.2.5/mondo/src
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/libmondo-archive-EXT.h

    r543 r1647  
    22
    33
    4 extern int archive_this_fileset(struct s_bkpinfo *bkpinfo, char *filelist,
     4extern int archive_this_fileset(char *filelist,
    55                                char *fname, int setno);
    6 extern int backup_data(struct s_bkpinfo *bkpinfo);
    7 extern int call_mindi_to_supply_boot_disks(struct s_bkpinfo *bkpinfo);
    8 extern bool can_we_fit_these_files_on_media(struct s_bkpinfo *bkpinfo,
     6extern int backup_data();
     7extern int call_mindi_to_supply_boot_disks();
     8extern bool can_we_fit_these_files_on_media(
    99                                            char *files_to_add, ...);
    10 extern int do_that_initial_phase(struct s_bkpinfo *bkpinfo);
    11 extern int do_that_final_phase(struct s_bkpinfo *bkpinfo);
     10extern int do_that_initial_phase();
     11extern int do_that_final_phase();
    1212extern int figure_out_kernel_path_interactively_if_necessary(char *kernel);
    13 extern int make_those_slices_phase(struct s_bkpinfo *bkpinfo);
    14 extern int make_those_afios_phase(struct s_bkpinfo *bkpinfo);
    15 extern int make_slices_and_images(struct s_bkpinfo *bkpinfo,
     13extern int make_those_slices_phase();
     14extern int make_those_afios_phase();
     15extern int make_slices_and_images(
    1616                                  char *biggielist_fname);
    17 extern int make_iso_fs(struct s_bkpinfo *bkpinfo, char *destfile);
    18 extern int make_afioballs_and_images(struct s_bkpinfo *bkpinfo);
    19 extern int (*move_files_to_cd) (struct s_bkpinfo *, char *, ...);
    20 extern int _move_files_to_cd(struct s_bkpinfo *bkpinfo, char *, ...);
    21 extern int (*move_files_to_stream) (struct s_bkpinfo *, char *, ...);
    22 extern int _move_files_to_stream(struct s_bkpinfo *bkpinfo,
     17extern int make_iso_fs(char *destfile);
     18extern int make_afioballs_and_images();
     19extern int (*move_files_to_cd) (char *, ...);
     20extern int _move_files_to_cd(char *, ...);
     21extern int (*move_files_to_stream) (char *, ...);
     22extern int _move_files_to_stream(
    2323                                 char *files_to_add, ...);
    24 extern int offer_to_write_boot_floppies_to_physical_disks(struct s_bkpinfo
    25                                                           *bkpinfo);
     24extern int offer_to_write_boot_floppies_to_physical_disks();
    2625extern void pause_and_ask_for_cdr(int, bool *);
    27 extern int slice_up_file_etc(struct s_bkpinfo *bkpinfo,
     26extern int slice_up_file_etc(
    2827                             char *biggie_filename,
    2928                             char *ntfsprog_fifo,
     
    3130                             long noof_biggie_files,
    3231                             bool use_ntfsprog);
    33 extern int verify_data(struct s_bkpinfo *bkpinfo);
     32extern int verify_data();
    3433extern void wipe_archives(char *d);
    35 extern int write_iso_and_go_on(struct s_bkpinfo *bkpinfo, bool last_cd);
    36 extern int write_final_iso_if_necessary(struct s_bkpinfo *bkpinfo);
    37 extern int call_growisofs(struct s_bkpinfo *bkpinfo, char *destfile);
    38 extern int make_afioballs_and_images_SINGLETHREAD(struct s_bkpinfo
    39                                                   *bkpinfo);
    40 extern int archive_this_fileset_with_star(struct s_bkpinfo *bkpinfo,
     34extern int write_iso_and_go_on(bool last_cd);
     35extern int write_final_iso_if_necessary();
     36extern int call_growisofs(char *destfile);
     37extern int make_afioballs_and_images_SINGLETHREAD();
     38extern int archive_this_fileset_with_star(
    4139                                          char *filelist, char *fname,
    4240                                          int setno);
  • branches/2.2.5/mondo/src/common/libmondo-archive.h

    r543 r1647  
    33 */
    44
    5 int archive_this_fileset(struct s_bkpinfo *bkpinfo, char *filelist,
     5int archive_this_fileset(char *filelist,
    66                         char *fname, int setno);
    7 int backup_data(struct s_bkpinfo *bkpinfo);
    8 int call_mindi_to_supply_boot_disks(struct s_bkpinfo *bkpinfo);
    9 bool can_we_fit_these_files_on_media(struct s_bkpinfo *bkpinfo,
     7int backup_data();
     8int call_mindi_to_supply_boot_disks();
     9bool can_we_fit_these_files_on_media(
    1010                                     char *files_to_add, ...);
    11 int do_that_initial_phase(struct s_bkpinfo *bkpinfo);
    12 int do_that_final_phase(struct s_bkpinfo *bkpinfo);
     11int do_that_initial_phase();
     12int do_that_final_phase();
    1313int figure_out_kernel_path_interactively_if_necessary(char *kernel);
    1414bool get_bit_N_of_array(char *array, int N);
    15 int make_those_slices_phase(struct s_bkpinfo *bkpinfo);
    16 int make_those_afios_phase(struct s_bkpinfo *bkpinfo);
    17 int make_slices_and_images(struct s_bkpinfo *bkpinfo,
     15int make_those_slices_phase();
     16int make_those_afios_phase();
     17int make_slices_and_images(
    1818                           char *biggielist_fname);
    19 int make_iso_fs(struct s_bkpinfo *bkpinfo, char *destfile);
    20 int make_afioballs_and_images(struct s_bkpinfo *bkpinfo);
    21 extern int (*move_files_to_cd) (struct s_bkpinfo *, char *, ...);
    22 int _move_files_to_cd(struct s_bkpinfo *bkpinfo, char *files_to_add, ...);
    23 extern int (*move_files_to_stream) (struct s_bkpinfo *, char *, ...);
    24 int _move_files_to_stream(struct s_bkpinfo *bkpinfo, char *files_to_add,
     19int make_iso_fs(char *destfile);
     20int make_afioballs_and_images();
     21extern int (*move_files_to_cd) (char *, ...);
     22int _move_files_to_cd(char *files_to_add, ...);
     23extern int (*move_files_to_stream) (char *, ...);
     24int _move_files_to_stream(char *files_to_add,
    2525                          ...);
    26 int offer_to_write_boot_floppies_to_physical_disks(struct s_bkpinfo
    27                                                    *bkpinfo);
     26int offer_to_write_boot_floppies_to_physical_disks();
    2827void pause_and_ask_for_cdr(int, bool *);
    2928void set_bit_N_of_array(char *array, int N, bool true_or_false);
    30 int slice_up_file_etc(struct s_bkpinfo *bkpinfo, char *biggie_filename,
     29int slice_up_file_etc(char *biggie_filename,
    3130                      char *ntfsprog_fifo,
    3231                      long biggie_file_number, long noof_biggie_files,
    3332                      bool use_ntfsprog);
    34 int verify_data(struct s_bkpinfo *bkpinfo);
     33int verify_data();
    3534void wipe_archives(char *d);
    3635int write_image_to_floppy(char *device, char *datafile);
    3736int write_image_to_floppy_SUB(char *device, char *datafile);
    38 int write_iso_and_go_on(struct s_bkpinfo *bkpinfo, bool last_cd);
    39 int write_final_iso_if_necessary(struct s_bkpinfo *bkpinfo);
    40 int call_growisofs(struct s_bkpinfo *bkpinfo, char *destfile);
    41 int make_afioballs_and_images_SINGLETHREAD(struct s_bkpinfo *bkpinfo);
    42 int archive_this_fileset_with_star(struct s_bkpinfo *bkpinfo,
     37int write_iso_and_go_on(bool last_cd);
     38int write_final_iso_if_necessary();
     39int call_growisofs(char *destfile);
     40int make_afioballs_and_images_SINGLETHREAD();
     41int archive_this_fileset_with_star(
    4342                                   char *filelist, char *fname, int setno);
    4443void setenv_mondo_share(void);
  • branches/2.2.5/mondo/src/common/libmondo-devices-EXT.h

    r128 r1647  
    77extern int does_partition_exist(const char *drive, int partno);
    88extern bool does_string_exist_in_boot_block(char *dev, char *str);
    9 extern int find_and_mount_actual_cd(struct s_bkpinfo *bkpinfo,
     9extern int find_and_mount_actual_cd(
    1010                                    char *mountpoint);
    1111extern int find_cdrom_device(char *output, bool try_to_mount);
     
    3131
    3232
    33 extern int interactively_obtain_media_parameters_from_user(struct s_bkpinfo
    34                                                            *, bool);
     33extern int interactively_obtain_media_parameters_from_user(bool);
    3534
    3635
     
    3837
    3938
    40 extern void insist_on_this_cd_number(struct s_bkpinfo *bkpinfo,
     39extern void insist_on_this_cd_number(
    4140                                     int cd_number_i_want);
    4241
    4342
    44 extern int what_number_cd_is_this(struct s_bkpinfo *bkpinfo);
     43extern int what_number_cd_is_this();
    4544
    4645
     
    5049extern char *list_of_NFS_mounts_only(void);
    5150
    52 extern void sensibly_set_tmpdir_and_scratchdir(struct s_bkpinfo *bkpinfo);
     51extern void sensibly_set_tmpdir_and_scratchdir();
    5352
    5453
     
    6564                                                            *incoming);
    6665
    67 extern void set_g_cdrom_and_g_dvd_to_bkpinfo_value(struct s_bkpinfo
    68                                                    *bkpinfo);
     66extern void set_g_cdrom_and_g_dvd_to_bkpinfo_value();
    6967
    7068extern bool is_dev_an_NTFS_dev(char *bigfile_fname);
  • branches/2.2.5/mondo/src/common/libmondo-devices.h

    r128 r1647  
    77int does_partition_exist(const char *drive, int partno);
    88bool does_string_exist_in_boot_block(char *dev, char *str);
    9 int find_and_mount_actual_cd(struct s_bkpinfo *bkpinfo, char *mountpoint);
     9int find_and_mount_actual_cd(char *mountpoint);
    1010int find_cdrom_device(char *output, bool try_to_mount);
    1111int find_dvd_device(char *output, bool try_to_mount);
     
    2525int find_cdrw_device(char *cdrw_device);
    2626
    27 int interactively_obtain_media_parameters_from_user(struct s_bkpinfo *,
    28                                                     bool);
     27int interactively_obtain_media_parameters_from_user(bool);
    2928
    3029
     
    3231void make_fifo(char *store_name_here, char *stub);
    3332
    34 void insist_on_this_cd_number(struct s_bkpinfo *bkpinfo,
     33void insist_on_this_cd_number(
    3534                              int cd_number_i_want);
    3635
    37 int what_number_cd_is_this(struct s_bkpinfo *bkpinfo);
     36int what_number_cd_is_this();
    3837
    3938int eject_device(char *);
     
    4241char *list_of_NFS_mounts_only();
    4342
    44 void sensibly_set_tmpdir_and_scratchdir(struct s_bkpinfo *bkpinfo);
     43void sensibly_set_tmpdir_and_scratchdir();
    4544
    4645
     
    5554bool does_nonMS_partition_exist(void);
    5655char *resolve_softlinks_to_get_to_actual_device_file(char *incoming);
    57 void set_g_cdrom_and_g_dvd_to_bkpinfo_value(struct s_bkpinfo *bkpinfo);
     56void set_g_cdrom_and_g_dvd_to_bkpinfo_value();
    5857
    5958bool is_dev_an_NTFS_dev(char *bigfile_fname);
  • branches/2.2.5/mondo/src/common/libmondo-filelist-EXT.h

    r128 r1647  
    22
    33extern int chop_filelist(char *filelist, char *outdir, long maxsetsizeK);
    4 extern int call_filelist_chopper(struct s_bkpinfo *bkpinfo);
     4extern int call_filelist_chopper();
    55extern void free_filelist(struct s_node *filelist);
    6 extern int get_last_filelist_number(struct s_bkpinfo *bkpinfo);
     6extern int get_last_filelist_number();
    77extern int add_string_at_node(struct s_node *startnode,
    88                              char *string_to_add);
     
    1616                                  bool on_or_off);
    1717extern void toggle_node_selection(struct s_node *filelist, bool on_or_off);
    18 extern int prepare_filelist(struct s_bkpinfo *bkpinfo);
     18extern int prepare_filelist();
    1919
    2020extern long save_filelist_entries_in_common(char *needles_list_fname,
  • branches/2.2.5/mondo/src/common/libmondo-filelist.h

    r128 r1647  
    44
    55int chop_filelist(char *filelist, char *outdir, long maxsetsizeK);
    6 int call_filelist_chopper(struct s_bkpinfo *bkpinfo);
     6int call_filelist_chopper();
    77void free_filelist(struct s_node *filelist);
    8 int get_last_filelist_number(struct s_bkpinfo *bkpinfo);
     8int get_last_filelist_number();
    99int add_string_at_node(struct s_node *startnode, char *string_to_add);
    1010struct s_node *load_filelist(char *filelist_fname);
     
    1717                           bool on_or_off);
    1818void toggle_node_selection(struct s_node *filelist, bool on_or_off);
    19 int prepare_filelist(struct s_bkpinfo *bkpinfo);
     19int prepare_filelist();
    2020
    2121long save_filelist_entries_in_common(char *needles_list_fname,
  • branches/2.2.5/mondo/src/common/libmondo-files-EXT.h

    r684 r1647  
    3232
    3333
    34 extern long size_of_all_biggiefiles_K(struct s_bkpinfo *bkpinfo);
    35 extern void copy_mondo_and_mindi_stuff_to_scratchdir(struct s_bkpinfo
    36                                                      *bkpinfo);
    37 extern void store_nfs_config(struct s_bkpinfo *bkpinfo);
     34extern long size_of_all_biggiefiles_K();
     35extern void copy_mondo_and_mindi_stuff_to_scratchdir();
     36extern void store_nfs_config();
    3837
    3938
    40 extern void estimate_noof_media_required(struct s_bkpinfo *bkpinfo, long);
     39extern void estimate_noof_media_required(long);
    4140
    4241extern bool is_this_file_compressed(char *);
  • branches/2.2.5/mondo/src/common/libmondo-files.h

    r684 r1647  
    2828long noof_lines_that_match_wildcard(char *filelist_fname, char *wildcard);
    2929void register_pid(pid_t pid, char *name_str);
    30 long size_of_all_biggiefiles_K(struct s_bkpinfo *bkpinfo);
     30long size_of_all_biggiefiles_K();
    3131long long space_occupied_by_cd(char *mountpt);
    3232int whine_if_not_found(char *fname);
    3333int write_one_liner_data_file(char *fname, char *contents);
    3434
    35 void copy_mondo_and_mindi_stuff_to_scratchdir(struct s_bkpinfo *bkpinfo);
    36 void store_nfs_config(struct s_bkpinfo *bkpinfo);
    37 void estimate_noof_media_required(struct s_bkpinfo *bkpinfo, long);
     35void copy_mondo_and_mindi_stuff_to_scratchdir();
     36void store_nfs_config();
     37void estimate_noof_media_required(long);
    3838bool is_this_file_compressed(char *);
    3939
  • branches/2.2.5/mondo/src/common/libmondo-fork-EXT.h

    r296 r1647  
    55                                         char *what_i_am_doing);
    66extern int run_program_and_log_output(char *program, int);
    7 extern int eval_call_to_make_ISO(struct s_bkpinfo *bkpinfo,
    8                                  char *basic_call, char *isofile,
     7extern int eval_call_to_make_ISO(char *basic_call, char *isofile,
    98                                 int cd_no, char *logstub,
    109                                 char *what_i_am_doing);
  • branches/2.2.5/mondo/src/common/libmondo-fork.h

    r296 r1647  
    88int run_program_and_log_to_screen(char *basic_call, char *what_i_am_doing);
    99int run_program_and_log_output(char *program, int);
    10 int eval_call_to_make_ISO(struct s_bkpinfo *bkpinfo,
    11                           char *basic_call, char *isofile,
     10int eval_call_to_make_ISO(char *basic_call, char *isofile,
    1211                          int cd_no, char *logstub, char *what_i_am_doing);
    1312
  • branches/2.2.5/mondo/src/common/libmondo-stream-EXT.h

    r684 r1647  
    33
    44
    5 extern int closein_tape(struct s_bkpinfo *bkpinfo);
    6 extern int closeout_tape(struct s_bkpinfo *bkpinfo);
     5extern int closein_tape();
     6extern int closeout_tape();
    77extern int find_tape_device_and_size(char *dev, char *siz);
    88extern void insist_on_this_tape_number(int tapeno);
     
    1010extern int maintain_collection_of_recent_archives(char *td,
    1111                                                  char *latest_fname);
    12 extern int openin_cdstream(struct s_bkpinfo *bkpinfo);
    13 extern int openin_tape(struct s_bkpinfo *bkpinfo);
     12extern int openin_cdstream();
     13extern int openin_tape();
    1414extern int openout_cdstream(char *cddev, int speed);
    1515extern int openout_tape(char *tapedev, long internal_tape_block_size);
    16 extern int read_file_from_stream_to_file(struct s_bkpinfo *bkpinfo,
     16extern int read_file_from_stream_to_file(
    1717                                         char *outfile, long long size);
    18 extern int read_file_from_stream_to_stream(struct s_bkpinfo *bkpinfo,
     18extern int read_file_from_stream_to_stream(
    1919                                           FILE * fout, long long size);
    20 extern int read_file_from_stream_FULL(struct s_bkpinfo *bkpinfo,
     20extern int read_file_from_stream_FULL(
    2121                                      char *outfname, FILE * foutstream,
    2222                                      long long orig_size);
     
    3030extern int skip_incoming_files_until_we_find_this_one(char
    3131                                                      *the_file_I_was_reading);
    32 extern int start_to_read_from_next_tape(struct s_bkpinfo *bkpinfo);
    33 extern int start_to_write_to_next_tape(struct s_bkpinfo *bkpinfo);
    34 extern int write_backcatalog_to_tape(struct s_bkpinfo *bkpinfo);
     32extern int start_to_read_from_next_tape();
     33extern int start_to_write_to_next_tape();
     34extern int write_backcatalog_to_tape();
    3535extern int write_data_disks_to_stream(char *fname);
    36 extern int write_file_to_stream_from_file(struct s_bkpinfo *bkpinfo,
     36extern int write_file_to_stream_from_file(
    3737                                          char *infile);
    3838extern int write_header_block_to_stream(off_t length_of_incoming_file,
    3939                                        char *filename, int control_char);
    4040extern void wrong_marker(int should_be, int it_is);
    41 extern int closein_cdstream(struct s_bkpinfo *bkpinfo);
    42 extern int read_EXAT_files_from_tape(struct s_bkpinfo *bkpinfo,
     41extern int closein_cdstream();
     42extern int read_EXAT_files_from_tape(
    4343                                     long long *ptmp_size, char *tmp_fname,
    4444                                     int *pctrl_chr, char *xattr_fname,
    4545                                     char *acl_fname);
    46 extern int write_EXAT_files_to_tape(struct s_bkpinfo *bkpinfo,
     46extern int write_EXAT_files_to_tape(
    4747                                    char *xattr_fname, char *acl_fname);
  • branches/2.2.5/mondo/src/common/libmondo-stream.h

    r684 r1647  
    55
    66
    7 int closein_tape(struct s_bkpinfo *bkpinfo);
    8 int closeout_tape(struct s_bkpinfo *bkpinfo);
     7int closein_tape();
     8int closeout_tape();
    99int find_tape_device_and_size(char *dev, char *siz);
    1010void insist_on_this_tape_number(int tapeno);
    1111void log_tape_pos(void);
    1212int maintain_collection_of_recent_archives(char *td, char *latest_fname);
    13 int openin_cdstream(struct s_bkpinfo *bkpinfo);
    14 int openin_tape(struct s_bkpinfo *bkpinfo);
     13int openin_cdstream();
     14int openin_tape();
    1515int openout_cdstream(char *cddev, int speed);
    1616int openout_tape(char *tapedev, long internal_tape_block_size);
    17 int read_file_from_stream_to_file(struct s_bkpinfo *bkpinfo, char *outfile,
     17int read_file_from_stream_to_file(char *outfile,
    1818                                  long long size);
    19 int read_file_from_stream_to_stream(struct s_bkpinfo *bkpinfo, FILE * fout,
     19int read_file_from_stream_to_stream(FILE * fout,
    2020                                    long long size);
    21 int read_file_from_stream_FULL(struct s_bkpinfo *bkpinfo, char *outfname,
     21int read_file_from_stream_FULL(char *outfname,
    2222                               FILE * foutstream, long long orig_size);
    2323int read_header_block_from_stream(long long *plen, char *filename,
     
    2929int skip_incoming_files_until_we_find_this_one(char
    3030                                               *the_file_I_was_reading);
    31 int start_to_read_from_next_tape(struct s_bkpinfo *bkpinfo);
    32 int start_to_write_to_next_tape(struct s_bkpinfo *bkpinfo);
    33 int write_backcatalog_to_tape(struct s_bkpinfo *bkpinfo);
     31int start_to_read_from_next_tape();
     32int start_to_write_to_next_tape();
     33int write_backcatalog_to_tape();
    3434int write_data_disks_to_stream(char *fname);
    35 int write_file_to_stream_from_file(struct s_bkpinfo *bkpinfo,
     35int write_file_to_stream_from_file(
    3636                                   char *infile);
    3737int write_header_block_to_stream(off_t length_of_incoming_file,
    3838                                 char *filename, int control_char);
    3939void wrong_marker(int should_be, int it_is);
    40 int closein_cdstream(struct s_bkpinfo *bkpinfo);
    41 int read_EXAT_files_from_tape(struct s_bkpinfo *bkpinfo,
     40int closein_cdstream();
     41int read_EXAT_files_from_tape(
    4242                              long long *ptmp_size, char *tmp_fname,
    4343                              int *pctrl_chr, char *xattr_fname,
    4444                              char *acl_fname);
    45 int write_EXAT_files_to_tape(struct s_bkpinfo *bkpinfo, char *xattr_fname,
     45int write_EXAT_files_to_tape(char *xattr_fname,
    4646                             char *acl_fname);
  • branches/2.2.5/mondo/src/common/libmondo-string-EXT.h

    r831 r1647  
    3737extern int severity_of_difference(char *filename, char *out_reason);
    3838
    39 extern char *percent_media_full_comment(struct s_bkpinfo *bkpinfo);
     39extern char *percent_media_full_comment();
    4040
    4141
  • branches/2.2.5/mondo/src/common/libmondo-string.h

    r831 r1647  
    3131int severity_of_difference(char *filename, char *out_reason);
    3232
    33 char *percent_media_full_comment(struct s_bkpinfo *bkpinfo);
     33char *percent_media_full_comment();
    3434char *media_descriptor_string(t_bkptype);
    3535inline void turn_wildcard_chars_into_literal_chars(char *out, char *in);
  • branches/2.2.5/mondo/src/common/libmondo-tools-EXT.h

    r1383 r1647  
    1111extern int read_cfg_var(char *config_file, char *label, char *value);
    1212extern int write_cfg_var(char *config_file, char *label, char *value);
    13 extern void reset_bkpinfo(struct s_bkpinfo *bkpinfo);
     13extern void reset_bkpinfo();
    1414#ifdef __FreeBSD__
    1515extern void initialize_raidrec(struct vinum_volume *vv);
     
    3030extern void remount_supermounts_if_necessary(void);
    3131
    32 extern int post_param_configuration(struct s_bkpinfo *bkpinfo);
     32extern int post_param_configuration();
    3333
    3434
    35 extern int pre_param_configuration(struct s_bkpinfo *bkpinfo);
     35extern int pre_param_configuration();
    3636
    3737
  • branches/2.2.5/mondo/src/common/libmondo-tools.h

    r1375 r1647  
    1414int read_cfg_var(char *config_file, char *label, char *value);
    1515int write_cfg_var(char *config_file, char *label, char *value);
    16 void reset_bkpinfo(struct s_bkpinfo *bkpinfo);
     16void reset_bkpinfo();
    1717#ifdef __FreeBSD__
    1818void initialize_raidrec(struct vinum_volume *vv);
     
    3131void remount_supermounts_if_necessary(void);
    3232
    33 int post_param_configuration(struct s_bkpinfo *bkpinfo);
     33int post_param_configuration();
    3434
    3535
    36 int pre_param_configuration(struct s_bkpinfo *bkpinfo);
     36int pre_param_configuration();
    3737
    3838long free_space_on_given_partition(char *partition);
  • branches/2.2.5/mondo/src/common/libmondo-verify-EXT.h

    r128 r1647  
    22
    33
    4 extern int verify_cd_image(struct s_bkpinfo *);
    5 extern int verify_a_tarball(struct s_bkpinfo *, char *);
    6 extern int verify_an_afioball_from_CD(struct s_bkpinfo *, char *);
    7 extern int verify_an_afioball_from_tape(struct s_bkpinfo *, char *,
     4extern int verify_cd_image();
     5extern int verify_a_tarball(char *);
     6extern int verify_an_afioball_from_CD(char *);
     7extern int verify_an_afioball_from_tape(char *,
    88                                        long long);
    9 extern int verify_a_biggiefile_from_tape(struct s_bkpinfo *, char *,
     9extern int verify_a_biggiefile_from_tape(char *,
    1010                                         long long);
    11 int verify_afioballs_from_CD(struct s_bkpinfo *);
    12 extern int verify_afioballs_from_tape(struct s_bkpinfo *);
    13 extern int verify_biggiefiles_from_tape(struct s_bkpinfo *);
    14 extern int verify_tape_backups(struct s_bkpinfo *);
    15 extern char *vfy_tball_fname(struct s_bkpinfo *, char *, int);
     11int verify_afioballs_from_CD();
     12extern int verify_afioballs_from_tape();
     13extern int verify_biggiefiles_from_tape();
     14extern int verify_tape_backups();
     15extern char *vfy_tball_fname(char *, int);
  • branches/2.2.5/mondo/src/common/libmondo-verify.h

    r684 r1647  
    2121
    2222 /** externals *************************************************************/
    23 int close_tape(struct s_bkpinfo *);
     23int close_tape();
    2424extern void close_progress_form(void);
    2525extern long count_lines_in_file(char *);
     
    2727extern void exclude_nonexistent_files(char *);
    2828extern void fatal_error(char *);
    29 extern int find_and_mount_actual_cd(struct s_bkpinfo *, char *);
     29extern int find_and_mount_actual_cd(char *);
    3030extern int find_cdrom_device(char *, bool);
    3131extern void finish(int);
    32 extern int get_last_filelist_number(struct s_bkpinfo *);
     32extern int get_last_filelist_number();
    3333extern long get_time(void);
    3434extern int grab_percentage_from_last_line_of_file(char *);
     
    4040extern void open_evalcall_form(char *);
    4141extern void open_progress_form(char *, char *, char *, char *, long);
    42 extern int openin_tape(struct s_bkpinfo *);
     42extern int openin_tape();
    4343extern void popup_and_OK(char *);
    4444extern bool popup_and_get_string(char *, char *, char *, int);
    45 extern int read_file_from_tape_to_file(struct s_bkpinfo *, char *,
     45extern int read_file_from_tape_to_file(char *,
    4646                                       long long);
    4747extern int read_header_block_from_tape(long long *, char *, int *);
     
    6262
    6363
    64 int verify_cd_image(struct s_bkpinfo *);
    65 int verify_a_tarball(struct s_bkpinfo *, char *);
    66 int verify_an_afioball_from_CD(struct s_bkpinfo *, char *);
    67 int verify_an_afioball_from_tape(struct s_bkpinfo *, char *, long long);
    68 int verify_a_biggiefile_from_tape(struct s_bkpinfo *, char *, long long);
    69 int verify_afioballs_from_CD(struct s_bkpinfo *);
    70 int verify_afioballs_from_tape(struct s_bkpinfo *);
    71 int verify_biggiefiles_from_tape(struct s_bkpinfo *);
    72 int verify_tape_backups(struct s_bkpinfo *);
    73 char *vfy_tball_fname(struct s_bkpinfo *, char *, int);
     64int verify_cd_image();
     65int verify_a_tarball(char *);
     66int verify_an_afioball_from_CD(char *);
     67int verify_an_afioball_from_tape(char *, long long);
     68int verify_a_biggiefile_from_tape(char *, long long);
     69int verify_afioballs_from_CD();
     70int verify_afioballs_from_tape();
     71int verify_biggiefiles_from_tape();
     72int verify_tape_backups();
     73char *vfy_tball_fname(char *, int);
    7474
    7575
     
    9292extern void center_string(char *, int);
    9393extern void close_evalcall_form(void);
    94 extern int closein_tape(struct s_bkpinfo *);
     94extern int closein_tape();
  • branches/2.2.5/mondo/src/mondoarchive/mondo-cli-EXT.h

    r128 r1647  
    11/* mondo-cli-EXT.h */
    22
    3 extern int handle_incoming_parameters(int argc, char *argv[],
    4                                       struct s_bkpinfo *bkpinfo);
    5 extern int process_the_s_switch(struct s_bkpinfo *bkpinfo, char *value);
    6 extern int process_switches(struct s_bkpinfo *bkpinfo,
    7                             char flag_val[128][MAX_STR_LEN],
     3extern int handle_incoming_parameters(int argc, char *argv[]);
     4extern int process_the_s_switch(char *value);
     5extern int process_switches(char flag_val[128][MAX_STR_LEN],
    86                            bool flag_set[128]);
    97extern int retrieve_switches_from_command_line(int argc, char *argv[],
  • branches/2.2.5/mondo/src/mondoarchive/mondo-cli.h

    r128 r1647  
    33 */
    44
    5 int handle_incoming_parameters(int argc, char *argv[],
    6                                struct s_bkpinfo *bkpinfo);
    7 int process_the_s_switch(struct s_bkpinfo *bkpinfo, char *value);
    8 int process_switches(struct s_bkpinfo *bkpinfo,
    9                      char flag_val[128][MAX_STR_LEN], bool flag_set[128]);
     5int handle_incoming_parameters(int argc, char *argv[]);
     6int process_the_s_switch(char *value);
     7int process_switches(char flag_val[128][MAX_STR_LEN], bool flag_set[128]);
    108int retrieve_switches_from_command_line(int argc, char *argv[],
    119                                        char flag_val[128][MAX_STR_LEN],
  • branches/2.2.5/mondo/src/mondorestore/mondo-restore-EXT.h

    r1646 r1647  
    2626
    2727extern void ask_about_these_imagedevs(char *, char *);
    28 extern int catchall_mode(struct s_bkpinfo *, struct mountlist_itself *,
     28extern int catchall_mode(struct mountlist_itself *,
    2929                         struct raidlist_itself *);
    3030extern void sort_mountlist_by_device(struct mountlist_itself *);
     
    3232                                                                char *,
    3333                                                                char *);
    34 extern int interactive_mode(struct s_bkpinfo *, struct mountlist_itself *,
     34extern int interactive_mode(struct mountlist_itself *,
    3535                            struct raidlist_itself *);
    36 extern int nuke_mode(struct s_bkpinfo *, struct mountlist_itself *,
     36extern int nuke_mode(struct mountlist_itself *,
    3737                     struct raidlist_itself *);
    38 extern int compare_mode(struct s_bkpinfo *, struct mountlist_itself *,
     38extern int compare_mode(struct mountlist_itself *,
    3939                        struct raidlist_itself *);
    40 extern int iso_mode(struct s_bkpinfo *bkpinfo,
     40extern int iso_mode(
    4141                    struct mountlist_itself *mountlist,
    4242                    struct raidlist_itself *raidlist, bool nuke_me_please);
    4343extern int load_mountlist(struct mountlist_itself *, char *);
    4444extern int load_raidtab_into_raidlist(struct raidlist_itself *, char *);
    45 extern int restore_mode(struct s_bkpinfo *, struct mountlist_itself *,
     45extern int restore_mode(struct mountlist_itself *,
    4646                        struct raidlist_itself *);
    4747extern int save_raidlist_to_raidtab(struct raidlist_itself *, char *);
    4848extern void process_raidtab_line(FILE *, struct raid_device_record *,
    4949                                 char *, char *);
    50 extern int restore_a_biggiefile_from_CD(struct s_bkpinfo *, long,
     50extern int restore_a_biggiefile_from_CD(long,
    5151                                        struct s_node *);
    52 extern int restore_a_biggiefile_from_stream(struct s_bkpinfo *, char *,
     52extern int restore_a_biggiefile_from_stream(char *,
    5353                                            long, char *, long long,
    5454                                            struct s_node *);
    5555extern int restore_a_tarball_from_CD(char *, int, struct s_node *);
    56 extern int restore_a_tarball_from_stream(struct s_bkpinfo *, char *, int,
     56extern int restore_a_tarball_from_stream(char *, int,
    5757                                         struct s_node *, long long);
    58 extern int restore_all_biggiefiles_from_CD(struct s_bkpinfo *,
     58extern int restore_all_biggiefiles_from_CD(
    5959                                           struct s_node *);
    60 extern int restore_all_biggiefiles_from_stream(struct s_bkpinfo *,
     60extern int restore_all_biggiefiles_from_stream(
    6161                                               struct s_node *);
    62 extern int restore_all_tarballs_from_CD(struct s_bkpinfo *,
     62extern int restore_all_tarballs_from_CD(
    6363                                        struct s_node *);
    64 extern int restore_all_tarballs_from_stream(struct s_bkpinfo *,
     64extern int restore_all_tarballs_from_stream(
    6565                                            struct s_node *);
    66 extern int restore_everything(struct s_bkpinfo *, struct s_node *);
    67 extern int restore_live_from_monitas_server(struct s_bkpinfo *, char *,
     66extern int restore_everything(struct s_node *);
     67extern int restore_live_from_monitas_server(char *,
    6868                                            char *, char *);
    69 extern int restore_to_live_filesystem(struct s_bkpinfo *);
     69extern int restore_to_live_filesystem();
    7070extern void swap_mountlist_entries(struct mountlist_itself *, int, int);
    7171extern void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool);
     
    7878extern int save_raidlist_to_raidtab(struct raidlist_itself *raidlist,
    7979                                    char *fname);
    80 extern int what_number_cd_is_this(struct s_bkpinfo *);
     80extern int what_number_cd_is_this();
    8181
    8282#ifdef __FreeBSD__
  • branches/2.2.5/mondo/src/mondorestore/mondo-restore.h

    r128 r1647  
    88
    99void ask_about_these_imagedevs(char *, char *);
    10 int catchall_mode(struct s_bkpinfo *, struct mountlist_itself *,
     10int catchall_mode(struct mountlist_itself *,
    1111                  struct raidlist_itself *);
    1212void find_pathname_of_executable_preferably_in_RESTORING(char *, char *,
    1313                                                         char *);
    14 int interactive_mode(struct s_bkpinfo *, struct mountlist_itself *,
     14int interactive_mode(struct mountlist_itself *,
    1515                     struct raidlist_itself *);
    16 int nuke_mode(struct s_bkpinfo *, struct mountlist_itself *,
     16int nuke_mode(struct mountlist_itself *,
    1717              struct raidlist_itself *);
    18 int compare_mode(struct s_bkpinfo *, struct mountlist_itself *,
     18int compare_mode(struct mountlist_itself *,
    1919                 struct raidlist_itself *);
    20 int iso_mode(struct s_bkpinfo *bkpinfo, struct mountlist_itself *mountlist,
     20int iso_mode(struct mountlist_itself *mountlist,
    2121             struct raidlist_itself *raidlist, bool nuke_me_please);
    22 int restore_mode(struct s_bkpinfo *, struct mountlist_itself *,
     22int restore_mode(struct mountlist_itself *,
    2323                 struct raidlist_itself *);
    24 int restore_a_biggiefile_from_CD(struct s_bkpinfo *, long, struct s_node *,
     24int restore_a_biggiefile_from_CD(long, struct s_node *,
    2525                                 char *);
    26 int restore_a_biggiefile_from_stream(struct s_bkpinfo *, char *, long,
     26int restore_a_biggiefile_from_stream(char *, long,
    2727                                     char *, long long, struct s_node *,
    2828                                     int, char *);
    2929int restore_a_tarball_from_CD(char *, long, struct s_node *);
    30 int restore_a_tarball_from_stream(struct s_bkpinfo *, char *, long,
     30int restore_a_tarball_from_stream(char *, long,
    3131                                  struct s_node *, long long, char *,
    3232                                  char *);
    33 int restore_all_biggiefiles_from_CD(struct s_bkpinfo *, struct s_node *);
    34 int restore_all_biggiefiles_from_stream(struct s_bkpinfo *,
     33int restore_all_biggiefiles_from_CD(struct s_node *);
     34int restore_all_biggiefiles_from_stream(
    3535                                        struct s_node *);
    36 int restore_all_tarballs_from_CD(struct s_bkpinfo *, struct s_node *);
    37 int restore_all_tarballs_from_stream(struct s_bkpinfo *, struct s_node *);
    38 int restore_everything(struct s_bkpinfo *, struct s_node *);
    39 int restore_live_from_monitas_server(struct s_bkpinfo *, char *, char *,
     36int restore_all_tarballs_from_CD(struct s_node *);
     37int restore_all_tarballs_from_stream(struct s_node *);
     38int restore_everything(struct s_node *);
     39int restore_live_from_monitas_server(char *, char *,
    4040                                     char *);
    41 int restore_to_live_filesystem(struct s_bkpinfo *);
     41int restore_to_live_filesystem();
    4242void swap_mountlist_entries(struct mountlist_itself *, int, int);
    4343void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool);
    4444void sort_mountlist_by_device(struct mountlist_itself *);
    45 int what_number_cd_is_this(struct s_bkpinfo *);
     45int what_number_cd_is_this();
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-compare-EXT.h

    r128 r1647  
    22
    33
    4 extern int compare_to_CD(struct s_bkpinfo *);
    5 extern int compare_to_cdstream(struct s_bkpinfo *);
    6 extern int compare_to_tape(struct s_bkpinfo *);
    7 extern int compare_mode(struct s_bkpinfo *bkpinfo,
    8                         struct mountlist_itself *mountlist,
     4extern int compare_to_CD();
     5extern int compare_to_cdstream();
     6extern int compare_to_tape();
     7extern int compare_mode(struct mountlist_itself *mountlist,
    98                        struct raidlist_itself *raidlist);
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-compare.h

    r128 r1647  
    44
    55
    6 int compare_to_CD(struct s_bkpinfo *);
    7 int compare_to_cdstream(struct s_bkpinfo *);
    8 int compare_to_tape(struct s_bkpinfo *);
     6int compare_to_CD();
     7int compare_to_cdstream();
     8int compare_to_tape();
    99
    1010int
    11 compare_mode(struct s_bkpinfo *bkpinfo,
    12              struct mountlist_itself *mountlist,
     11compare_mode(struct mountlist_itself *mountlist,
    1312             struct raidlist_itself *raidlist);
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-newt.h

    r1295 r1647  
    5656extern struct s_node *find_node_in_filelist(struct s_node *,
    5757                                            char *filename);
    58 extern int what_number_cd_is_this(struct s_bkpinfo *);
     58extern int what_number_cd_is_this();
    5959//extern void fatal_error (char *);
    6060extern void sort_mountlist_by_device(struct mountlist_itself *);
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools-EXT.h

    r1579 r1647  
    44
    55extern void free_MR_global_filenames();
    6 extern void get_cfg_file_from_archive_or_bust(struct s_bkpinfo *);
     6extern void get_cfg_file_from_archive_or_bust();
    77extern bool is_file_in_list(char *, char *, char *);    /* needle, haystack, preamble */
    8 extern int iso_fiddly_bits(struct s_bkpinfo *bkpinfo, bool nuke_me_please);
     8extern int iso_fiddly_bits(bool nuke_me_please);
    99extern void kill_petris(void);
    10 extern int mount_cdrom(struct s_bkpinfo *bkpinfo);
     10extern int mount_cdrom();
    1111extern int mount_all_devices(struct mountlist_itself *, bool);
    1212extern void protect_against_braindead_sysadmins(void);
    1313extern int read_cfg_file_into_bkpinfo(char *cfg_file,
    14                                       struct s_bkpinfo *bkpinfo);
    15 struct s_node *process_filelist_and_biggielist(struct s_bkpinfo *);
     14                                      );
     15struct s_node *process_filelist_and_biggielist();
    1616extern int backup_crucial_file(char *path_root, char *filename);
    1717extern int run_boot_loader(bool);
     
    2424extern void streamline_changes_file(char *, char *);
    2525extern void set_signals(int on);
    26 extern void setup_MR_global_filenames(struct s_bkpinfo *bkpinfo);
     26extern void setup_MR_global_filenames();
    2727//extern void setup_signals(int);
    2828extern void terminate_daemon(int);
    2929extern void termination_in_progress(int);
    3030extern int unmount_all_devices(struct mountlist_itself *);
    31 extern int get_cfg_file_from_archive(struct s_bkpinfo *bkpinfo);
     31extern int get_cfg_file_from_archive();
    3232extern int
    33 extract_config_file_from_ramdisk(struct s_bkpinfo *bkpinfo,
     33extract_config_file_from_ramdisk(
    3434                                 char *ramdisk_fname,
    3535                                 char *output_cfg_file,
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools.h

    r1579 r1647  
    44
    55void free_global_filenames();
    6 void get_cfg_file_from_archive_or_bust(struct s_bkpinfo *);
     6void get_cfg_file_from_archive_or_bust();
    77bool is_file_in_list(char *, char *, char *);   /* needle, haystack, preamble */
    8 int iso_fiddly_bits(struct s_bkpinfo *bkpinfo, bool nuke_me_please);
     8int iso_fiddly_bits(bool nuke_me_please);
    99void kill_petris(void);
    10 int mount_cdrom(struct s_bkpinfo *bkpinfo);
     10int mount_cdrom();
    1111int mount_device(char *, char *, char *, bool);
    1212int mount_all_devices(struct mountlist_itself *, bool);
    1313void protect_against_braindead_sysadmins(void);
    14 int read_cfg_file_into_bkpinfo(char *cfg_file, struct s_bkpinfo *bkpinfo);
    15 struct s_node *process_filelist_and_biggielist(struct s_bkpinfo *);
     14int read_cfg_file_into_bkpinfo(char *cfg_file, );
     15struct s_node *process_filelist_and_biggielist();
    1616int backup_crucial_file(char *path_root, char *filename);
    1717
     
    2424void streamline_changes_file(char *, char *);
    2525void set_signals(int on);
    26 void setup_global_filenames(struct s_bkpinfo *bkpinfo);
     26void setup_global_filenames();
    2727//void setup_signals(int);
    2828void twenty_seconds_til_yikes(void);
     
    3131void termination_in_progress(int);
    3232int unmount_all_devices(struct mountlist_itself *);
    33 int get_cfg_file_from_archive(struct s_bkpinfo *bkpinfo);
     33int get_cfg_file_from_archive();
    3434void ask_about_these_imagedevs(char *infname, char *outfname);
  • branches/2.2.5/mondo/src/mondorestore/mr-externs.h

    r684 r1647  
    1616extern bool ask_me_yes_or_no(char *);
    1717extern char *calc_checksum_of_file(char *);
    18 extern int closein_tape(struct s_bkpinfo *);
     18extern int closein_tape();
    1919extern void close_evalcall_form(void);
    2020extern char *call_program_and_get_last_line_of_output(char *);
     
    5151extern void open_evalcall_form(char *);
    5252extern 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 *);
     53extern int openin_cdstream();
     54extern int openin_tape();
    5555extern int partition_device(char *, int, int, char *, long);
    5656extern int partition_device_with_fdisk(char *, int, int, char *, long);
     
    6161extern bool popup_and_get_string(char *, char *, char *, int);
    6262extern void setup_newt_stuff(void);
    63 extern void reset_bkpinfo(struct s_bkpinfo *);
     63extern void reset_bkpinfo();
    6464extern int read_cfg_var(char *, char *, char *);
    65 extern int read_file_from_stream_to_file(struct s_bkpinfo *, char *,
     65extern int read_file_from_stream_to_file(char *,
    6666                                         long long);
    67 extern int read_file_from_stream_to_stream(struct s_bkpinfo *, FILE *,
     67extern int read_file_from_stream_to_stream(FILE *,
    6868                                           long long);
    69 extern int read_file_from_stream_FULL(struct s_bkpinfo *, char *, FILE *,
     69extern int read_file_from_stream_FULL(char *, FILE *,
    7070                                      long long);
    7171extern int read_header_block_from_stream(long long *, char *, int *);
     
    7878extern void update_evalcall_form(int);
    7979extern void update_progress_form(char *);
    80 extern int verify_tape_backups(struct s_bkpinfo *);
     80extern int verify_tape_backups();
    8181extern char which_restore_mode(void);
    8282extern int which_format_command_do_i_need(char *, char *);
     
    9191                                                                mountlist_itself
    9292                                                                *mountlist);
    93 extern int get_cfg_file_from_archive(struct s_bkpinfo *);
     93extern int get_cfg_file_from_archive();
    9494
    9595
Note: See TracChangeset for help on using the changeset viewer.