3 * \brief Header: save, load and show history
6 #ifndef MC__WIDGET_HISTORY_H
7 #define MC__WIDGET_HISTORY_H
9 /*** typedefs(not structures) and defined constants **********************************************/
11 /*** enums ***************************************************************************************/
13 /*** structures declarations (and typedefs of structures)*****************************************/
15 /* forward declaration */
18 /*** global variables defined in .c file *********************************************************/
20 extern int num_history_items_recorded
;
22 /*** declarations of public functions ************************************************************/
24 /* read history to the mc_config, but don't save config to file */
25 GList
*history_get (const char *input_name
);
26 /* load history form the mc_config */
27 GList
*history_load (struct mc_config_t
* cfg
, const char *name
);
28 /* save history to the mc_config, but don't save config to file */
29 void history_save (struct mc_config_t
* cfg
, const char *name
, GList
* h
);
30 /* for repositioning of history dialog we should pass widget to this
31 * function, as position of history dialog depends on widget's position */
32 char *history_show (GList
** history
, Widget
* widget
, int current
);
34 /*** inline functions ****************************************************************************/
36 #endif /* MC__WIDGET_HISTORY_H */