1 /** \file ext.h
2 * \brief Header: extension dependent execution
3 */
4
5 #ifndef MC__EXT_H
6 #define MC__EXT_H
7 /*** typedefs(not structures) and defined constants **********************************************/
8
9 /*** enums ***************************************************************************************/
10
11 /*** structures declarations (and typedefs of structures)*****************************************/
12
13 /*** global variables defined in .c file *********************************************************/
14
15 /*** declarations of public functions ************************************************************/
16
17 int regex_command_for (void *target, const vfs_path_t *filename_vpath, const char *action,
18 vfs_path_t **script_vpath);
19
20 /* Call it after the user has edited the mc.ext file,
21 * to flush the cached mc.ext file
22 */
23 void flush_extension_file (void);
24
25 /*** inline functions ****************************************************************************/
26
27 static inline int
28 regex_command (const vfs_path_t *filename_vpath, const char *action)
/* ![[previous]](../icons/n_left.png)
![[next]](../icons/n_right.png)
![[first]](../icons/n_first.png)
![[last]](../icons/n_last.png)
![[top]](../icons/top.png)
![[bottom]](../icons/bottom.png)
![[index]](../icons/index.png)
*/
29 {
30 return regex_command_for (NULL, filename_vpath, action, NULL);
31 }
32
33 #endif