(regex_command_for): new function to use regex_command in already created viewer...
[midnight-commander.git] / src / filemanager / ext.h
blob771ca18d2ec8c2c74ad095c97b20c03735c791e5
1 /** \file ext.h
2 * \brief Header: extension dependent execution
3 */
5 #ifndef MC__EXT_H
6 #define MC__EXT_H
7 /*** typedefs(not structures) and defined constants **********************************************/
9 /*** enums ***************************************************************************************/
11 /*** structures declarations (and typedefs of structures)*****************************************/
13 /*** global variables defined in .c file *********************************************************/
15 /*** declarations of public functions ************************************************************/
17 int regex_command_for (void *target, const vfs_path_t * filename_vpath, const char *action,
18 vfs_path_t ** script_vpath);
20 /* Call it after the user has edited the mc.ext file,
21 * to flush the cached mc.ext file
23 void flush_extension_file (void);
25 /*** inline functions ****************************************************************************/
27 static inline int
28 regex_command (const vfs_path_t * filename_vpath, const char *action)
30 return regex_command_for (NULL, filename_vpath, action, NULL);
33 #endif /* MC__EXT_H */