/* 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) #define HFlags_IgnoreObject (1u<<2) /* 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_AddCookie 0x083fbd #define HTTP_ConsumeCookie 0x083fbe #define HTTP_EnumerateCookies 0x083fbf /* Generic string value, for passing long strings through messages */ typedef union string_value { char * ptr; int offset; } string_value; /* ANT suite URL message protocol */ #define Message_ANTOpenURL 0x4af80 typedef struct ant_open_url { int tag; string_value url; int flags; string_value file; string_value target; string_value mimetype; } ant_open_url;