1 /* file_operations.h */
2 
3 /*
4  * This file is part of CliFM
5  *
6  * Copyright (C) 2016-2021, L. Abramovich <johndoe.arch@outlook.com>
7  * All rights reserved.
8 
9  * CliFM is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * CliFM is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22  * MA 02110-1301, USA.
23 */
24 
25 #ifndef FILE_OPERATIONS_H
26 #define FILE_OPERATIONS_H
27 
28 /* Macros for open_function */
29 #define OPEN_BLK 0
30 #define OPEN_CHR 1
31 #define OPEN_SOCK 2
32 #define OPEN_FIFO 3
33 #define OPEN_UNK 4
34 
35 /* file_operations.c */
36 int batch_link(char **args);
37 char *export(char **filenames, int open);
38 int bulk_rename(char **args);
39 int remove_file(char **args);
40 int copy_function(char **comm);
41 int edit_link(char *link);
42 int open_function(char **cmd);
43 int xchmod(const char *file, mode_t mode);
44 int create_file(char **cmd);
45 int dup_file(char*source, char *dest);
46 int open_file(char *file);
47 void clear_selbox(void);
48 
49 #endif /* FILE_OPERATIONS_H */
50