fixed relative symlink operations. Symlink now stay relative
[midnight-commander.git] / lib / widget / history.h
bloba7f2a64e73fe125cca98f312b34f9c2066408483
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 /* 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 #if 0
31 /* write history to the ${XDG_CACHE_HOME}/mc/history file */
32 void history_put (const char *input_name, GList * h);
33 #endif
34 /* for repositioning of history dialog we should pass widget to this
35 * function, as position of history dialog depends on widget's position */
36 char *history_show (GList ** history, Widget * widget);
38 /*** inline functions ****************************************************************************/
40 #endif /* MC__WIDGET_HISTORY_H */