| 23 |
|
|
| 24 |
struct article_cache_t |
struct article_cache_t |
| 25 |
{ |
{ |
| 26 |
void *p_data; |
char *p_data; |
| 27 |
size_t data_len; |
size_t data_len; |
| 28 |
long line_total; |
long line_total; |
| 29 |
long line_offsets[MAX_SPLIT_FILE_LINES]; |
long line_offsets[MAX_SPLIT_FILE_LINES]; |
| 30 |
}; |
}; |
| 31 |
typedef struct article_cache_t ARTICLE_CACHE; |
typedef struct article_cache_t ARTICLE_CACHE; |
| 32 |
|
|
| 33 |
extern int article_cache_generate(const char *cache_dir, const ARTICLE *p_article, const char *content); |
extern int article_cache_generate(const char *cache_dir, const ARTICLE *p_article, const char *content, int overwrite); |
| 34 |
|
|
| 35 |
extern int article_cache_load(ARTICLE_CACHE *p_cache, const char *cache_dir, const ARTICLE *p_article); |
extern int article_cache_load(ARTICLE_CACHE *p_cache, const char *cache_dir, const ARTICLE *p_article); |
| 36 |
extern int article_cache_unload(ARTICLE_CACHE *p_cache); |
extern int article_cache_unload(ARTICLE_CACHE *p_cache); |