2010-11-12 11:03:57 +03:00
|
|
|
|
2012-08-31 18:05:29 +04:00
|
|
|
/** \file lib/widget/history.h
|
2010-11-12 11:03:57 +03:00
|
|
|
* \brief Header: save, load and show history
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MC__WIDGET_HISTORY_H
|
|
|
|
#define MC__WIDGET_HISTORY_H
|
|
|
|
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
2011-04-29 13:05:59 +04:00
|
|
|
/* forward declaration */
|
|
|
|
struct mc_config_t;
|
|
|
|
|
2010-11-12 11:03:57 +03:00
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
2011-04-29 13:05:59 +04:00
|
|
|
extern int num_history_items_recorded;
|
|
|
|
|
2010-11-12 11:03:57 +03:00
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2011-05-03 17:24:56 +04:00
|
|
|
/* read history to the mc_config, but don't save config to file */
|
2010-11-12 11:03:57 +03:00
|
|
|
GList *history_get (const char *input_name);
|
2011-05-03 17:24:56 +04:00
|
|
|
/* load history form the mc_config */
|
2012-07-06 14:56:29 +04:00
|
|
|
GList *history_load (struct mc_config_t *cfg, const char *name);
|
2011-04-29 13:05:59 +04:00
|
|
|
/* save history to the mc_config, but don't save config to file */
|
2012-07-06 14:56:29 +04:00
|
|
|
void history_save (struct mc_config_t *cfg, const char *name, GList * h);
|
2010-11-12 11:03:57 +03:00
|
|
|
/* for repositioning of history dialog we should pass widget to this
|
|
|
|
* function, as position of history dialog depends on widget's position */
|
2012-04-27 21:18:21 +04:00
|
|
|
char *history_show (GList ** history, Widget * widget, int current);
|
2010-11-12 11:03:57 +03:00
|
|
|
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
|
|
|
|
#endif /* MC__WIDGET_HISTORY_H */
|