| 17 |
#ifndef _SECTION_LIST_LOADER_H_ |
#ifndef _SECTION_LIST_LOADER_H_ |
| 18 |
#define _SECTION_LIST_LOADER_H_ |
#define _SECTION_LIST_LOADER_H_ |
| 19 |
|
|
| 20 |
|
#include "menu.h" |
| 21 |
#include "section_list.h" |
#include "section_list.h" |
| 22 |
#include <mysql/mysql.h> |
#include <mysql/mysql.h> |
| 23 |
|
|
| 27 |
extern int section_list_loader_pid; |
extern int section_list_loader_pid; |
| 28 |
extern int last_article_op_log_mid; |
extern int last_article_op_log_mid; |
| 29 |
|
|
| 30 |
extern int load_section_config_from_db(void); |
extern int load_section_config_from_db(int reload); |
| 31 |
|
|
| 32 |
// Input global_lock = 0 : lock / unlock corresponding section per article |
// Input global_lock = 0 : lock / unlock corresponding section per article |
| 33 |
// 1 : lock / unlock all sections per invocation |
// 1 : lock / unlock all sections per invocation |
| 61 |
extern int locate_article_in_section(SECTION_LIST *p_section, const ARTICLE *p_article_cur, int direction, int step, |
extern int locate_article_in_section(SECTION_LIST *p_section, const ARTICLE *p_article_cur, int direction, int step, |
| 62 |
int *p_page_id, int *p_visible_offset, int *p_article_count); |
int *p_page_id, int *p_visible_offset, int *p_article_count); |
| 63 |
|
|
| 64 |
|
extern int get_section_ex_menu_set(SECTION_LIST *p_section, MENU_SET *p_ex_menu_set); |
| 65 |
|
|
| 66 |
#endif //_SECTION_LIST_LOADER_H_ |
#endif //_SECTION_LIST_LOADER_H_ |