| 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 |
| 56 |
// Return on success : found (1) |
// Return on success : found (1) |
| 57 |
// : not found (0) |
// : not found (0) |
| 58 |
// failure : error number (< 0) |
// failure : error number (< 0) |
| 59 |
extern int locate_article_in_section(SECTION_LIST *p_section, const ARTICLE *p_article_cur, int direction, |
extern int locate_article_in_section(SECTION_LIST *p_section, const ARTICLE *p_article_cur, int direction, int step, |
| 60 |
int *p_page_id, int *p_visible_offset, int *p_article_count); |
int *p_page_id, int *p_visible_offset, int *p_article_count); |
| 61 |
|
|
| 62 |
#endif //_SECTION_LIST_LOADER_H_ |
#endif //_SECTION_LIST_LOADER_H_ |