home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
internet
/
www
/
!HTTP
/
h
/
requester
< prev
Wrap
Text File
|
1994-10-16
|
3KB
|
95 lines
#ifndef __requester_h_included
#define __requester_h_included
#define arcweb_MAXURL (200)
#define msg_ArcWeb__base (0x4A240)
typedef enum
{
message_ARCWEBFETCH = (msg_ArcWeb__base + 0),
message_ARCWEBDONE = (msg_ArcWeb__base + 1)
} arcweb_msgid;
/* Use these constants in the flag words in the messages below */
#define arcweb_FLAGS_error 0x80000000
#define arcweb_FLAGS_typeknown 0x40000000
#define arcweb_FLAGS_inhibit_render 0x20000000
#define arcweb_FLAGS_want_symlink 0x10000000
#define arcweb_FLAGS_url_changed 0x08000000
#define arcweb_FLAGS_close_previous 0x04000000
#define arcweb_FLAGS_image_fetch 0x02000000
#define arcweb_FLAGS_error_handled 0x01000000
#define arcweb_FLAGS_inhibit_display 0x00800000
#define arcweb_FLAGS_extended_url 0x00400000
#define arcweb_FLAGS_reserved_mask 0x003e0000
#define arcweb_FLAGS_typemask 0x0001ffff
#define arcweb_TYPES_plaintext 0x00010000
#define arcweb_TYPES_html 0x00010001
#define arcweb_TYPES_image 0x00010002
#define arcweb_TYPES_audio 0x00010003
#define arcweb_TYPES_video 0x00010004
#define arcweb_TYPES_binary 0x00010005
#define arcweb_TYPES_image_jpeg 0x00010100
#define arcweb_TYPES_image_gif 0x00010101
#define arcweb_TYPES_image_jfif 0x00010102
#define arcweb_TYPES_image_mswinbitmap 0x00010103
#define arcweb_TYPES_image_xbm 0x00010104
#define arcweb_TYPES_image_clear 0x00010105
#define arcweb_TYPES_image_tiff 0x00010106
#define arcweb_TYPES_unknown 0x0001ffff
/* Flag bit meanings:
bits 0 to 15 : RISC OS/Arcweb filetype indicator
bit 16 : if set, type is arcweb_TYPES_. if clear, RISC OS type
bits 17 to 21 : reserved (must be preserved in replies)
bit 22 : if set, this is an extended URL
bit 23 : if set, Arcweb will not display the results of the render
bit 24 : if set, Arcweb wont raise any error to user
bit 25 : if set, this is an inline image fetch, not a page fetch
bit 26 : if set, the previous ArcWeb window should be closed
bit 27 : if set, URL has been changed (+ is in reply buffer)
bit 28 : if set, request use of symbolic link in host filesystem
bit 29 : if set in ..fetch_done msg, ArcWeb will not render it
bit 30 : if set, bits 0-16 are valid, else they are invalid
bit 31 : if set, the buffer contains an error message
*/
typedef struct
{
void *handle; /* MUST be preserved */
int flags; /* See above */
union
{
int __arcweb_words[57]; /* Ensure the right size */
char __arcweb_data[228]; /* a char version */
struct
{
int localfile; /* *RISC OS* file handle */
char URL[arcweb_MAXURL]; /* The URL */
}
fetch_request;
union
{
struct
{
int use_given_expiry;
int use_default_expiry;
char date[5];
} expiry;
char error[228];
}
fetch_done;
}
data;
} arcweb_msg;
#endif