typedef struct _FcCache {
int magic; /* FC_CACHE_MAGIC */
- off_t size; /* size of file */
+ intptr_t size; /* size of file */
intptr_t dir; /* offset to dir name */
intptr_t dirs; /* offset to subdirs */
int dirs_count; /* number of subdir strings */
FcDirCacheConsume (FILE *file, FcFontSet *set, FcStrSet *dirs,
const FcChar8 *dir, char *dirname);
-FcCache *
-FcDirCacheMap (int fd, off_t size);
-
void
FcDirCacheUnmap (FcCache *cache);
FcBool
FcDirCacheRead (FcFontSet * set, FcStrSet * dirs, const FcChar8 *dir, FcConfig *config);
+FcCache *
+FcDirCacheMap (const FcChar8 *dir, FcConfig *config, FcChar8 **cache_file);
+
+FcBool
+FcDirCacheLoad (int fd, off_t size, void *closure);
+
/* fccfg.c */
FcBool