| 19 |
|
|
| 20 |
#define ERR_UNKNOWN_SECTION -101 |
#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 |
| 32 |
// : unknown section found (ERR_UNKNOWN_SECTION) |
// : unknown section found (ERR_UNKNOWN_SECTION) |
| 33 |
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); |
| 34 |
|
|
| 35 |
// Return on success : real page_id (>= 0) |
extern int set_last_article_op_log_from_db(void); |
| 36 |
// failure : error number (< 0) |
|
| 37 |
extern int query_section_articles(SECTION_LIST *p_section, int32_t page_id, ARTICLE *p_articles[], int32_t *p_article_count); |
extern int apply_article_op_log_from_db(void); |
| 38 |
|
|
| 39 |
extern int section_list_loader_launch(void); |
extern int section_list_loader_launch(void); |
| 40 |
|
|
| 41 |
extern int section_list_loader_reload(void); |
extern int section_list_loader_reload(void); |
| 42 |
|
|
| 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); |