/[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.14 by sysadm, Mon May 26 03:20:39 2025 UTC Revision 1.15 by sysadm, Mon May 26 23:38:11 2025 UTC
# Line 16  Line 16 
16    
17  #include "common.h"  #include "common.h"
18  #include "bbs.h"  #include "bbs.h"
19    #include <time.h>
20    
21  #define BBS_article_title_max_len 80  #define BBS_article_title_max_len 80
22  #define BBS_article_limit_per_section 50000  #define BBS_article_limit_per_section 50000
# Line 41  struct article_t Line 42  struct article_t
42          char username[BBS_username_max_len + 1];          char username[BBS_username_max_len + 1];
43          char nickname[BBS_nickname_max_len + 1];          char nickname[BBS_nickname_max_len + 1];
44          char title[BBS_article_title_max_len + 1];          char title[BBS_article_title_max_len + 1];
45            time_t sub_dt;
46  };  };
47  typedef struct article_t ARTICLE;  typedef struct article_t ARTICLE;
48    
# Line 76  extern int article_block_reset(void); Line 78  extern int article_block_reset(void);
78  extern ARTICLE *article_block_find_by_aid(int32_t aid);  extern ARTICLE *article_block_find_by_aid(int32_t aid);
79  extern ARTICLE *article_block_find_by_index(int index);  extern ARTICLE *article_block_find_by_index(int index);
80    
81    extern int32_t article_block_last_aid(void);
82    
83  extern int article_count_of_topic(int32_t aid);  extern int article_count_of_topic(int32_t aid);
84    
85  extern int section_list_init(const char *filename);  extern int section_list_init(const char *filename);


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

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