/[LeafOK_CVS]/lbbs/include/article_cache.h
ViewVC logotype

Diff of /lbbs/include/article_cache.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 by sysadm, Sat May 31 02:42:24 2025 UTC Revision 1.7 by sysadm, Sat Jun 21 02:15:18 2025 UTC
# Line 18  Line 18 
18  #define _ARTICLE_CACHE_H_  #define _ARTICLE_CACHE_H_
19    
20  #include "common.h"  #include "common.h"
 #include "str_process.h"  
21  #include "section_list.h"  #include "section_list.h"
22    #include "str_process.h"
23    
24  struct article_cache_t  struct article_cache_t
25  {  {
26          void *p_mmap;          void *p_mmap;
27            size_t mmap_len;
28          char *p_data;          char *p_data;
29          size_t data_len;          size_t data_len;
30          long line_total;          long line_total;
# Line 31  struct article_cache_t Line 32  struct article_cache_t
32  };  };
33  typedef struct article_cache_t ARTICLE_CACHE;  typedef struct article_cache_t ARTICLE_CACHE;
34    
35  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,
36                                                                      const char *content, const char *sub_ip, int overwrite);
37    
38  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);
39  extern int article_cache_unload(ARTICLE_CACHE *p_cache);  extern int article_cache_unload(ARTICLE_CACHE *p_cache);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1