Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
web.hh
Go to the documentation of this file.
1#ifndef __WEB_H__
2#define __WEB_H__
3
4#include <stdio.h> /* for FILE */
5#include "bw.h" /* for BrowserWindow */
6#include "cache.h" /* for CA_Callback_t */
7#include "image.hh" /* for DilloImage */
8
9#ifdef __cplusplus
10extern "C" {
11#endif /* __cplusplus */
12
13/*
14 * Flag defines
15 */
16#define WEB_RootUrl 1
17#define WEB_Image 2
18#define WEB_Stylesheet 4
19#define WEB_Download 8 /* Half implemented... */
20
21
22typedef struct _DilloWeb DilloWeb;
23
38
39void a_Web_init(void);
41 const DilloUrl *requester);
42int a_Web_valid(DilloWeb *web);
43void a_Web_free (DilloWeb*);
44int a_Web_dispatch_by_type (const char *Type, DilloWeb *web,
45 CA_Callback_t *Call, void **Data);
46
47#ifdef __cplusplus
48}
49#endif /* __cplusplus */
50#endif /* __WEB_H__ */
void(* CA_Callback_t)(int Op, CacheClient_t *Client)
Callback type for cache clients.
Definition cache.h:43
The DilloImage data-structure and methods.
Contains the specific data for a single window.
Definition bw.h:27
Definition url.h:88
char * filename
Variables for Local saving.
Definition web.hh:34
int flags
Additional info.
Definition web.hh:29
DilloUrl * url
Requested URL.
Definition web.hh:25
FILE * stream
Definition web.hh:35
DilloUrl * requester
URL that caused this request, or < NULL if user-initiated.
Definition web.hh:26
BrowserWindow * bw
The requesting browser window [reference].
Definition web.hh:28
DilloImage * Image
For image urls [reference].
Definition web.hh:31
int32_t bgColor
for image backgrounds
Definition web.hh:33
int SavedBytes
Definition web.hh:36
void a_Web_init(void)
Definition web.cc:38
int a_Web_dispatch_by_type(const char *Type, DilloWeb *web, CA_Callback_t *Call, void **Data)
Given the MIME content type, and a fd to read it from, this function connects the proper MIME viewer ...
Definition web.cc:50
DilloWeb * a_Web_new(BrowserWindow *bw, const DilloUrl *url, const DilloUrl *requester)
Allocate and set safe values for a DilloWeb structure.
Definition web.cc:121
void a_Web_free(DilloWeb *)
Deallocate a DilloWeb structure.
Definition web.cc:152
int a_Web_valid(DilloWeb *web)
Validate a DilloWeb pointer.
Definition web.cc:144