summaryrefslogtreecommitdiff
path: root/apps/tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.h')
-rw-r--r--apps/tree.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/tree.h b/apps/tree.h
index c70ae8dac1..a75e8d2260 100644
--- a/apps/tree.h
+++ b/apps/tree.h
@@ -52,7 +52,6 @@ struct tree_cache {
52 int name_buffer_handle; /* handle to the name cache */ 52 int name_buffer_handle; /* handle to the name cache */
53 int max_entries; /* Max entries in the cache */ 53 int max_entries; /* Max entries in the cache */
54 int name_buffer_size; /* in bytes */ 54 int name_buffer_size; /* in bytes */
55 volatile int lock_count; /* non-0 if buffers may not move */
56}; 55};
57 56
58struct browse_context { 57struct browse_context {
@@ -120,14 +119,10 @@ void browse_context_init(struct browse_context *browse,
120int rockbox_browse(struct browse_context *browse); 119int rockbox_browse(struct browse_context *browse);
121int create_playlist(void); 120int create_playlist(void);
122void resume_directory(const char *dir); 121void resume_directory(const char *dir);
123static inline void tree_lock_cache(struct tree_context *t) 122
124{ 123void tree_lock_cache(struct tree_context *t);
125 t->cache.lock_count++; 124void tree_unlock_cache(struct tree_context *t);
126} 125
127static inline void tree_unlock_cache(struct tree_context *t)
128{
129 t->cache.lock_count--;
130}
131#ifdef WIN32 126#ifdef WIN32
132/* it takes an int on windows */ 127/* it takes an int on windows */
133#define getcwd_size_t int 128#define getcwd_size_t int