summaryrefslogtreecommitdiff
path: root/src/nav.h
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-10-07 00:36:34 +0200
committerjcid <devnull@localhost>2007-10-07 00:36:34 +0200
commit93715c46a99c96d6c866968312691ec9ab0f6a03 (patch)
tree573f19ec6aa740844f53a7c0eb7114f04096bf64 /src/nav.h
Initial revision
Diffstat (limited to 'src/nav.h')
-rw-r--r--src/nav.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/nav.h b/src/nav.h
new file mode 100644
index 00000000..7b6999ac
--- /dev/null
+++ b/src/nav.h
@@ -0,0 +1,40 @@
+#ifndef __NAV_H__
+#define __NAV_H__
+
+#include "bw.h"
+
+
+/* useful macros for the navigation stack */
+#define NAV_IDX(bw, i) (bw)->nav_stack[i]
+#define NAV_TOP(bw) (bw)->nav_stack[(bw)->nav_stack_ptr]
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+void a_Nav_push(BrowserWindow *bw, const DilloUrl *url);
+void a_Nav_push_nw(BrowserWindow *bw, const DilloUrl *url);
+void a_Nav_vpush(void *vbw, const DilloUrl *url);
+void a_Nav_back(BrowserWindow *bw);
+void a_Nav_forw(BrowserWindow *bw);
+void a_Nav_home(BrowserWindow *bw);
+void a_Nav_reload(BrowserWindow *bw);
+void a_Nav_jump(BrowserWindow *bw, int offset, int new_bw);
+void a_Nav_free(BrowserWindow *bw);
+void a_Nav_cancel_expect (BrowserWindow *bw);
+void a_Nav_expect_done(BrowserWindow *bw);
+int a_Nav_stack_ptr(BrowserWindow *bw);
+int a_Nav_stack_size(BrowserWindow *bw);
+
+void a_Nav_save_url(BrowserWindow *bw,
+ const DilloUrl *url, const char *filename);
+int a_Nav_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __NAV_H__ */
+
+