diff options
Diffstat (limited to 'src/lib/efreet/efreet_cache_private.h')
-rw-r--r-- | src/lib/efreet/efreet_cache_private.h | 28 |
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 | ||
41 | typedef struct _Efreet_Cache_Check Efreet_Cache_Check; | ||
42 | |||
43 | typedef struct _Efreet_Cache_Icon_Theme Efreet_Cache_Icon_Theme; | ||
44 | typedef struct _Efreet_Cache_Directory Efreet_Cache_Directory; | ||
45 | typedef struct _Efreet_Cache_Desktop Efreet_Cache_Desktop; | ||
46 | |||
41 | EAPI const char *efreet_desktop_util_cache_file(void); | 47 | EAPI const char *efreet_desktop_util_cache_file(void); |
42 | EAPI const char *efreet_desktop_cache_file(void); | 48 | EAPI const char *efreet_desktop_cache_file(void); |
43 | EAPI const char *efreet_icon_cache_file(const char *theme); | 49 | EAPI const char *efreet_icon_cache_file(const char *theme); |
44 | EAPI const char *efreet_icon_theme_cache_file(void); | 50 | EAPI const char *efreet_icon_theme_cache_file(void); |
45 | 51 | ||
52 | EAPI Eina_Bool efreet_file_cache_fill(const char *file, Efreet_Cache_Check *check); | ||
53 | EAPI Eina_Bool efreet_file_cache_check(const Efreet_Cache_Check *check1, const Efreet_Cache_Check *check2); | ||
54 | |||
46 | EAPI Eet_Data_Descriptor *efreet_version_edd(void); | 55 | EAPI Eet_Data_Descriptor *efreet_version_edd(void); |
47 | EAPI Eet_Data_Descriptor *efreet_desktop_edd(void); | 56 | EAPI Eet_Data_Descriptor *efreet_desktop_edd(void); |
48 | EAPI Eet_Data_Descriptor *efreet_hash_array_string_edd(void); | 57 | EAPI Eet_Data_Descriptor *efreet_hash_array_string_edd(void); |
@@ -52,15 +61,23 @@ EAPI Eet_Data_Descriptor *efreet_icon_theme_edd(Eina_Bool cache); | |||
52 | EAPI Eet_Data_Descriptor *efreet_icon_edd(void); | 61 | EAPI Eet_Data_Descriptor *efreet_icon_edd(void); |
53 | EAPI Eet_Data_Descriptor *efreet_icon_fallback_edd(void); | 62 | EAPI Eet_Data_Descriptor *efreet_icon_fallback_edd(void); |
54 | 63 | ||
55 | typedef struct _Efreet_Cache_Icon_Theme Efreet_Cache_Icon_Theme; | 64 | struct _Efreet_Cache_Check |
56 | typedef struct _Efreet_Cache_Directory Efreet_Cache_Directory; | 65 | { |
57 | typedef 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 | ||
59 | struct _Efreet_Cache_Icon_Theme | 76 | struct _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 | ||
74 | struct _Efreet_Cache_Directory | 91 | struct _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 | ||
79 | struct _Efreet_Cache_Desktop | 96 | struct _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 | ||