summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_cache_private.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-29 23:04:40 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-29 23:04:40 +0000
commit4bc0210bd31ed1de6554441562bd93ea863ee9d9 (patch)
tree5d83be12538f8c8d3816bbf65916ce383d050c2e /src/lib/efreet/efreet_cache_private.h
parent727ddbeaf0c53f31cd62c254fdebe26823d537eb (diff)
efl: merge efreet.
seems to be fine, pass distcheck and friends. please report. changes: - documentation hierarchy fixes - replaced __UNUSED__ with EINA_UNUSED - replaced PKG_DATA_DIR with PACKAGE_DATA_DIR"/efreet" SVN revision: 81889
Diffstat (limited to 'src/lib/efreet/efreet_cache_private.h')
-rw-r--r--src/lib/efreet/efreet_cache_private.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/lib/efreet/efreet_cache_private.h b/src/lib/efreet/efreet_cache_private.h
new file mode 100644
index 0000000000..9729215f9e
--- /dev/null
+++ b/src/lib/efreet/efreet_cache_private.h
@@ -0,0 +1,60 @@
1#ifndef EFREET_CACHE_PRIVATE_H
2#define EFREET_CACHE_PRIVATE_H
3
4#define EFREET_DESKTOP_CACHE_MAJOR 1
5#define EFREET_DESKTOP_CACHE_MINOR 0
6#define EFREET_DESKTOP_UTILS_CACHE_MAJOR 1
7#define EFREET_DESKTOP_UTILS_CACHE_MINOR 0
8
9#define EFREET_ICON_CACHE_MAJOR 1
10#define EFREET_ICON_CACHE_MINOR 0
11
12#define EFREET_CACHE_VERSION "__efreet//version"
13#define EFREET_CACHE_ICON_FALLBACK "__efreet_fallback"
14
15EAPI const char *efreet_desktop_util_cache_file(void);
16EAPI const char *efreet_desktop_cache_file(void);
17EAPI const char *efreet_icon_cache_file(const char *theme);
18EAPI const char *efreet_icon_theme_cache_file(void);
19
20EAPI Eet_Data_Descriptor *efreet_version_edd(void);
21EAPI Eet_Data_Descriptor *efreet_desktop_edd(void);
22EAPI Eet_Data_Descriptor *efreet_hash_array_string_edd(void);
23EAPI Eet_Data_Descriptor *efreet_hash_string_edd(void);
24EAPI Eet_Data_Descriptor *efreet_array_string_edd(void);
25EAPI Eet_Data_Descriptor *efreet_icon_theme_edd(Eina_Bool cache);
26EAPI Eet_Data_Descriptor *efreet_icon_edd(void);
27EAPI Eet_Data_Descriptor *efreet_icon_fallback_edd(void);
28
29typedef struct _Efreet_Cache_Icon_Theme Efreet_Cache_Icon_Theme;
30typedef struct _Efreet_Cache_Directory Efreet_Cache_Directory;
31typedef struct _Efreet_Cache_Desktop Efreet_Cache_Desktop;
32
33struct _Efreet_Cache_Icon_Theme
34{
35 Efreet_Icon_Theme theme;
36
37 long long last_cache_check; /**< Last time the cache was checked */
38
39 Eina_Hash *dirs; /**< All possible icon paths for this theme */
40
41 const char *path; /**< path to index.theme */
42
43 Eina_Bool hidden:1; /**< Should this theme be hidden from users */
44 Eina_Bool valid:1; /**< Have we seen an index for this theme */
45 Eina_Bool changed:1; /**< Changed since last seen */
46};
47
48struct _Efreet_Cache_Directory
49{
50 long long modified_time;
51};
52
53struct _Efreet_Cache_Desktop
54{
55 Efreet_Desktop desktop;
56
57 double check_time; /**< Last time we check for disk modification */
58};
59
60#endif