]> git.wh0rd.org - fontconfig.git/blobdiff - fontconfig/fontconfig.h
Rework cache files to use offsets for all data structures.
[fontconfig.git] / fontconfig / fontconfig.h
index 154959360b3493530b00c6d77984866ff02851e3..410da1ec4c842e23a5a9fdc362336b59183820cc 100644 (file)
@@ -46,7 +46,7 @@ typedef int           FcBool;
 
 #define FC_MAJOR       2
 #define FC_MINOR       3
-#define FC_REVISION    93
+#define FC_REVISION    95
 
 #define FC_VERSION     ((FC_MAJOR * 10000) + (FC_MINOR * 100) + (FC_REVISION))
 
@@ -212,17 +212,14 @@ typedef struct _FcValue {
     FcType     type;
     union {
        const FcChar8  *s;
-       int             s_off;
        int             i;
        FcBool          b;
        double          d;
        const FcMatrix  *m;
        const FcCharSet *c;
-       int             c_off;
        void            *f;
        const FcPattern *p;
        const FcLangSet *l;
-       int             l_off; /* this is a difference of char *s */
     } u;
 } FcValue;
 
@@ -276,10 +273,10 @@ typedef struct _FcStrSet    FcStrSet;
 _FCFUNCPROTOBEGIN
 
 FcBool
-FcDirCacheValid (const FcChar8 *cache_file);
+FcDirCacheValid (const FcChar8 *cache_file, FcConfig *config);
 
 FcBool
-FcDirCacheHasCurrentArch (const FcChar8 *dir);
+FcDirCacheHasCurrentArch (const FcChar8 *dir, FcConfig *config);
 
 FcBool
 FcDirCacheUnlink (const FcChar8 *dir, FcConfig *config);
@@ -328,6 +325,10 @@ FcConfigBuildFonts (FcConfig *config);
 FcStrList *
 FcConfigGetFontDirs (FcConfig   *config);
 
+const FcChar8 *
+FcConfigNormalizeFontDir (FcConfig     *config, 
+                         const FcChar8 *d);
+
 FcStrList *
 FcConfigGetConfigDirs (FcConfig   *config);