2012-12-14 16:16:09 +00:00
|
|
|
#ifndef _PAYSAGES_TOOLS_CACHE_H_
|
|
|
|
#define _PAYSAGES_TOOLS_CACHE_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Cache management.
|
|
|
|
*/
|
|
|
|
|
2013-10-20 14:47:59 +00:00
|
|
|
#include "../rendering_global.h"
|
|
|
|
|
2012-12-14 16:16:09 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct CacheFile CacheFile;
|
|
|
|
|
2013-10-20 14:47:59 +00:00
|
|
|
RENDERINGSHARED_EXPORT CacheFile* cacheFileCreateAccessor(const char* module, const char* ext, const char* tag1, int tag2, int tag3, int tag4, int tag5, int tag6);
|
|
|
|
RENDERINGSHARED_EXPORT void cacheFileDeleteAccessor(CacheFile* cache);
|
|
|
|
RENDERINGSHARED_EXPORT int cacheFileIsReadable(CacheFile* cache);
|
|
|
|
RENDERINGSHARED_EXPORT int cacheFileIsWritable(CacheFile* cache);
|
|
|
|
RENDERINGSHARED_EXPORT const char* cacheFileGetPath(CacheFile* cache);
|
2012-12-14 16:16:09 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|