/[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.2 by sysadm, Wed Oct 15 02:25:13 2025 UTC Revision 1.7 by sysadm, Sat Jan 3 10:27:14 2026 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                           article_favor.h  -  description  /*
3                                                           -------------------   * article_favor
4          Copyright            : (C) 2004-2025 by Leaflet   *   - data model and basic operations of user favorite articles
5          Email                : leaflet@leafok.com   *
6   ***************************************************************************/   * Copyright (C) 2004-2026  Leaflet <leaflet@leafok.com>
7     */
 /***************************************************************************  
  *                                                                         *  
  *   This program is free software; you can redistribute it and/or modify  *  
  *   it under the terms of the GNU General Public License as published by  *  
  *   the Free Software Foundation; either version 3 of the License, or     *  
  *   (at your option) any later version.                                   *  
  *                                                                         *  
  ***************************************************************************/  
8    
9  #ifndef _ARTICLE_FAVOR_H_  #ifndef _ARTICLE_FAVOR_H_
10  #define _ARTICLE_FAVOR_H_  #define _ARTICLE_FAVOR_H_
# Line 20  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 49  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