| 29 |
int32_t tid; |
int32_t tid; |
| 30 |
int32_t cid; |
int32_t cid; |
| 31 |
int32_t uid; |
int32_t uid; |
| 32 |
int32_t prior_aid; |
struct article_t *p_prior; // prior article |
| 33 |
int32_t next_aid; |
struct article_t *p_next; // next article |
| 34 |
|
struct article_t * p_topic_prior; // same topic |
| 35 |
|
struct article_t * p_topic_next; // same topic |
| 36 |
int8_t visible; |
int8_t visible; |
| 37 |
int8_t excerption; |
int8_t excerption; |
| 38 |
int8_t ontop; |
int8_t ontop; |
| 64 |
int32_t block_head_aid[BBS_article_block_limit_per_section]; |
int32_t block_head_aid[BBS_article_block_limit_per_section]; |
| 65 |
int32_t article_count; |
int32_t article_count; |
| 66 |
int32_t delete_count; |
int32_t delete_count; |
| 67 |
|
ARTICLE *p_article_head; |
| 68 |
|
ARTICLE *p_article_tail; |
| 69 |
}; |
}; |
| 70 |
typedef struct section_data_t SECTION_DATA; |
typedef struct section_data_t SECTION_DATA; |
| 71 |
|
|
| 74 |
|
|
| 75 |
extern SECTION_DATA *section_data_create(const char *sname, const char *stitle, const char *master_name); |
extern SECTION_DATA *section_data_create(const char *sname, const char *stitle, const char *master_name); |
| 76 |
extern int section_data_free_block(SECTION_DATA *p_section); |
extern int section_data_free_block(SECTION_DATA *p_section); |
| 77 |
extern SECTION_DATA *section_data_find_by_name(const char *sname); |
extern SECTION_DATA *section_data_find_section_by_name(const char *sname); |
| 78 |
|
|
| 79 |
extern int section_data_append_article(SECTION_DATA *p_section, const ARTICLE *p_article); |
extern int section_data_append_article(SECTION_DATA *p_section, const ARTICLE *p_article_src); |
| 80 |
extern ARTICLE *section_data_search_article(SECTION_DATA *p_section, int32_t aid); |
extern ARTICLE *section_data_find_article_by_aid(SECTION_DATA *p_section, int32_t aid); |
| 81 |
|
extern ARTICLE *section_data_find_article_by_index(SECTION_DATA *p_section, int index); |
| 82 |
extern int section_data_mark_del_article(SECTION_DATA *p_section, int32_t aid); |
extern int section_data_mark_del_article(SECTION_DATA *p_section, int32_t aid); |