[rendering] This simple trick didn't work...
[wikipediardware.git] / wiki-lib / include / article.h
blob66cf8a1b52981956c0216de6bd7de0efb7578fe1
1 /*
2 * Copyright (c) 2009 Holger Hans Peter Freyther <zecke@openmoko.org>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef ARTICLE_H
19 #define ARTICLE_H
21 #include <wikilib.h>
23 enum article_nav {
24 ARTICLE_PAGE_0 = 0,
25 ARTICLE_PAGE_NEXT,
26 ARTICLE_PAGE_PREV
29 /**
30 * Return < 0 in case of error
32 int article_open(const char *article);
33 void article_display(enum article_nav nav);
34 void article_close(void);
35 void article_extract_file_and_offset(const char *target, unsigned int *file, unsigned int *offset);
37 #endif