2
* $Id: arj_file.h,v 1.3 2003/04/27 20:54:41 andrew_belov Exp $
3
* ---------------------------------------------------------------------------
4
* Prototypes of the functions located in ARJ_FILE.C are declared here.
8
#ifndef ARJ_FILE_INCLUDED
9
#define ARJ_FILE_INCLUDED
11
/* Writes a block to the output file and verifies if all has been written */
13
#define file_write(block, el, len, stream) \
15
if(fwrite(block, el, len, stream)!=len) \
21
int file_close(FILE *stream);
22
FILE *file_open_noarch(char *name, char *mode);
23
FILE *file_create(char *name, char *mode);
24
int fget_byte(FILE *stream);
25
unsigned int fget_word(FILE *stream);
26
unsigned long fget_longword(FILE *stream);
27
int fread_crc(char *buffer, int count, FILE *stream);
28
void fwrite_crc(char *buffer, int count, FILE *stream);
29
int extraction_stub(char *block, int block_len, int action);
30
void decode_start_stub();
31
void decode_end_stub();
32
char *find_tmp_filename(char *name_format);
33
int find_num_ext(char *name, int mode);
34
int find_arcmail_name(char *name);
36
#if SFX_LEVEL>=ARJSFXV
37
int query_action(int def, int qtype, FMSG *query);
43
int delete_files(char *name);
44
#if SFX_LEVEL>=ARJSFXV
45
void display_comment(char FAR *cmt);
47
void display_comment(char *cmt);
49
void display_indicator(long bytes);
51
int rename_with_check(char *oldname, char *newname);
53
void rename_with_check(char *oldname, char *newname);
55
int delete_processed_files(struct flist_root *root);
56
void fput_byte(int c, FILE *stream);
57
void fput_word(unsigned int w, FILE *stream);
58
void fput_dword(unsigned long l, FILE *stream);
59
void flush_compdata();
61
void shutdown_putbits();
62
int group_clear_arch(struct flist_root *root);