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

Diff of /lbbs/include/section_list_loader.h

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

Revision 1.7 by sysadm, Thu May 29 00:52:09 2025 UTC Revision 1.13 by sysadm, Mon Jun 23 13:14:15 2025 UTC
# Line 18  Line 18 
18  #define _SECTION_LIST_LOADER_H_  #define _SECTION_LIST_LOADER_H_
19    
20  #include "section_list.h"  #include "section_list.h"
21  #include <mysql.h>  #include <mysql/mysql.h>
22    
23  #define ERR_UNKNOWN_SECTION -101  #define ERR_UNKNOWN_SECTION -101
24  #define LOAD_ARTICLE_COUNT_LIMIT 1000  #define LOAD_ARTICLE_COUNT_LIMIT 1000
# Line 48  extern int section_list_loader_reload(vo Line 48  extern int section_list_loader_reload(vo
48    
49  // Return on success : real page_id (>= 0)  // Return on success : real page_id (>= 0)
50  //           failure : error number (< 0)  //           failure : error number (< 0)
51  extern int query_section_articles(SECTION_LIST *p_section, int32_t page_id, ARTICLE *p_articles[], int32_t *p_article_count);  extern int query_section_articles(SECTION_LIST *p_section, int page_id, ARTICLE *p_articles[],
52                                                                      int *p_article_count, int *p_page_count, int *p_ontop_start_offset);
53    
54    // Input direction =  0 : locate p_article_cur
55    //                   -1 :        p_article_cur->p_topic_prior
56    //                    1 :        p_article_cur->p_topic_next
57    // Return on success : found (1)
58    //                   : not found (0)
59    //           failure : error number (< 0)
60    extern int locate_article_in_section(SECTION_LIST *p_section, const ARTICLE *p_article_cur, int direction, int step,
61                                                                             int *p_page_id, int *p_visible_offset, int *p_article_count);
62    
63  #endif //_SECTION_LIST_LOADER_H_  #endif //_SECTION_LIST_LOADER_H_


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

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