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

Diff of /lbbs/include/section_list_loader.h

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

Revision 1.3 by sysadm, Tue May 27 00:54:59 2025 UTC Revision 1.4 by sysadm, Tue May 27 03:25:02 2025 UTC
# Line 17  Line 17 
17  #include "section_list.h"  #include "section_list.h"
18  #include <mysql.h>  #include <mysql.h>
19    
20    #define ERR_UNKNOWN_SECTION -101
21    
22  extern int load_section_config_from_db(void);  extern int load_section_config_from_db(void);
23    
24  // Input global_lock = 0 : lock / unlock corresponding section per article  // Input global_lock = 0 : lock / unlock corresponding section per article
# Line 24  extern int load_section_config_from_db(v Line 26  extern int load_section_config_from_db(v
26  // Return on success : last article aid (> 0)  // Return on success : last article aid (> 0)
27  //                   : no article append (= 0)  //                   : no article append (= 0)
28  //           failure : lock / unlock error (-1)  //           failure : lock / unlock error (-1)
29  //                   : unknown section found (-4)  //                   : unknown section found (ERR_UNKNOWN_SECTION)
30  extern int append_articles_from_db(int32_t start_aid, int global_lock);  extern int append_articles_from_db(int32_t start_aid, int global_lock);
31    
32  // Return on success : real page_id (>= 0)  // Return on success : real page_id (>= 0)
33  //           failure : error number (< 0)  //           failure : error number (< 0)
34  extern int query_section_articles(SECTION_LIST *p_section, int32_t page_id, ARTICLE *p_articles[], int32_t *p_article_count);  extern int query_section_articles(SECTION_LIST *p_section, int32_t page_id, ARTICLE *p_articles[], int32_t *p_article_count);
35    
36    extern int section_list_loader_launch(void);
37    
38    extern int section_list_loader_reload(void);


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

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