| 1 |
sysadm |
1.1 |
/***************************************************************************
|
| 2 |
|
|
section_list_loader.h - description
|
| 3 |
|
|
-------------------
|
| 4 |
|
|
Copyright : (C) 2004-2025 by Leaflet
|
| 5 |
|
|
Email : leaflet@leafok.com
|
| 6 |
|
|
***************************************************************************/
|
| 7 |
|
|
|
| 8 |
|
|
/***************************************************************************
|
| 9 |
|
|
* *
|
| 10 |
|
|
* This program is free software; you can redistribute it and/or modify *
|
| 11 |
|
|
* it under the terms of the GNU General Public License as published by *
|
| 12 |
|
|
* the Free Software Foundation; either version 3 of the License, or *
|
| 13 |
|
|
* (at your option) any later version. *
|
| 14 |
|
|
* *
|
| 15 |
|
|
***************************************************************************/
|
| 16 |
|
|
|
| 17 |
|
|
#include "section_list.h"
|
| 18 |
|
|
#include <mysql.h>
|
| 19 |
|
|
|
| 20 |
|
|
extern int load_section_config_from_db(MYSQL *db);
|
| 21 |
|
|
|
| 22 |
|
|
// Input global_lock = 0 : lock / unlock corresponding section per article
|
| 23 |
|
|
// 1 : lock / unlock all sections per invocation
|
| 24 |
|
|
extern int append_articles_from_db(MYSQL *db, int32_t start_aid, int global_lock);
|
| 25 |
|
|
|
| 26 |
|
|
// Return on success : real page_id (>= 0)
|
| 27 |
|
|
// failure : error number (< 0)
|
| 28 |
|
|
extern int query_section_articles(SECTION_LIST *p_section, int32_t page_id, ARTICLE *p_articles[], int32_t *p_article_count);
|