| 73 |
// in order to allocate enough memory for blocks |
// in order to allocate enough memory for blocks |
| 74 |
extern int article_block_init(const char *filename, int block_count); |
extern int article_block_init(const char *filename, int block_count); |
| 75 |
extern void article_block_cleanup(void); |
extern void article_block_cleanup(void); |
| 76 |
|
|
| 77 |
|
extern int set_article_block_shm_readonly(void); |
| 78 |
|
extern int detach_article_block_shm(void); |
| 79 |
|
|
| 80 |
extern int article_block_reset(void); |
extern int article_block_reset(void); |
| 81 |
|
|
| 82 |
extern ARTICLE *article_block_find_by_aid(int32_t aid); |
extern ARTICLE *article_block_find_by_aid(int32_t aid); |
| 89 |
extern int section_list_init(const char *filename); |
extern int section_list_init(const char *filename); |
| 90 |
extern void section_list_cleanup(void); |
extern void section_list_cleanup(void); |
| 91 |
|
|
| 92 |
|
extern int set_section_list_shm_readonly(void); |
| 93 |
|
extern int detach_section_list_shm(void); |
| 94 |
|
|
| 95 |
extern SECTION_LIST *section_list_create(int32_t sid, const char *sname, const char *stitle, const char *master_name); |
extern SECTION_LIST *section_list_create(int32_t sid, const char *sname, const char *stitle, const char *master_name); |
| 96 |
extern void section_list_reset_articles(SECTION_LIST *p_section); |
extern void section_list_reset_articles(SECTION_LIST *p_section); |
| 97 |
extern SECTION_LIST *section_list_find_by_name(const char *sname); |
extern SECTION_LIST *section_list_find_by_name(const char *sname); |