} FcStrBuf;
typedef struct _FcCache {
- int magic;
- int count;
- int bank;
- int pattern_count;
- int patternelt_count;
- int valuelist_count;
- int str_count;
- int langset_count;
- int charset_count;
- int charset_numbers_count;
+ int magic; /* 0xFC02FC02 */
+ int count; /* number of bytes of data in block */
+ int bank; /* bank ID */
+ int pattern_count; /* number of FcPatterns */
+ int patternelt_count; /* number of FcPatternElts */
+ int valuelist_count; /* number of FcValueLists */
+ int str_count; /* size of strings appearing as FcValues */
+ int langset_count; /* number of FcLangSets */
+ int charset_count; /* number of FcCharSets */
+ int charset_numbers_count;
int charset_leaf_count;
int charset_leaf_idx_count;
} FcCache;
struct _FcGlobalCacheDir {
struct _FcGlobalCacheDir *next;
- FcChar8 *name;
+ char *name;
FcCache metadata;
off_t offset;
void *ent;
FcGlobalCacheReadDir (FcFontSet *set,
FcStrSet *dirs,
FcGlobalCache *cache,
- const FcChar8 *dir,
+ const char *dir,
FcConfig *config);
void
FcGlobalCacheLoad (FcGlobalCache *cache,
+ FcStrSet *staleDirs,
const FcChar8 *cache_file);
FcBool
FcGlobalCacheUpdate (FcGlobalCache *cache,
- const FcChar8 *file,
+ const char *file,
FcFontSet *set);
FcBool
FcCacheRead (FcConfig *config, FcGlobalCache * cache);
FcBool
-FcDirCacheWrite (FcFontSet *set, const FcChar8 *dir);
+FcDirCacheWrite (FcFontSet *set, FcStrSet * dirs, const FcChar8 *dir);
+
+FcBool
+FcDirCacheRead (FcFontSet * set, FcStrSet * dirs, const FcChar8 *dir);
int
FcCacheBankToIndex (int bank);
int
FcDebug (void);
+/* fcdefault.c */
+FcChar8 *
+FcGetDefaultLang (void);
+
/* fcdir.c */
FcBool
FcBool
FcPatternAppend (FcPattern *p, FcPattern *s);
-const char *
-FcStrStaticName (const char *name);
+const FcChar8 *
+FcStrStaticName (const FcChar8 *name);
FcChar32
FcStringHash (const FcChar8 *s);