history.h 1.4 KB

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