Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (54 sloc) 1.89 kb
07921e8 @hxw [grifo] updates from Symbio
hxw authored
1 /*
2 * Copyright (c) 2009 Openmoko Inc.
3 *
4 * Authors Holger Hans Peter Freyther <zecke@openmoko.org>
5 * Matt Hsu <matt_hsu@openmoko.org>
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef WL_HISTORY_H
22 #define WL_HISTORY_H
23
24 #include <inttypes.h>
25 #include "search.h"
26
27 #define HISTORY_RESULT_START 31
28 //#define HISTORY_RESULT_HEIGHT 10
29 #define HISTORY_RESULT_HEIGHT 19
30 #define MAX_HISTORY 256
31 #define HISTORY_PIXEL_START (HISTORY_RESULT_START - HISTORY_RESULT_HEIGHT + 2)
32 /*
33 * Interface for the History feature
34 */
35
36 void history_clear(void);
37
65f4d63 @hxw [grifo] make the wiki.app work on the grifo simulator
hxw authored
38 void history_add(long idx_article, const unsigned char *title, int b_keep_pos);
07921e8 @hxw [grifo] updates from Symbio
hxw authored
39 unsigned int history_get_count();
40 void history_list_init(void);
41 int history_list_save(int level);
42
43 void history_open_article(int new_selection);
44 void history_reload();
45 void history_log_y_pos(const long y_pos);
46 void history_set_y_pos(const long idx_article);
47 long history_get_y_pos();
48 void draw_clear_history(int bFlag);
49 long history_get_previous_idx(long current_idx_article, int b_drop_from_list);
50
51 typedef struct __attribute__ ((packed)) _HISTORY {
52 int32_t idx_article;
53 int32_t last_y_pos;
65f4d63 @hxw [grifo] make the wiki.app work on the grifo simulator
hxw authored
54 unsigned char title[MAX_TITLE_ACTUAL];
07921e8 @hxw [grifo] updates from Symbio
hxw authored
55 } HISTORY;
56
57 enum history_save_e {
58
59 HISTORY_SAVE_NONE,
60 HISTORY_SAVE_POWER_OFF,
61 HISTORY_SAVE_NORMAL,
62 };
63 #endif
Something went wrong with that request. Please try again.