mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-11 11:02:37 -04:00
copy dolsdk2004 to tp / b_bh + e_mb done (#2299)
* move dolsdk2004 over * cleanup some temp work * finish and cleanup gf * b_bh done * d_a_e_mb done
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#ifndef _CHARPIPELINE_FILECACHE_H_
|
||||
#define _CHARPIPELINE_FILECACHE_H_
|
||||
|
||||
#include <charPipeline/structures.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define DS_AUTO_PURGE 0
|
||||
#define DS_NO_PURGE 1
|
||||
|
||||
typedef struct {
|
||||
DSLink Link;
|
||||
void (*Free)(Ptr* data);
|
||||
char* Name;
|
||||
Ptr Data;
|
||||
u16 ReferenceCount;
|
||||
} DSCacheNode, *DSCacheNodePtr;
|
||||
|
||||
typedef struct {
|
||||
u8 PurgeFlag;
|
||||
DSList CacheNodeList;
|
||||
} DSCache, *DSCachePtr;
|
||||
|
||||
extern u8 DOCacheInitialized;
|
||||
extern DSCache DODisplayCache;
|
||||
|
||||
DSCacheNodePtr DSAddCacheNode(DSCachePtr cache, char* name, Ptr data, Ptr OSFreeFunc);
|
||||
void DSEmptyCache(DSCachePtr cache);
|
||||
Ptr DSGetCacheObj(DSCachePtr cache, char* name);
|
||||
void DSInitCache(DSCachePtr cache);
|
||||
void DSPurgeCache(DSCachePtr cache);
|
||||
void DSReleaseCacheObj(DSCachePtr cache, Ptr data);
|
||||
void DSSetCachePurgeFlag(DSCachePtr cache, u8 purgeFlag);
|
||||
void CSHInitDisplayCache(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user