annotate src/capi.h @ 2048:5060d415a85a

clickable menu items (even those introducing submenus) MUST have callbacks I clicked on the "Panel size" item itself instead of any of the options in its submenu, and: Segfault!
author corvid <corvid@lavabit.com>
date Thu, 26 May 2011 02:51:18 +0000
parents f50835ca545e
children
rev   line source
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
1 #ifndef __CAPI_H__
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
2 #define __CAPI_H__
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
3
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
4 #ifdef __cplusplus
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
5 extern "C" {
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
6 #endif /* __cplusplus */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
7
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
8
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
9 #include "cache.h"
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
10 #include "web.hh"
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
11
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
12 /*
156
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
13 * Flag defines
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
14 */
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
15 #define CAPI_IsCached (0x1)
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
16 #define CAPI_IsEmpty (0x2)
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
17 #define CAPI_InProgress (0x4)
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
18 #define CAPI_Aborted (0x8)
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
19 #define CAPI_Completed (0x10)
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
20
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
21 /*
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
22 * Function prototypes
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
23 */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
24 void a_Capi_init(void);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
25 int a_Capi_open_url(DilloWeb *web, CA_Callback_t Call, void *CbData);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
26 int a_Capi_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize);
260
81fc5011ea56 - Moved charset decoding into cache.
jcid
parents: 250
diff changeset
27 void a_Capi_unref_buf(const DilloUrl *Url);
250
fce9380ee68a - Switched from charset to content-type for handling data.
jcid
parents: 156
diff changeset
28 const char *a_Capi_get_content_type(const DilloUrl *url);
814
3e06388a0bc3 Cleanup and logic change in a_Cache_set_content_type().
Jorge Arellano Cid <jcid@dillo.org>
parents: 740
diff changeset
29 const char *a_Capi_set_content_type(const DilloUrl *url, const char *ctype,
3e06388a0bc3 Cleanup and logic change in a_Cache_set_content_type().
Jorge Arellano Cid <jcid@dillo.org>
parents: 740
diff changeset
30 const char *from);
156
14f50d7607ed - Added a_Capi_get_flags(). It requests a cache entry's status as flags.
jcid
parents: 0
diff changeset
31 int a_Capi_get_flags(const DilloUrl *Url);
1077
17688e07a8b7 separate a_Capi_get_flags and a_Capi_get_flags_with_redirection
corvid, Jorge Arellano Cid
parents: 814
diff changeset
32 int a_Capi_get_flags_with_redirection(const DilloUrl *Url);
1233
4741a93c3473 Verify dpi URLs for instant redirects.
Jorge Arellano Cid <jcid@dillo.org>
parents: 1077
diff changeset
33 int a_Capi_dpi_verify_request(BrowserWindow *bw, DilloUrl *url);
1591
cf7f2d3312fb trim some spaces
corvid <corvid@lavabit.com>
parents: 1577
diff changeset
34 int a_Capi_dpi_send_data(const DilloUrl *url, void *bw,
1570
f275bd2cdeed Implement the view source functionality as a dpi
Jorge Arellano Cid <jcid@dillo.org>
parents: 1569
diff changeset
35 char *data, int data_sz, char *server, int flags);
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
36 int a_Capi_dpi_send_cmd(DilloUrl *url, void *bw, char *cmd, char *server,
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
37 int flags);
1600
f50835ca545e Fix "view source" for POST URLs
Jorge Arellano Cid <jcid@dillo.org>
parents: 1591
diff changeset
38 void a_Capi_set_vsource_url(const DilloUrl *url);
0
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
39 void a_Capi_stop_client(int Key, int force);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
40 void a_Capi_conn_abort_by_url(const DilloUrl *url);
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
41
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
42
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
43 #ifdef __cplusplus
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
44 }
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
45 #endif /* __cplusplus */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
46
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
47 #endif /* __CAPI_H__ */
6ee11bf9e3ea Initial revision
jcid
parents:
diff changeset
48