2010-12-02 00:33:28 -08:00
|
|
|
#ifndef EFREET_CACHE_PRIVATE_H
|
|
|
|
#define EFREET_CACHE_PRIVATE_H
|
|
|
|
|
2014-09-24 23:47:18 -07:00
|
|
|
#define EFREET_DESKTOP_CACHE_MAJOR 2
|
2011-02-10 06:24:40 -08:00
|
|
|
#define EFREET_DESKTOP_CACHE_MINOR 0
|
|
|
|
#define EFREET_DESKTOP_UTILS_CACHE_MAJOR 1
|
|
|
|
#define EFREET_DESKTOP_UTILS_CACHE_MINOR 0
|
|
|
|
|
|
|
|
#define EFREET_ICON_CACHE_MAJOR 1
|
|
|
|
#define EFREET_ICON_CACHE_MINOR 0
|
|
|
|
|
2011-01-31 03:44:46 -08:00
|
|
|
#define EFREET_CACHE_VERSION "__efreet//version"
|
|
|
|
#define EFREET_CACHE_ICON_FALLBACK "__efreet_fallback"
|
2010-12-02 00:34:07 -08:00
|
|
|
|
2011-02-10 06:24:40 -08:00
|
|
|
EAPI const char *efreet_desktop_util_cache_file(void);
|
|
|
|
EAPI const char *efreet_desktop_cache_file(void);
|
|
|
|
EAPI const char *efreet_icon_cache_file(const char *theme);
|
|
|
|
EAPI const char *efreet_icon_theme_cache_file(void);
|
|
|
|
|
2010-12-02 00:34:07 -08:00
|
|
|
EAPI Eet_Data_Descriptor *efreet_version_edd(void);
|
2010-12-02 00:33:28 -08:00
|
|
|
EAPI Eet_Data_Descriptor *efreet_desktop_edd(void);
|
2011-01-31 03:32:34 -08:00
|
|
|
EAPI Eet_Data_Descriptor *efreet_hash_array_string_edd(void);
|
|
|
|
EAPI Eet_Data_Descriptor *efreet_hash_string_edd(void);
|
|
|
|
EAPI Eet_Data_Descriptor *efreet_array_string_edd(void);
|
2011-01-31 03:44:24 -08:00
|
|
|
EAPI Eet_Data_Descriptor *efreet_icon_theme_edd(Eina_Bool cache);
|
2011-01-31 03:44:56 -08:00
|
|
|
EAPI Eet_Data_Descriptor *efreet_icon_edd(void);
|
|
|
|
EAPI Eet_Data_Descriptor *efreet_icon_fallback_edd(void);
|
2010-12-02 00:33:28 -08:00
|
|
|
|
2011-02-10 06:24:30 -08:00
|
|
|
typedef struct _Efreet_Cache_Icon_Theme Efreet_Cache_Icon_Theme;
|
|
|
|
typedef struct _Efreet_Cache_Directory Efreet_Cache_Directory;
|
2011-08-18 02:03:44 -07:00
|
|
|
typedef struct _Efreet_Cache_Desktop Efreet_Cache_Desktop;
|
2011-01-31 03:44:24 -08:00
|
|
|
|
2011-02-10 06:24:30 -08:00
|
|
|
struct _Efreet_Cache_Icon_Theme
|
2011-01-31 03:44:24 -08:00
|
|
|
{
|
|
|
|
Efreet_Icon_Theme theme;
|
|
|
|
|
|
|
|
long long last_cache_check; /**< Last time the cache was checked */
|
|
|
|
|
|
|
|
Eina_Hash *dirs; /**< All possible icon paths for this theme */
|
|
|
|
|
|
|
|
const char *path; /**< path to index.theme */
|
|
|
|
|
|
|
|
Eina_Bool hidden:1; /**< Should this theme be hidden from users */
|
|
|
|
Eina_Bool valid:1; /**< Have we seen an index for this theme */
|
|
|
|
Eina_Bool changed:1; /**< Changed since last seen */
|
|
|
|
};
|
|
|
|
|
2011-02-10 06:24:30 -08:00
|
|
|
struct _Efreet_Cache_Directory
|
|
|
|
{
|
|
|
|
long long modified_time;
|
|
|
|
};
|
|
|
|
|
2011-08-18 02:03:44 -07:00
|
|
|
struct _Efreet_Cache_Desktop
|
|
|
|
{
|
|
|
|
Efreet_Desktop desktop;
|
|
|
|
|
|
|
|
double check_time; /**< Last time we check for disk modification */
|
|
|
|
};
|
|
|
|
|
2010-12-02 00:33:28 -08:00
|
|
|
#endif
|