/[LeafOK_CVS]/lbbs/include/section_list.h
ViewVC logotype

Diff of /lbbs/include/section_list.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 by sysadm, Wed May 21 09:18:17 2025 UTC Revision 1.4 by sysadm, Wed May 21 12:43:04 2025 UTC
# Line 29  struct article_t Line 29  struct article_t
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;
# Line 62  struct section_data_t Line 64  struct section_data_t
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    
# Line 72  extern SECTION_DATA *section_data_create Line 76  extern SECTION_DATA *section_data_create
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_section_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_find_article_by_aid(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);  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);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1