12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef WL_HISTORY_H
- #define WL_HISTORY_H
- #include <inttypes.h>
- #include "search.h"
- #define HISTORY_RESULT_START 31
- #define HISTORY_RESULT_HEIGHT 19
- #define MAX_HISTORY 256
- #define HISTORY_PIXEL_START (HISTORY_RESULT_START - HISTORY_RESULT_HEIGHT + 2)
- void history_clear(void);
- void history_add(long idx_article, const char *title, int b_keep_pos);
- unsigned int history_get_count();
- void history_list_init(void);
- int history_list_save(int level);
- void history_open_article(int new_selection);
- void history_reload();
- void history_log_y_pos(const long y_pos);
- void history_set_y_pos(const long idx_article);
- long history_get_y_pos();
- void draw_clear_history(int bFlag);
- long history_get_previous_idx(long current_idx_article, int b_drop_from_list);
- typedef struct __attribute__ ((packed)) _HISTORY {
- int32_t idx_article;
- int32_t last_y_pos;
- char title[MAX_TITLE_ACTUAL];
- } HISTORY;
- enum history_save_e {
- HISTORY_SAVE_NONE,
- HISTORY_SAVE_POWER_OFF,
- HISTORY_SAVE_NORMAL,
- };
- #endif
|