blob: 393a853f57397e2da9e6d2e83a73090b33592772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef NAV_H
#define NAV_H
#include "doc.h"
#include "net.h"
#define HIST_MAX 32
struct nav_doc {
struct doc doc;
size_t offset;
};
struct nav_state {
size_t histc, cur_doc;
struct nav_doc histv[HIST_MAX];
enum protocol prot_default;
};
void nav_init(struct nav_state *ns);
void nav_fini(struct nav_state *ns);
void nav_next(struct nav_state *ns);
void nav_prev(struct nav_state *ns);
void nav_pg_up(struct nav_state *ns);
void nav_pg_down(struct nav_state *ns);
void nav_redraw(struct nav_state *ns);
int nav_to(struct nav_state *ns, const char *url);
int nav_link_nr(struct nav_state *ns, unsigned long link_nr);
void nav_prompt(struct nav_state *ns);
#endif
|