/* mondo-restore.h
 * $Id: mondo-restore.h 2048 2008-10-22 16:53:57Z bruno $
 */

/**************************************************************************
 * Prototypes:                                                            *
 **************************************************************************/

void ask_about_these_imagedevs(char *, char *);
int catchall_mode(struct mountlist_itself *,
				  struct raidlist_itself *);
void find_pathname_of_executable_preferably_in_RESTORING(char *, char *,
														 char *);
int interactive_mode(struct mountlist_itself *,
					 struct raidlist_itself *);
int nuke_mode(struct mountlist_itself *,
			  struct raidlist_itself *);
int compare_mode(struct mountlist_itself *,
				 struct raidlist_itself *);
int iso_mode(struct mountlist_itself *mountlist,
			 struct raidlist_itself *raidlist, bool nuke_me_please);
int restore_mode(struct mountlist_itself *,
				 struct raidlist_itself *);
int restore_a_biggiefile_from_CD(long, struct s_node *,
								 char *);
int restore_a_biggiefile_from_stream(char *, long,
									 char *, long long, struct s_node *,
									 int, char *);
int restore_a_tarball_from_CD(char *, long, struct s_node *);
int restore_a_tarball_from_stream(char *, long,
								  struct s_node *, long long, char *,
								  char *);
int restore_all_biggiefiles_from_CD(struct s_node *);
int restore_all_biggiefiles_from_stream(
										struct s_node *);
int restore_all_tarballs_from_CD(struct s_node *);
int restore_all_tarballs_from_stream(struct s_node *);
int restore_everything(struct s_node *);
int restore_to_live_filesystem();
void swap_mountlist_entries(struct mountlist_itself *, int, int);
void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool);
void sort_mountlist_by_device(struct mountlist_itself *);
int what_number_cd_is_this();
