/[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.2 by sysadm, Mon May 26 04:47:45 2025 UTC Revision 1.5 by sysadm, Tue May 27 07:21:43 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 section_list_loader_pid;
23    extern int last_article_op_log_mid;
24    
25  extern int load_section_config_from_db(void);  extern int load_section_config_from_db(void);
26    
27  // Input global_lock = 0 : lock / unlock corresponding section per article  // Input global_lock = 0 : lock / unlock corresponding section per article
28  //                     1 : lock / unlock all sections per invocation  //                     1 : lock / unlock all sections per invocation
29  extern int append_articles_from_db(MYSQL *db, int32_t start_aid, int global_lock);  // Return on success : last article aid (> 0)
30    //                   : no article append (= 0)
31    //           failure : lock / unlock error (-1)
32    //                   : unknown section found (ERR_UNKNOWN_SECTION)
33    extern int append_articles_from_db(int32_t start_aid, int global_lock);
34    
35    extern int set_last_article_op_log_from_db(void);
36    
37    extern int apply_article_op_log_from_db(void);
38    
39    extern int section_list_loader_launch(void);
40    
41    extern int section_list_loader_reload(void);
42    
43  // Return on success : real page_id (>= 0)  // Return on success : real page_id (>= 0)
44  //           failure : error number (< 0)  //           failure : error number (< 0)


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

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