/* 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 */ /* */ /* Purpose: Miscellaneous definitions for the */ /* browser. */ /* */ /* Author : A.D.Hodgkinson */ /* */ /* History: 13-Feb-97: Created. */ /***************************************************/ /* Browser-defined bits in the flags field of an HStream structure */ #define HFlags_DealtWithToken (1u<<0) #define HFlags_LinkVisited (1u<<1) /* 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 /* HTTP module SWI numbers */ #define HTTP_EnumerateCookies 0x83f85 #define HTTP_ConsumeCookie 0x83f86 #define HTTP_AddCookie 0x83f87 #define HTTP_UserAgent 0x83f88 /* ANT suite URL message protocol */ #define Message_ANTOpenURL 0x4af80 typedef union ant_string_value { char * ptr; int offset; } ant_string_value; typedef struct ant_open_url { int tag; ant_string_value url; int flags; ant_string_value file; ant_string_value target; ant_string_value mimetype; } ant_open_url;