| 3 |
* section_list |
* section_list |
| 4 |
* - data models and basic operations of section and article |
* - data models and basic operations of section and article |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2026 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
#ifndef _SECTION_LIST_H_ |
#ifndef _SECTION_LIST_H_ |
| 23 |
enum section_list_constant_t |
enum section_list_constant_t |
| 24 |
{ |
{ |
| 25 |
BBS_article_title_max_len = 160, |
BBS_article_title_max_len = 160, |
|
#ifdef __CYGWIN__ |
|
|
BBS_article_limit_per_section = 10000, |
|
|
#else |
|
| 26 |
BBS_article_limit_per_section = 50000, |
BBS_article_limit_per_section = 50000, |
|
#endif |
|
| 27 |
BBS_article_limit_per_page = 20, |
BBS_article_limit_per_page = 20, |
| 28 |
|
|
| 29 |
BBS_ontop_article_limit_per_section = 10, |
BBS_ontop_article_limit_per_section = 10, |
| 138 |
|
|
| 139 |
extern int section_list_append_article(SECTION_LIST *p_section, const ARTICLE *p_article_src); |
extern int section_list_append_article(SECTION_LIST *p_section, const ARTICLE *p_article_src); |
| 140 |
extern int section_list_set_article_visible(SECTION_LIST *p_section, int32_t aid, int8_t visible); |
extern int section_list_set_article_visible(SECTION_LIST *p_section, int32_t aid, int8_t visible); |
| 141 |
|
extern int section_list_set_article_excerption(SECTION_LIST *p_section, int32_t aid, int8_t excerption); |
| 142 |
|
|
| 143 |
extern int section_list_update_article_ontop(SECTION_LIST *p_section, ARTICLE *p_article); |
extern int section_list_update_article_ontop(SECTION_LIST *p_section, ARTICLE *p_article); |
| 144 |
extern int section_list_page_count_with_ontop(SECTION_LIST *p_section); |
extern int section_list_page_count_with_ontop(SECTION_LIST *p_section); |