19 #ifndef __MResourceFileCacheX_h__ 20 #define __MResourceFileCacheX_h__ 23 #include "KeyValuePair.h" 31 typedef struct objc_object NSCache;
32 typedef struct objc_object NSBundle;
33 typedef struct objc_object NSString;
34 typedef struct objc_object NSData;
66 kDefaultRFCacheLength = 8,
67 kDefaultMaxBundleCount = 50,
68 kDefaultMaxResourceCount = 50
78 void CacheBundle(NSString* identifier, NSBundle* bundle);
106 void CloseResourceFile(
const IDFile& resourceFile);
107 void CloseUnusedFiles();
113 bool16 fUnloadingDisabled;
114 NSCache* fBundleCache;
115 NSCache* fResourceDataCache;
118 NSString* CreateCacheKey(
const IDFile& resourceFile);
121 #endif // __MResourceFileCacheX_h__