2 * Copyright (C) 2008 - 2016 The Geeqie Team
4 * Authors: John Ellis, Vladimir Nadvornik, Laurent Monin
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef HISTORY_LIST_H
22 #define HISTORY_LIST_H
26 gboolean history_list_load(const gchar *path);
27 gboolean history_list_save(const gchar *path);
29 void history_list_free_key(const gchar *key);
31 void history_list_add_to_key(const gchar *key, const gchar *path, gint max);
33 void history_list_item_change(const gchar *key, const gchar *oldpath, const gchar *newpath);
34 void history_list_item_move(const gchar *key, const gchar *path, gint direction);
35 void history_list_item_remove(const gchar *key, const gchar *path);
36 gchar *get_recent_viewed_folder_image(gchar *path);
38 const gchar *history_list_find_last_path_by_key(const gchar *key);
40 const gchar *history_chain_back();
41 const gchar *history_chain_forward();
42 void history_chain_append_end(const gchar *path);
44 const gchar *image_chain_back();
45 const gchar *image_chain_forward();
46 void image_chain_append_end(const gchar *path);
50 * @headerfile history_list_get_by_key
51 * the returned GList is internal, don't free it
53 GList *history_list_get_by_key(const gchar *key);
56 #endif /* HISTORY_LIST_H */
57 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */