rewrite: update default dumb and smart prefixes
[elinks/elinks-j605.git] / src / globhist / globhist.h
blobc3b5847fb743e462b75cfb47357e2e53305f609b
1 #ifndef EL__GLOBHIST_GLOBHIST_H
2 #define EL__GLOBHIST_GLOBHIST_H
4 #include "main/object.h"
5 #include "util/lists.h"
6 #include "util/time.h"
8 struct listbox_item;
9 struct input_history;
11 struct global_history_item {
12 OBJECT_HEAD(struct global_history_item);
14 struct listbox_item *box_item;
16 unsigned char *title;
17 unsigned char *url;
19 time_t last_visit;
22 extern struct input_history global_history;
24 extern unsigned char *gh_last_searched_title;
25 extern unsigned char *gh_last_searched_url;
27 extern struct module global_history_module;
29 void delete_global_history_item(struct global_history_item *);
30 struct global_history_item *get_global_history_item(unsigned char *);
31 void add_global_history_item(unsigned char *, unsigned char *, time_t);
32 int globhist_simple_search(unsigned char *, unsigned char *);
34 #endif