--- lbbs/include/article_cache.h 2025/05/30 12:51:00 1.2 +++ lbbs/include/article_cache.h 2025/06/21 02:15:18 1.7 @@ -18,11 +18,13 @@ #define _ARTICLE_CACHE_H_ #include "common.h" -#include "str_process.h" #include "section_list.h" +#include "str_process.h" 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 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);