comparison src/capi.h @ 156:14f50d7607ed

- Added a_Capi_get_flags(). It requests a cache entry's status as flags.
author jcid
date Wed, 26 Mar 2008 15:46:46 +0100
parents 6ee11bf9e3ea
children fce9380ee68a
comparison
equal deleted inserted replaced
155:fb8da086d7da 156:14f50d7607ed
8 8
9 #include "cache.h" 9 #include "cache.h"
10 #include "web.hh" 10 #include "web.hh"
11 11
12 /* 12 /*
13 * Flag defines
14 */
15 #define CAPI_IsCached (0x1)
16 #define CAPI_IsEmpty (0x2)
17 #define CAPI_InProgress (0x4)
18 #define CAPI_Aborted (0x8)
19 #define CAPI_Completed (0x10)
20
21 /*
13 * Function prototypes 22 * Function prototypes
14 */ 23 */
15 void a_Capi_init(void); 24 void a_Capi_init(void);
16 int a_Capi_open_url(DilloWeb *web, CA_Callback_t Call, void *CbData); 25 int a_Capi_open_url(DilloWeb *web, CA_Callback_t Call, void *CbData);
17 int a_Capi_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize); 26 int a_Capi_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize);
27 int a_Capi_get_flags(const DilloUrl *Url);
18 int a_Capi_dpi_send_cmd(DilloUrl *url, void *bw, char *cmd, char *server, 28 int a_Capi_dpi_send_cmd(DilloUrl *url, void *bw, char *cmd, char *server,
19 int flags); 29 int flags);
20 void a_Capi_stop_client(int Key, int force); 30 void a_Capi_stop_client(int Key, int force);
21 void a_Capi_conn_abort_by_url(const DilloUrl *url); 31 void a_Capi_conn_abort_by_url(const DilloUrl *url);
22 32