Update base version to 4.6.1.
[midnight-commander.git] / src / file.h
blobd61832377fd739c70f451abeb6daf2cf7b1b95ff
1 #ifndef MC_FILE_H
2 #define MC_FILE_H
4 #include "fileopctx.h"
6 extern int safe_delete;
8 struct link;
10 int copy_file_file (FileOpContext *ctx, const char *s, const char *d,
11 int ask_overwrite, off_t *progress_count,
12 double *progress_bytes, int is_toplevel_file);
13 int move_dir_dir (FileOpContext *ctx, const char *s, const char *d,
14 off_t *progress_count, double *progress_bytes);
15 int copy_dir_dir (FileOpContext *ctx, const char *s, const char *d, int toplevel,
16 int move_over, int delete, struct link *parent_dirs,
17 off_t *progress_count, double *progress_bytes);
18 int erase_dir (FileOpContext *ctx, const char *s, off_t *progress_count,
19 double *progress_bytes);
21 int panel_operate (void *source_panel, FileOperation op, int force_single);
23 extern int file_op_compute_totals;
25 /* Error reporting routines */
27 /* Report error with one file */
28 int file_error (const char *format, const char *file);
30 /* Query routines */
32 void compute_dir_size (const char *dirname, off_t *ret_marked,
33 double *ret_total);
35 #endif