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