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)
35 char *data,
int data_sz,
char *server,
int flags);
void(* CA_Callback_t)(int Op, CacheClient_t *Client)
Callback type for cache clients.
int a_Capi_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize)
Get the cache's buffer for the URL, and its size.
int a_Capi_dpi_send_cmd(DilloUrl *url, void *bw, char *cmd, char *server, int flags)
Send a dpi cmd.
const char * a_Capi_set_content_type(const DilloUrl *url, const char *ctype, const char *from)
Set the Content-Type for the URL.
void a_Capi_set_vsource_url(const DilloUrl *url)
Store the last URL requested by "view source".
int a_Capi_dpi_verify_request(BrowserWindow *bw, DilloUrl *url)
Safety test: only allow GET|POST dpi-urls from dpi-generated pages.
void a_Capi_unref_buf(const DilloUrl *Url)
Unref the cache's buffer when no longer using it.
int a_Capi_open_url(DilloWeb *web, CA_Callback_t Call, void *CbData)
Most used function for requesting a URL.
int a_Capi_get_flags_with_redirection(const DilloUrl *Url)
Same as a_Capi_get_flags() but following redirections.
void a_Capi_stop_client(int Key, int force)
Remove a client from the cache client queue.
void a_Capi_init(void)
Initialize capi&cache data.
const char * a_Capi_get_content_type(const DilloUrl *url)
Get the Content-Type associated with the URL.
int a_Capi_dpi_send_data(const DilloUrl *url, void *bw, char *data, int data_sz, char *server, int flags)
Send data to a dpi (e.g.
void a_Capi_conn_abort_by_url(const DilloUrl *url)
Abort the connection for a given url, using its CCC.
int a_Capi_get_flags(const DilloUrl *Url)
Return status information of an URL's content-transfer process.
Contains the specific data for a single window.