X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=src%2Ffcint.h;h=73bf875c1f483be5290ce6ab9d53f9043bdd538a;hb=db6f19f13b1719617c54a1658b8faa31da56e1d4;hp=4ab4a74906a77fb6087ce73ee56af314018c17d4;hpb=0f963b0d3ec417a39f6aa2ba22ba56c2a79d05aa;p=fontconfig.git diff --git a/src/fcint.h b/src/fcint.h index 4ab4a74..73bf875 100644 --- a/src/fcint.h +++ b/src/fcint.h @@ -322,6 +322,7 @@ struct _FcCache { intptr_t dirs; /* offset to subdirs */ int dirs_count; /* number of subdir strings */ intptr_t set; /* offset to font set */ + int mtime; /* low bits of directory mtime */ }; #undef FcCacheDir @@ -408,7 +409,7 @@ typedef struct _FcCaseFold { #define FC_CACHE_MAGIC_MMAP 0xFC02FC04 #define FC_CACHE_MAGIC_ALLOC 0xFC02FC05 -#define FC_CACHE_CONTENT_VERSION 1 +#define FC_CACHE_CONTENT_VERSION 2 struct _FcAtomic { FcChar8 *file; /* original file name */ @@ -503,7 +504,7 @@ FcPrivate FcCache * FcDirCacheScan (const FcChar8 *dir, FcConfig *config); FcPrivate FcCache * -FcDirCacheBuild (FcFontSet *set, const FcChar8 *dir, FcStrSet *dirs); +FcDirCacheBuild (FcFontSet *set, const FcChar8 *dir, struct stat *dir_stat, FcStrSet *dirs); FcPrivate FcBool FcDirCacheWrite (FcCache *cache, FcConfig *config);