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

Diff of /lbbs/include/article_favor.h

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

Revision 1.4 by sysadm, Tue Nov 4 14:58:55 2025 UTC Revision 1.6 by sysadm, Wed Dec 3 14:04:02 2025 UTC
# Line 12  Line 12 
12  #include "section_list.h"  #include "section_list.h"
13  #include <stdint.h>  #include <stdint.h>
14    
15  #define MAX_FAVOR_AID_BASE_CNT 10000  enum article_favor_constant_t
16  #define MAX_FAVOR_AID_INC_CNT 1000  {
17            MAX_FAVOR_AID_BASE_CNT = 10000,
18            MAX_FAVOR_AID_INC_CNT = 1000,
19    };
20    
21  struct article_favor_t  struct article_favor_t
22  {  {
# Line 41  extern int article_favor_check(int32_t a Line 44  extern int article_favor_check(int32_t a
44  // Set specific article as favorite  // Set specific article as favorite
45  extern int article_favor_set(int32_t aid, ARTICLE_FAVOR *p_favor, int state);  extern int article_favor_set(int32_t aid, ARTICLE_FAVOR *p_favor, int state);
46    
47  extern int query_favor_articles(ARTICLE_FAVOR *p_favor, int page_id, ARTICLE **p_articles,  extern int query_favor_articles(ARTICLE_FAVOR *p_favor, int page_id, const ARTICLE **p_articles,
48                                                                  char p_snames[][BBS_section_name_max_len + 1], int *p_article_count, int *p_page_count);                                                                  char p_snames[][BBS_section_name_max_len + 1], int *p_article_count, int *p_page_count);
49    
50  #endif //_ARTICLE_FAVOR_H_  #endif //_ARTICLE_FAVOR_H_


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

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