small typo
[midnight-commander.git] / src / file.h
blobb97a18ae06dad35e8d5e9b970aea946fe6e335bc
1 #ifndef __FILE_H
2 #define __FILE_H
4 #include "fileopctx.h"
5 #include "background.h"
7 extern int know_not_what_am_i_doing;
9 struct link;
11 int copy_file_file (FileOpContext *ctx, char *s, char *d, int ask_overwrite,
12 off_t *progress_count, double *progress_bytes,
13 int is_toplevel_file);
14 int move_file_file (FileOpContext *ctx, char *s, char *d,
15 off_t *progress_count, double *progress_bytes);
16 int move_dir_dir (FileOpContext *ctx, char *s, char *d,
17 off_t *progress_count, double *progress_bytes);
18 int copy_dir_dir (FileOpContext *ctx, char *s, char *d, int toplevel, int move_over,
19 int delete, struct link *parent_dirs,
20 off_t *progress_count, double *progress_bytes);
21 int erase_dir (FileOpContext *ctx, char *s, off_t *progress_count, double *progress_bytes);
22 int erase_file (FileOpContext *ctx, char *s, off_t *progress_count, double *progress_bytes,
23 int is_toplevel_file);
24 int erase_dir_iff_empty (FileOpContext *ctx, char *s);
26 int panel_operate (void *source_panel, FileOperation op,
27 char *thedefault, int ask_user);
28 char *file_mask_dialog (FileOpContext *ctx, FileOperation operation, char *text, char *def_text,
29 int only_one, int *do_background);
31 extern int file_op_compute_totals;
33 /* Error reporting routines */
34 /* Report error with one file */
35 int file_error (char *format, char *file);
37 /* Report error with two files */
38 int files_error (char *format, char *file1, char *file2);
40 /* Query routines */
42 extern int background_wait;
44 int is_wildcarded (char *p);
45 void compute_dir_size (char *dirname, off_t *ret_marked, double *ret_total);
47 #endif /* !__FILE_H */