annotate src/nav.h @ 0:6ee11bf9e3ea

Initial revision
author jcid
date Sun, 07 Oct 2007 00:36:34 +0200
parents
children 145bd87089e7
rev   line source
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
1 #ifndef __NAV_H__
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
2 #define __NAV_H__
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
3
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
4 #include "bw.h"
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
5
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
6
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
7 /* useful macros for the navigation stack */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
8 #define NAV_IDX(bw, i) (bw)->nav_stack[i]
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
9 #define NAV_TOP(bw) (bw)->nav_stack[(bw)->nav_stack_ptr]
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
10
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
11
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
12 #ifdef __cplusplus
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
13 extern "C" {
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
14 #endif /* __cplusplus */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
15
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
16 void a_Nav_push(BrowserWindow *bw, const DilloUrl *url);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
17 void a_Nav_push_nw(BrowserWindow *bw, const DilloUrl *url);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
18 void a_Nav_vpush(void *vbw, const DilloUrl *url);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
19 void a_Nav_back(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
20 void a_Nav_forw(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
21 void a_Nav_home(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
22 void a_Nav_reload(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
23 void a_Nav_jump(BrowserWindow *bw, int offset, int new_bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
24 void a_Nav_free(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
25 void a_Nav_cancel_expect (BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
26 void a_Nav_expect_done(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
27 int a_Nav_stack_ptr(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
28 int a_Nav_stack_size(BrowserWindow *bw);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
29
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
30 void a_Nav_save_url(BrowserWindow *bw,
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
31 const DilloUrl *url, const char *filename);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
32 int a_Nav_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
33
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
34 #ifdef __cplusplus
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
35 }
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
36 #endif /* __cplusplus */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
37
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
38 #endif /* __NAV_H__ */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
39
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
40