/* libmondo-stream.h
 * $Id: libmondo-stream.h 1647 2007-09-24 01:24:45Z bruno $
 */



int closein_tape();
int closeout_tape();
int find_tape_device_and_size(char *dev, char *siz);
void insist_on_this_tape_number(int tapeno);
void log_tape_pos(void);
int maintain_collection_of_recent_archives(char *td, char *latest_fname);
int openin_cdstream();
int openin_tape();
int openout_cdstream(char *cddev, int speed);
int openout_tape(char *tapedev, long internal_tape_block_size);
int read_file_from_stream_to_file(char *outfile,
								  long long size);
int read_file_from_stream_to_stream(FILE * fout,
									long long size);
int read_file_from_stream_FULL(char *outfname,
							   FILE * foutstream, long long orig_size);
int read_header_block_from_stream(long long *plen, char *filename,
								  int *pcontrol_char);
int register_in_tape_catalog(t_archtype type, int number, long aux,
							 char *fn);
bool should_we_write_to_next_tape(long mediasize,
								  off_t length_of_incoming_file);
int skip_incoming_files_until_we_find_this_one(char
											   *the_file_I_was_reading);
int start_to_read_from_next_tape();
int start_to_write_to_next_tape();
int write_backcatalog_to_tape();
int write_data_disks_to_stream(char *fname);
int write_file_to_stream_from_file(
								   char *infile);
int write_header_block_to_stream(off_t length_of_incoming_file,
								 char *filename, int control_char);
void wrong_marker(int should_be, int it_is);
int closein_cdstream();
int read_EXAT_files_from_tape(
							  long long *ptmp_size, char *tmp_fname,
							  int *pctrl_chr, char *xattr_fname,
							  char *acl_fname);
int write_EXAT_files_to_tape(char *xattr_fname,
							 char *acl_fname);
