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

Annotation of /lbbs/include/section_list_loader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations)
Tue May 27 07:21:43 2025 UTC (9 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.4: +10 -3 lines
Content type: text/x-chdr
Add set_last_article_op_log_from_db() and set_last_article_op_log_from_db()

1 sysadm 1.1 /***************************************************************************
2     section_list_loader.h - description
3     -------------------
4     Copyright : (C) 2004-2025 by Leaflet
5     Email : leaflet@leafok.com
6     ***************************************************************************/
7    
8     /***************************************************************************
9     * *
10     * This program is free software; you can redistribute it and/or modify *
11     * it under the terms of the GNU General Public License as published by *
12     * the Free Software Foundation; either version 3 of the License, or *
13     * (at your option) any later version. *
14     * *
15     ***************************************************************************/
16    
17     #include "section_list.h"
18     #include <mysql.h>
19    
20 sysadm 1.4 #define ERR_UNKNOWN_SECTION -101
21    
22 sysadm 1.5 extern int section_list_loader_pid;
23     extern int last_article_op_log_mid;
24    
25 sysadm 1.2 extern int load_section_config_from_db(void);
26 sysadm 1.1
27     // Input global_lock = 0 : lock / unlock corresponding section per article
28     // 1 : lock / unlock all sections per invocation
29 sysadm 1.3 // Return on success : last article aid (> 0)
30     // : no article append (= 0)
31     // failure : lock / unlock error (-1)
32 sysadm 1.4 // : unknown section found (ERR_UNKNOWN_SECTION)
33 sysadm 1.3 extern int append_articles_from_db(int32_t start_aid, int global_lock);
34 sysadm 1.1
35 sysadm 1.5 extern int set_last_article_op_log_from_db(void);
36    
37     extern int apply_article_op_log_from_db(void);
38 sysadm 1.4
39     extern int section_list_loader_launch(void);
40    
41     extern int section_list_loader_reload(void);
42 sysadm 1.5
43     // Return on success : real page_id (>= 0)
44     // failure : error number (< 0)
45     extern int query_section_articles(SECTION_LIST *p_section, int32_t page_id, ARTICLE *p_articles[], int32_t *p_article_count);

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