Simplify vflist_get_formatted()
[geeqie.git] / src / history_list.h
1 /*
2  * Copyright (C) 2008 - 2016 The Geeqie Team
3  *
4  * Authors: John Ellis, Vladimir Nadvornik, Laurent Monin
5  *
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.
10  *
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.
15  *
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.
19  */
20
21 #ifndef HISTORY_LIST_H
22 #define HISTORY_LIST_H
23
24 /* history lists */
25
26 gboolean history_list_load(const gchar *path);
27 gboolean history_list_save(const gchar *path);
28
29 void history_list_free_key(const gchar *key);
30
31 void history_list_add_to_key(const gchar *key, const gchar *path, gint max);
32
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
37 const gchar *history_list_find_last_path_by_key(const gchar *key);
38
39 const gchar *history_chain_back();
40 const gchar *history_chain_forward();
41 void history_chain_append_end(const gchar *path);
42
43 const gchar *image_chain_back();
44 const gchar *image_chain_forward();
45 void image_chain_append_end(const gchar *path);
46
47
48 /**
49  * @headerfile history_list_get_by_key
50  * the returned GList is internal, don't free it
51  */
52 GList *history_list_get_by_key(const gchar *key);
53
54
55 #endif /* HISTORY_LIST_H */
56 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */