Optimization of history save.
[midnight-commander.git] / lib / widget / history.h
blob461995b366e616dde18ef0da3fa3abb9a335234c
2 /** \file history.h
3 * \brief Header: save, load and show history
4 */
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 */
16 struct mc_config_t;
18 /*** global variables defined in .c file *********************************************************/
20 extern int num_history_items_recorded;
22 /*** declarations of public functions ************************************************************/
24 GList *history_get (const char *input_name);
25 /* save history to the mc_config, but don't save config to file */
26 void history_save (struct mc_config_t * cfg, const char *name, GList * h);
27 #if 0
28 /* write history to the ${XDG_CACHE_HOME}/mc/history file */
29 void history_put (const char *input_name, GList * h);
30 #endif
31 /* for repositioning of history dialog we should pass widget to this
32 * function, as position of history dialog depends on widget's position */
33 char *history_show (GList ** history, Widget * widget);
35 /*** inline functions ****************************************************************************/
37 #endif /* MC__WIDGET_HISTORY_H */