summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_cache_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efreet/efreet_cache_private.h')
-rw-r--r--src/lib/efreet/efreet_cache_private.h28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/lib/efreet/efreet_cache_private.h b/src/lib/efreet/efreet_cache_private.h
index 97dbd45a1e..1edbb3b5ff 100644
--- a/src/lib/efreet/efreet_cache_private.h
+++ b/src/lib/efreet/efreet_cache_private.h
@@ -38,11 +38,20 @@
38# endif 38# endif
39#endif 39#endif
40 40
41typedef struct _Efreet_Cache_Check Efreet_Cache_Check;
42
43typedef struct _Efreet_Cache_Icon_Theme Efreet_Cache_Icon_Theme;
44typedef struct _Efreet_Cache_Directory Efreet_Cache_Directory;
45typedef struct _Efreet_Cache_Desktop Efreet_Cache_Desktop;
46
41EAPI const char *efreet_desktop_util_cache_file(void); 47EAPI const char *efreet_desktop_util_cache_file(void);
42EAPI const char *efreet_desktop_cache_file(void); 48EAPI const char *efreet_desktop_cache_file(void);
43EAPI const char *efreet_icon_cache_file(const char *theme); 49EAPI const char *efreet_icon_cache_file(const char *theme);
44EAPI const char *efreet_icon_theme_cache_file(void); 50EAPI const char *efreet_icon_theme_cache_file(void);
45 51
52EAPI Eina_Bool efreet_file_cache_fill(const char *file, Efreet_Cache_Check *check);
53EAPI Eina_Bool efreet_file_cache_check(const Efreet_Cache_Check *check1, const Efreet_Cache_Check *check2);
54
46EAPI Eet_Data_Descriptor *efreet_version_edd(void); 55EAPI Eet_Data_Descriptor *efreet_version_edd(void);
47EAPI Eet_Data_Descriptor *efreet_desktop_edd(void); 56EAPI Eet_Data_Descriptor *efreet_desktop_edd(void);
48EAPI Eet_Data_Descriptor *efreet_hash_array_string_edd(void); 57EAPI Eet_Data_Descriptor *efreet_hash_array_string_edd(void);
@@ -52,15 +61,23 @@ EAPI Eet_Data_Descriptor *efreet_icon_theme_edd(Eina_Bool cache);
52EAPI Eet_Data_Descriptor *efreet_icon_edd(void); 61EAPI Eet_Data_Descriptor *efreet_icon_edd(void);
53EAPI Eet_Data_Descriptor *efreet_icon_fallback_edd(void); 62EAPI Eet_Data_Descriptor *efreet_icon_fallback_edd(void);
54 63
55typedef struct _Efreet_Cache_Icon_Theme Efreet_Cache_Icon_Theme; 64struct _Efreet_Cache_Check
56typedef struct _Efreet_Cache_Directory Efreet_Cache_Directory; 65{
57typedef struct _Efreet_Cache_Desktop Efreet_Cache_Desktop; 66 unsigned long long uid;
67 unsigned long long gid;
68 unsigned long long size;
69 unsigned long long blocks;
70 unsigned long long mtime;
71 unsigned long long chtime;
72 unsigned int mode;
73 unsigned char link_sha1[20];
74};
58 75
59struct _Efreet_Cache_Icon_Theme 76struct _Efreet_Cache_Icon_Theme
60{ 77{
61 Efreet_Icon_Theme theme; 78 Efreet_Icon_Theme theme;
62 79
63 long long last_cache_check; /**< Last time the cache was checked */ 80 Efreet_Cache_Check check; /**< relevant stat info from last check */
64 81
65 Eina_Hash *dirs; /**< All possible icon paths for this theme */ 82 Eina_Hash *dirs; /**< All possible icon paths for this theme */
66 83
@@ -73,13 +90,14 @@ struct _Efreet_Cache_Icon_Theme
73 90
74struct _Efreet_Cache_Directory 91struct _Efreet_Cache_Directory
75{ 92{
76 long long modified_time; 93 Efreet_Cache_Check check; /**< relevant stat info from last check */
77}; 94};
78 95
79struct _Efreet_Cache_Desktop 96struct _Efreet_Cache_Desktop
80{ 97{
81 Efreet_Desktop desktop; 98 Efreet_Desktop desktop;
82 99
100 Efreet_Cache_Check check; /**< relevant stat info from last check */
83 double check_time; /**< Last time we check for disk modification */ 101 double check_time; /**< Last time we check for disk modification */
84}; 102};
85 103