diff options
Diffstat (limited to 'nav.h')
-rw-r--r-- | nav.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +#ifndef NAV_H +#define NAV_H + +#include "doc.h" +#define HIST_MAX 32 + +struct nav_state { + size_t histc, cur_doc; + struct doc histv[HIST_MAX]; + size_t cur_ofs[HIST_MAX]; +}; + +void nav_init(struct nav_state *ns); +void nav_fini(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); + +#endif |