]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcint.h
With no args, fc-cat now dumps all directories.
[fontconfig.git] / src / fcint.h
index 96de69591f4f548d2562e309457867d2c1e42a0b..73d93315fb1e1ced8429367d062cd7c2376057af 100644 (file)
@@ -308,7 +308,7 @@ typedef struct _FcStrBuf {
 
 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 */
@@ -500,15 +500,18 @@ FcBool
 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