--- lbbs/include/article_cache.h 2025/05/31 01:37:18 1.3 +++ lbbs/include/article_cache.h 2025/06/01 14:04:19 1.6 @@ -23,6 +23,8 @@ struct article_cache_t { + void *p_mmap; + size_t mmap_len; char *p_data; size_t data_len; long line_total; @@ -30,7 +32,8 @@ struct article_cache_t }; typedef struct article_cache_t ARTICLE_CACHE; -extern int article_cache_generate(const char *cache_dir, const ARTICLE *p_article, const SECTION_LIST *p_section, const char *content, int overwrite); +extern int article_cache_generate(const char *cache_dir, const ARTICLE *p_article, const SECTION_LIST *p_section, + const char *content, const char *sub_ip, int overwrite); extern int article_cache_load(ARTICLE_CACHE *p_cache, const char *cache_dir, const ARTICLE *p_article); extern int article_cache_unload(ARTICLE_CACHE *p_cache);