Mercurial > geeqie
annotate src/filecache.h @ 1536:b1e622788c4a
Just update the internal sort method
There is no other use of the internal sort method than speeding up the
sorting of a collection. So setting it to SORT_NONE is the better
choice.
author | mow |
---|---|
date | Fri, 10 Apr 2009 13:54:08 +0000 |
parents | 8b89e3ff286b |
children | 956aab097ea7 |
rev | line source |
---|---|
844 | 1 /* |
2 * Geeqie | |
1284 | 3 * Copyright (C) 2008 - 2009 The Geeqie Team |
844 | 4 * |
5 * Author: Vladimir Nadvornik | |
6 * | |
7 * This software is released under the GNU General Public License (GNU GPL). | |
8 * Please read the included file COPYING for more information. | |
9 * This software comes with no warranty of any kind, use at your own risk! | |
10 */ | |
11 | |
12 #ifndef FILECACHE_H | |
13 #define FILECACHE_H | |
14 | |
15 #include "main.h" | |
16 #include "filedata.h" | |
17 | |
18 typedef struct _FileCacheData FileCacheData; | |
19 typedef void (*FileCacheReleaseFunc)(FileData *fd); | |
20 | |
21 | |
22 FileCacheData *file_cache_new(FileCacheReleaseFunc release, gulong max_size); | |
873
bd3bdceb1230
Optimize file_cache_get() by only moving element to front if needed
zas_
parents:
847
diff
changeset
|
23 gboolean file_cache_get(FileCacheData *fc, FileData *fd); |
844 | 24 void file_cache_put(FileCacheData *fc, FileData *fd, gulong size); |
846 | 25 void file_cache_dump(FileCacheData *fc); |
847 | 26 void file_cache_set_size(FileCacheData *fc, gulong size); |
27 gulong file_cache_get_max_size(FileCacheData *fc); | |
28 gulong file_cache_get_size(FileCacheData *fc); | |
29 void file_cache_set_max_size(FileCacheData *fc, gulong size); | |
30 | |
844 | 31 |
32 #endif | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
873
diff
changeset
|
33 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |