MiscDefs 2.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* Copyright 1997 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/***************************************************/
/* File   : MiscDefs.h                             */
17
/*                                                 */
18 19
/* Purpose: Miscellaneous definitions for the      */
/*          browser.                               */
20
/*                                                 */
21
/* Author : A.D.Hodgkinson                         */
22 23
/*                                                 */
/* History: 13-Feb-97: Created.                    */
24 25 26 27 28 29
/***************************************************/

/* Browser-defined bits in the flags field of an HStream structure */

#define HFlags_DealtWithToken (1u<<0)
#define HFlags_LinkVisited    (1u<<1)
30
#define HFlags_IgnoreObject   (1u<<2)
31 32 33 34 35 36 37 38 39 40 41 42 43

/* Magic words */

#define Magic_Word_TASK 0x4b534154
#define Magic_Word_FULL 0x4c4c5546
#define Magic_Word_CHEC 0x43454843

/* TaskModule definitions */

#define TaskModule_RegisterService   0x4d302
#define TaskModule_DeRegisterService 0x4d303

#define Message_Service              0x4d300
44 45 46

/* HTTP module SWI numbers */

47 48 49
#define HTTP_AddCookie               0x083fbd
#define HTTP_ConsumeCookie           0x083fbe
#define HTTP_EnumerateCookies        0x083fbf
50

51
/* Generic string value, for passing long strings through messages */
52

53
typedef union string_value
54 55 56 57
{
  char * ptr;
  int    offset;
}
58 59 60 61 62
string_value;

/* ANT suite URL message protocol */

#define Message_ANTOpenURL           0x4af80
63 64 65

typedef struct ant_open_url
{
66 67 68 69 70 71
  int          tag;
  string_value url;
  int          flags;
  string_value file;
  string_value target;
  string_value mimetype;
72 73
}
ant_open_url;