[0001]
[0002]
[0003]
[0004]
[0005]
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
[0077]
[0078]
[0079]
[0080]
[0081]
[0082]
[0083]
[0084]
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098]
[0099]
[0100]
[0101]
[0102]
[0103]
[0104]
[0105]
[0106]
[0107]
[0108]
[0109]
[0110]
[0111]
[0112]
[0113]
[0114]
[0115]
[0116]
[0117]
[0118]
[0119]
[0120]
[0121]
[0122]
[0123]
[0124]
[0125]
[0126]
[0127]
[0128]
[0129]
[0130]
[0131]
[0132]
[0133]
[0134]
[0135]
[0136]
[0137]
[0138]
[0139]
[0140]
[0141]
[0142]
[0143]
[0144]
[0145]
[0146]
[0147]
[0148]
[0149]
[0150]
[0151]
[0152]
[0153]
[0154]
[0155]
[0156]
[0157]
[0158]
[0159]
[0160]
[0161]
[0162]
[0163]
[0164]
[0165]
[0166]
[0167]
[0168]
[0169]
[0170]
[0171]
[0172]
[0173]
[0174]
[0175]
[0176]
[0177]
[0178]
[0179]
[0180]
[0181]
[0182]
[0183]
[0184]
[0185]
[0186]
[0187]
[0188]
[0189]
[0190]
[0191]
[0192]
[0193]
[0194]
[0195]
[0196]
[0197]
[0198]
[0199]
[0200]
[0201]
[0202]
[0203]
[0204]
[0205]
[0206]
[0207]
[0208]
[0209]
[0210]
[0211]
[0212]
[0213]
[0214]
[0215]
[0216]
[0217]
[0218]
[0219]
[0220]
[0221]
[0222]
[0223]
[0224]
[0225]
[0226]
[0227]
[0228]
[0229]
[0230]
[0231]
[0232]
[0233]
[0234]
[0235]
[0236]
[0237]
[0238]
[0239]
[0240]
[0241]
[0242]
[0243]
[0244]
[0245]
[0246]
[0247]
[0248]
[0249]
[0250]
[0251]
[0252]
[0253]
[0254]
[0255]
[0256]
[0257]
[0258]
[0259]
[0260]
[0261]
[0262]
[0263]
[0264]
[0265]
[0266]
[0267]
[0268]
[0269]
[0270]
[0271]
[0272]
[0273]
[0274]
[0275]
[0276]
[0277]
[0278]
[0279]
[0280]
[0281]
[0282]
[0283]
[0284]
[0285]
[0286]
[0287]
[0288]
[0289]
[0290]
[0291]
[0292]
[0293]
[0294]
[0295]
[0296]
[0297]
[0298]
[0299]
[0300]
[0301]
[0302]
[0303]
[0304]
[0305]
[0306]
[0307]
[0308]
[0309]
[0310]
[0311]
[0312]
[0313]
[0314]
[0315]
[0316]
[0317]
[0318]
[0319]
[0320]
[0321]
[0322]
[0323]
[0324]
[0325]
[0326]
[0327]
[0328]
[0329]
[0330]
[0331]
[0332]
[0333]
[0334]
[0335]
[0336]
[0337]
[0338]
[0339]
[0340]
[0341]
[0342]
[0343]
[0344]
[0345]
[0346]
[0347]
[0348]
[0349]
[0350]
/*****************************************************************************/
/*
                                  msg.h

Defines a macro and number 1..n for all of the messages used in the server.
Also calculates the number of messages so created for sizing of data
structures, looping purposes, etc. In true C fashion this could break horribly
if the __BASE, __MAX and NUMBER_OF_GROUPS macros are not properly adjusted
when the number of defined messages is altered!  The __BASE number (and
pointer array index) is reserved for storing the group name in language one for
reporting purposes.

06-JUL-2016  MGD  excise [ismap] group
27-NOV-2004  MGD  additional messages for v9.0
21-AUG-2003  MGD  add character set field
04-APR-2003  MGD  add 'LanguageList' field
26-JUN-2002  MGD  additional messages for v8.0
06-MAY-2000  MGD  additional messages for v7.0
23-DEC-1999  MGD  bugfix; MSG_PROXY_HEADER
04-DEC-1999  MGD  additional messages for v6.1
05-MAY-1999  MGD  additional messages for v6.0 proxy
12-MAR-1998  MGD  additional messages for v5.0
25-OCT-1997  MGD  changes around MsgFor() when no request structure available
31-AUG-1997  MGD  added MSG_DIR_INDEX_OF and MSG_DIR_TREE_OF (an oversight)
09-AUG-1997  MGD  initial
*/
/*****************************************************************************/
             
#ifndef MSG_H_LOADED
#define MSG_H_LOADED 1

#include "wasd.h"

#define MSG_VERSION "9.0"

#define  MSG_AUTH__BASE                 0
#define  MSG_AUTH_REQUIRED              MSG_AUTH__BASE+1
#define  MSG_AUTH_ACCESS_DENIED         MSG_AUTH__BASE+2
#define  MSG_AUTH_FAILED                MSG_AUTH__BASE+3
#define  MSG_AUTH_SCHEME                MSG_AUTH__BASE+4
#define  MSG_AUTH_USER                  MSG_AUTH__BASE+5
#define  MSG_AUTH_DATABASE              MSG_AUTH__BASE+6
#define  MSG_AUTH_DATABASE_VMS          MSG_AUTH__BASE+7
#define  MSG_AUTH_USERNAME_LENGTH       MSG_AUTH__BASE+8
#define  MSG_AUTH_PASSWORD_LENGTH       MSG_AUTH__BASE+9
#define  MSG_AUTH_NO_LOGOUT             MSG_AUTH__BASE+10
#define  MSG_AUTH_AGENT_MAPPING         MSG_AUTH__BASE+11
#define  MSG_AUTH_AGENT_NOT_FOUND       MSG_AUTH__BASE+12
#define  MSG_AUTH_AGENT_RESPONSE        MSG_AUTH__BASE+13
#define  MSG_AUTH_LOGOUT                MSG_AUTH__BASE+14
#define  MSG_AUTH__MAX                  14

#define  MSG_DIR__BASE                  MSG_AUTH__BASE+MSG_AUTH__MAX+1
#define  MSG_DIR_COLUMN_HEADINGS        MSG_DIR__BASE+1
#define  MSG_DIR_PARENT                 MSG_DIR__BASE+2
#define  MSG_DIR_SUB                    MSG_DIR__BASE+3
#define  MSG_DIR_LAYOUT                 MSG_DIR__BASE+4
#define  MSG_DIR_INDEX_OF               MSG_DIR__BASE+5
#define  MSG_DIR_TREE_OF                MSG_DIR__BASE+6
#define  MSG_DIR__MAX                   6

#define  MSG_GENERAL__BASE              MSG_DIR__BASE+MSG_DIR__MAX+1
#define  MSG_GENERAL_SANITY             MSG_GENERAL__BASE+1
#define  MSG_GENERAL_INTERNAL           MSG_GENERAL__BASE+2
#define  MSG_GENERAL_OVERFLOW           MSG_GENERAL__BASE+3
#define  MSG_GENERAL_HEAP               MSG_GENERAL__BASE+4
#define  MSG_GENERAL_CALLOC             MSG_GENERAL__BASE+5
#define  MSG_GENERAL_REQUEST_CALLOC     MSG_GENERAL__BASE+6
#define  MSG_GENERAL_TOO_BUSY           MSG_GENERAL__BASE+7
#define  MSG_GENERAL_ACCESS_DENIED      MSG_GENERAL__BASE+8
#define  MSG_GENERAL_DISABLED           MSG_GENERAL__BASE+9
#define  MSG_GENERAL_NO_WILDCARD        MSG_GENERAL__BASE+10
#define  MSG_GENERAL_FILE               MSG_GENERAL__BASE+11
#define  MSG_GENERAL_DOCUMENT           MSG_GENERAL__BASE+12
#define  MSG_GENERAL_DIRECTORY          MSG_GENERAL__BASE+13
#define  MSG_GENERAL_NOT_SSL            MSG_GENERAL__BASE+14
#define  MSG_GENERAL_TRY_LATER          MSG_GENERAL__BASE+15
#define  MSG_GENERAL__MAX               15

#define  MSG_HTTP__BASE                 MSG_GENERAL__BASE+MSG_GENERAL__MAX+1
#define  MSG_HTTP_UNKNOWN               MSG_HTTP__BASE+1
#define  MSG_HTTP_100                   MSG_HTTP__BASE+2
#define  MSG_HTTP_101                   MSG_HTTP__BASE+3
#define  MSG_HTTP_200                   MSG_HTTP__BASE+4
#define  MSG_HTTP_201                   MSG_HTTP__BASE+5
#define  MSG_HTTP_202                   MSG_HTTP__BASE+6
#define  MSG_HTTP_203                   MSG_HTTP__BASE+7
#define  MSG_HTTP_204                   MSG_HTTP__BASE+8
#define  MSG_HTTP_205                   MSG_HTTP__BASE+9
#define  MSG_HTTP_206                   MSG_HTTP__BASE+10
#define  MSG_HTTP_300                   MSG_HTTP__BASE+11
#define  MSG_HTTP_301                   MSG_HTTP__BASE+12
#define  MSG_HTTP_302                   MSG_HTTP__BASE+13
#define  MSG_HTTP_303                   MSG_HTTP__BASE+14
#define  MSG_HTTP_304                   MSG_HTTP__BASE+15
#define  MSG_HTTP_305                   MSG_HTTP__BASE+16
#define  MSG_HTTP_307                   MSG_HTTP__BASE+17
#define  MSG_HTTP_400                   MSG_HTTP__BASE+18
#define  MSG_HTTP_401                   MSG_HTTP__BASE+19
#define  MSG_HTTP_402                   MSG_HTTP__BASE+20
#define  MSG_HTTP_403                   MSG_HTTP__BASE+21
#define  MSG_HTTP_404                   MSG_HTTP__BASE+22
#define  MSG_HTTP_405                   MSG_HTTP__BASE+23
#define  MSG_HTTP_406                   MSG_HTTP__BASE+24
#define  MSG_HTTP_407                   MSG_HTTP__BASE+25
#define  MSG_HTTP_408                   MSG_HTTP__BASE+26
#define  MSG_HTTP_409                   MSG_HTTP__BASE+27
#define  MSG_HTTP_410                   MSG_HTTP__BASE+28
#define  MSG_HTTP_411                   MSG_HTTP__BASE+29
#define  MSG_HTTP_412                   MSG_HTTP__BASE+30
#define  MSG_HTTP_413                   MSG_HTTP__BASE+31
#define  MSG_HTTP_414                   MSG_HTTP__BASE+32
#define  MSG_HTTP_415                   MSG_HTTP__BASE+33
#define  MSG_HTTP_416                   MSG_HTTP__BASE+34
#define  MSG_HTTP_417                   MSG_HTTP__BASE+35
#define  MSG_HTTP_500                   MSG_HTTP__BASE+36
#define  MSG_HTTP_501                   MSG_HTTP__BASE+37
#define  MSG_HTTP_502                   MSG_HTTP__BASE+38
#define  MSG_HTTP_503                   MSG_HTTP__BASE+39
#define  MSG_HTTP_504                   MSG_HTTP__BASE+40
#define  MSG_HTTP_505                   MSG_HTTP__BASE+41
#define  MSG_HTTP__MAX                  41

#define  MSG_HTADMIN__BASE              MSG_HTTP__BASE+MSG_HTTP__MAX+1
#define  MSG_HTADMIN_DATABASE           MSG_HTADMIN__BASE+1
#define  MSG_HTADMIN_PWD_INCORRECT      MSG_HTADMIN__BASE+2
#define  MSG_HTADMIN_PWD_INCOMPLETE     MSG_HTADMIN__BASE+3
#define  MSG_HTADMIN_PWD_VERIFY         MSG_HTADMIN__BASE+4
#define  MSG_HTADMIN_PWD_IDENTICAL      MSG_HTADMIN__BASE+5
#define  MSG_HTADMIN_PWD_ERROR          MSG_HTADMIN__BASE+6
#define  MSG_HTADMIN_PWD_NOT_FOUND      MSG_HTADMIN__BASE+7
#define  MSG_HTADMIN_PWD_DATABASE       MSG_HTADMIN__BASE+8
#define  MSG_HTADMIN_PWD_CHANGE         MSG_HTADMIN__BASE+9
#define  MSG_HTADMIN_PWD_BEEN_CHANGED   MSG_HTADMIN__BASE+10
#define  MSG_HTADMIN__MAX               10

#define  MSG_MAPPING__BASE              MSG_HTADMIN__BASE+MSG_HTADMIN__MAX+1
#define  MSG_MAPPING_DENIED_NO_RULES    MSG_MAPPING__BASE+1
#define  MSG_MAPPING_DENIED_INTERNAL    MSG_MAPPING__BASE+2
#define  MSG_MAPPING_DENIED_RULE        MSG_MAPPING__BASE+3
#define  MSG_MAPPING_DENIED_DEFAULT     MSG_MAPPING__BASE+4
#define  MSG_MAPPING__MAX               4

#define  MSG_PROXY__BASE                MSG_MAPPING__BASE+MSG_MAPPING__MAX+1
#define  MSG_PROXY_NONE_CONFIGURED      MSG_PROXY__BASE+1
#define  MSG_PROXY_DISABLED             MSG_PROXY__BASE+2
#define  MSG_PROXY_NOT_SERVICE          MSG_PROXY__BASE+3
#define  MSG_PROXY_NOT_CONNECT          MSG_PROXY__BASE+4
#define  MSG_PROXY_REQUEST_SCHEME       MSG_PROXY__BASE+5
#define  MSG_PROXY_HOST_UNKNOWN         MSG_PROXY__BASE+6
#define  MSG_PROXY_CHAIN_REFUSED        MSG_PROXY__BASE+7
#define  MSG_PROXY_CONNECT_REFUSED      MSG_PROXY__BASE+8
#define  MSG_PROXY_CHAIN_UNREACHABLE    MSG_PROXY__BASE+9
#define  MSG_PROXY_HOST_UNREACHABLE     MSG_PROXY__BASE+10
#define  MSG_PROXY_CHAIN_FAILURE        MSG_PROXY__BASE+11
#define  MSG_PROXY_RESPONSE_ERROR       MSG_PROXY__BASE+12
#define  MSG_PROXY_DISCON               MSG_PROXY__BASE+13
#define  MSG_PROXY_HEADER               MSG_PROXY__BASE+14
#define  MSG_PROXY_GATEWAY              MSG_PROXY__BASE+15
#define  MSG_PROXY_FTP_SERVER           MSG_PROXY__BASE+16
#define  MSG_PROXY_FTP_USERNAME_PWD     MSG_PROXY__BASE+17
#define  MSG_PROXY_FTP_INDEX_OF         MSG_PROXY__BASE+18
#define  MSG_PROXY_FTP_SERVER_REPLIED   MSG_PROXY__BASE+19
#define  MSG_PROXY_FTP_NO_FILENAME      MSG_PROXY__BASE+20
#define  MSG_PROXY_FIREWALL_PROMPT      MSG_PROXY__BASE+21
#define  MSG_PROXY__MAX                 21

#define  MSG_PUT__BASE                  MSG_PROXY__BASE+MSG_PROXY__MAX+1
#define  MSG_PUT_MULTIPART              MSG_PUT__BASE+1
#define  MSG_PUT_MULTIPART_FORMDATA     MSG_PUT__BASE+2
#define  MSG_PUT_MULTIPART_MIXED        MSG_PUT__BASE+3
#define  MSG_PUT_MULTIPART_FILENAME     MSG_PUT__BASE+4
#define  MSG_PUT_MULTIPART_FIELD        MSG_PUT__BASE+5
#define  MSG_PUT_MULTIPART_UPLOAD       MSG_PUT__BASE+6
#define  MSG_PUT_DIR_NAME               MSG_PUT__BASE+7
#define  MSG_PUT_DIR_EXISTS             MSG_PUT__BASE+8
#define  MSG_PUT_DELETE_NO_FILENAME     MSG_PUT__BASE+9
#define  MSG_PUT_CREATED                MSG_PUT__BASE+10
#define  MSG_PUT_SUPERCEDED             MSG_PUT__BASE+11
#define  MSG_PUT_DELETED                MSG_PUT__BASE+12
#define  MSG_PUT__MAX                   12

#define  MSG_REQUEST__BASE              MSG_PUT__BASE+MSG_PUT__MAX+1
#define  MSG_REQUEST_FORMAT             MSG_REQUEST__BASE+1
#define  MSG_REQUEST_METHOD             MSG_REQUEST__BASE+2
#define  MSG_REQUEST_BODY_READ          MSG_REQUEST__BASE+3
#define  MSG_REQUEST_BODY_MAX           MSG_REQUEST__BASE+4
#define  MSG_REQUEST_REDIRECTION        MSG_REQUEST__BASE+5
#define  MSG_REQUEST_URL_ENC            MSG_REQUEST__BASE+6
#define  MSG_REQUEST_URL_FORM           MSG_REQUEST__BASE+7
#define  MSG_REQUEST__MAX               7

#define  MSG_SCRIPT__BASE               MSG_REQUEST__BASE+MSG_REQUEST__MAX+1
#define  MSG_SCRIPT_NOT_FOUND           MSG_SCRIPT__BASE+1
#define  MSG_SCRIPT_HARD_LIMIT          MSG_SCRIPT__BASE+2
#define  MSG_SCRIPT_PRAGMA              MSG_SCRIPT__BASE+3
#define  MSG_SCRIPT_COOKIE              MSG_SCRIPT__BASE+4
#define  MSG_SCRIPT_IPC                 MSG_SCRIPT__BASE+5
#define  MSG_SCRIPT_SPAWN               MSG_SCRIPT__BASE+6
#define  MSG_SCRIPT_DCL_ENVIRONMENT     MSG_SCRIPT__BASE+7
#define  MSG_SCRIPT_CGIPLUS_VARIABLES   MSG_SCRIPT__BASE+8
#define  MSG_SCRIPT_RESPONSE_ERROR      MSG_SCRIPT__BASE+9
#define  MSG_SCRIPT__MAX                9

#define  MSG_SSI__BASE                  MSG_SCRIPT__BASE+MSG_SCRIPT__MAX+1
#define  MSG_SSI_ERROR                  MSG_SSI__BASE+1
#define  MSG_SSI_LINE                   MSG_SSI__BASE+2
#define  MSG_SSI_ACCESS_DISABLED        MSG_SSI__BASE+3
#define  MSG_SSI_STATEMENT              MSG_SSI__BASE+4
#define  MSG_SSI_STATEMENT_UNKNOWN      MSG_SSI__BASE+5
#define  MSG_SSI_TAG_UNKNOWN            MSG_SSI__BASE+6
#define  MSG_SSI_TAG_VALUE              MSG_SSI__BASE+7
#define  MSG_SSI_DCL_DISABLED           MSG_SSI__BASE+8
#define  MSG_SSI_DCL_UNSUPPORTED        MSG_SSI__BASE+9
#define  MSG_SSI_DCL_NOT_SYSTEM         MSG_SSI__BASE+10
#define  MSG_SSI_DCL_NOT_WORLD          MSG_SSI__BASE+11
#define  MSG_SSI_INCLUDE_NOT_TEXT       MSG_SSI__BASE+12
#define  MSG_SSI_INCLUDE_ACCESS         MSG_SSI__BASE+13
#define  MSG_SSI_DATE_TIME              MSG_SSI__BASE+14
#define  MSG_SSI_RECURSION              MSG_SSI__BASE+15
#define  MSG_SSI_VARIABLE               MSG_SSI__BASE+16
#define  MSG_SSI_VARIABLE_NOT_FOUND     MSG_SSI__BASE+17
#define  MSG_SSI_FLOW_CONTROL           MSG_SSI__BASE+18
#define  MSG_SSI__MAX                   18

#define  MSG_STATUS__BASE               MSG_SSI__BASE+MSG_SSI__MAX+1
#define  MSG_STATUS_SUCCESS             MSG_STATUS__BASE+1
#define  MSG_STATUS_ERROR               MSG_STATUS__BASE+2
#define  MSG_STATUS_DOC_NOT_FOUND       MSG_STATUS__BASE+3
#define  MSG_STATUS_FILE_NOT_FOUND      MSG_STATUS__BASE+4
#define  MSG_STATUS_DOC_PROTECTION      MSG_STATUS__BASE+5
#define  MSG_STATUS_FILE_PROTECTION     MSG_STATUS__BASE+6
#define  MSG_STATUS_NO_INFORMATION      MSG_STATUS__BASE+7
#define  MSG_STATUS_ADVISE_NOSUCHFILE   MSG_STATUS__BASE+8
#define  MSG_STATUS_ADVISE_PRV          MSG_STATUS__BASE+9
#define  MSG_STATUS_ADVISE_NOPRIV       MSG_STATUS__BASE+10
#define  MSG_STATUS_ADVISE_SYNTAX       MSG_STATUS__BASE+11
#define  MSG_STATUS_ADVISE_FLK          MSG_STATUS__BASE+12
#define  MSG_STATUS_ADVISE_CORRECT      MSG_STATUS__BASE+13
#define  MSG_STATUS_REPORT_FORMAT       MSG_STATUS__BASE+14
#define  MSG_STATUS_REPORT_FORMAT_SIG   MSG_STATUS__BASE+15
#define  MSG_STATUS_SIGNATURE           MSG_STATUS__BASE+16
#define  MSG_STATUS_INFO                MSG_STATUS__BASE+17
#define  MSG_STATUS__MAX                17

#define  MSG_UPD__BASE                  MSG_STATUS__BASE+MSG_STATUS__MAX+1
#define  MSG_UPD_FILENAME               MSG_UPD__BASE+1
#define  MSG_UPD_DIRECTORY              MSG_UPD__BASE+2
#define  MSG_UPD_QUERY_FIELD            MSG_UPD__BASE+3
#define  MSG_UPD_FILTER                 MSG_UPD__BASE+4
#define  MSG_UPD_SRC_FILENAME           MSG_UPD__BASE+5
#define  MSG_UPD_DST_FILENAME           MSG_UPD__BASE+6
#define  MSG_UPD_CUR_FILENAME           MSG_UPD__BASE+7
#define  MSG_UPD_NEW_FILENAME           MSG_UPD__BASE+8
#define  MSG_UPD_RENAME_SAME            MSG_UPD__BASE+9
#define  MSG_UPD_ACTION                 MSG_UPD__BASE+10
#define  MSG_UPD_NOT_TEXT_FILE          MSG_UPD__BASE+11
#define  MSG_UPD_PARENT_DIRECTORY       MSG_UPD__BASE+12
#define  MSG_UPD_NAVIGATE               MSG_UPD__BASE+13
#define  MSG_UPD_CREATE                 MSG_UPD__BASE+14
#define  MSG_UPD_DELETE                 MSG_UPD__BASE+15
#define  MSG_UPD_RENAME                 MSG_UPD__BASE+16
#define  MSG_UPD_COPY                   MSG_UPD__BASE+17
#define  MSG_UPD_PROTECTION             MSG_UPD__BASE+18
#define  MSG_UPD_EDIT                   MSG_UPD__BASE+19
#define  MSG_UPD_PROTECTION_LIST        MSG_UPD__BASE+20
#define  MSG_UPD_PROTECTION_CHANGED     MSG_UPD__BASE+21
#define  MSG_UPD_RENAMED                MSG_UPD__BASE+22
#define  MSG_UPD__MAX                   22

/*
#define  MSG_?__BASE                    MSG_!__BASE+MSG_!__MAX+1
#define  MSG_?_                         MSG_?__BASE+
#define  MSG_?__MAX                     0
*/

#define NUMBER_OF_GROUPS 13

#define  MSG_TOTAL  MSG_AUTH__MAX + \
                    MSG_DIR__MAX + \
                    MSG_GENERAL__MAX + \
                    MSG_HTADMIN__MAX + \
                    MSG_HTTP__MAX + \
                    MSG_MAPPING__MAX + \
                    MSG_PROXY__MAX + \
                    MSG_PUT__MAX + \
                    MSG_REQUEST__MAX + \
                    MSG_SCRIPT__MAX + \
                    MSG_SSI__MAX + \
                    MSG_STATUS__MAX + \
                    MSG_UPD__MAX

#define MSG_RANGE MSG_TOTAL+NUMBER_OF_GROUPS

#define MAX_LANGUAGES 4

/**************/
/* structures */
/**************/

typedef struct MsgStruct MSG_STRUCT;

struct MsgStruct
{
   int  LanguageNumber;
   char  LanguageList [128],
         LanguageName [16],
         FileName [256];
   char  *CharsetPtr,
         *HostListPtr;
   char  *TextPtr [MSG_RANGE+1];
};

typedef struct MsgMetaStruct MSG_META;

struct MsgMetaStruct
{
   BOOL  CheckedLanguages,
         IncludeFileDetected,
         VersionChecked;
   int  LanguageCount,
        LanguageDefault,
        LanguageNumber,
        LineNumber,
        MessageBase,
        MessageCount,
        MessageMax,
        SearchListCount;
   MSG_STRUCT  *Msgs[MAX_LANGUAGES+1];
};

char* MsgCreate (char*);
char* MsgFor (REQUEST_STRUCT*, int);

/***********************/
/* function prototypes */
/***********************/

int MsgConfigLoad (META_CONFIG**);
BOOL MsgConfigLoadCallback (META_CONFIG*);
MsgConfigUnload (META_CONFIG*);
MsgConfigReport (REQUEST_STRUCT*, BOOL);
MsgConfigReportNow (REQUEST_STRUCT*, META_CONFIG*);
MsgConfigRevise (REQUEST_STRUCT*, BOOL);
MsgConfigReviseNow (REQUEST_STRUCT*, META_CONFIG*);
MsgUnLoad (MSG_META*);

#endif /* MSG_H_LOADED */

/*****************************************************************************/