blob: 120eb3c10202bab0305d6699f177897655c309b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef __CAPI_H__
#define __CAPI_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "cache.h"
#include "web.hh"
/*
* Flag defines
*/
#define CAPI_IsCached (0x1)
#define CAPI_IsEmpty (0x2)
#define CAPI_InProgress (0x4)
#define CAPI_Aborted (0x8)
#define CAPI_Completed (0x10)
/*
* Function prototypes
*/
void a_Capi_init(void);
int a_Capi_open_url(DilloWeb *web, CA_Callback_t Call, void *CbData);
int a_Capi_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize);
int a_Capi_get_flags(const DilloUrl *Url);
int a_Capi_dpi_send_cmd(DilloUrl *url, void *bw, char *cmd, char *server,
int flags);
void a_Capi_stop_client(int Key, int force);
void a_Capi_conn_abort_by_url(const DilloUrl *url);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __CAPI_H__ */
|