1 /** \file usermenu.h 2 * \brief Header: user menu implementation 3 */ 4 5 #ifndef MC__USERMENU_H 6 #define MC__USERMENU_H 7 8 #include "lib/global.h" 9 #include "lib/widget.h" 10 11 /*** typedefs(not structures) and defined constants **********************************************/ 12 13 /*** enums ***************************************************************************************/ 14 15 /*** structures declarations (and typedefs of structures)*****************************************/ 16 17 /*** global variables defined in .c file *********************************************************/ 18 19 /*** declarations of public functions ************************************************************/ 20 21 gboolean user_menu_cmd (const Widget * edit_widget, const char *menu_file, int selected_entry); 22 char *expand_format (const Widget * edit_widget, char c, gboolean do_quote); 23 int check_format_view (const char *p); 24 int check_format_var (const char *p, char **v); 25 int check_format_cd (const char *p); 26 27 /* --------------------------------------------------------------------------------------------- */ 28 /*** inline functions ****************************************************************************/ 29 /* --------------------------------------------------------------------------------------------- */ 30 31 static inline void 32 user_file_menu_cmd (void) /* */ 33 { 34 (void) user_menu_cmd (NULL, NULL, -1); 35 } 36 37 /* --------------------------------------------------------------------------------------------- */ 38 39 #endif /* MC__USERMENU_H */