Merge commit '315633ecce31cd5af92112ab9903f6e7e8ae8df7'
[free-mc.git] / src / file.h
blob97c38cf1e91487bbb24abcb6c106bf7326949334
1 #ifndef MC_FILE_H
2 #define MC_FILE_H
4 #include "fileopctx.h"
6 struct link;
8 int copy_file_file (FileOpContext *ctx, const char *s, const char *d,
9 int ask_overwrite, off_t *progress_count,
10 double *progress_bytes, int is_toplevel_file);
11 int move_dir_dir (FileOpContext *ctx, const char *s, const char *d,
12 off_t *progress_count, double *progress_bytes);
13 int copy_dir_dir (FileOpContext *ctx, const char *s, const char *d, int toplevel,
14 int move_over, int delete, struct link *parent_dirs,
15 off_t *progress_count, double *progress_bytes);
16 int erase_dir (FileOpContext *ctx, const char *s, off_t *progress_count,
17 double *progress_bytes);
19 int panel_operate (void *source_panel, FileOperation op, int force_single);
21 extern int file_op_compute_totals;
23 /* Error reporting routines */
25 /* Report error with one file */
26 int file_error (const char *format, const char *file);
28 /* Query routines */
30 void compute_dir_size (const char *dirname, off_t *ret_marked,
31 double *ret_total);
33 #endif