summaryrefslogtreecommitdiff
path: root/nav.h
diff options
context:
space:
mode:
Diffstat (limited to 'nav.h')
-rw-r--r--nav.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/nav.h b/nav.h
index 769096f..393a853 100644
--- a/nav.h
+++ b/nav.h
@@ -5,10 +5,14 @@
#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 doc histv[HIST_MAX];
- size_t cur_ofs[HIST_MAX];
+ struct nav_doc histv[HIST_MAX];
enum protocol prot_default;
};