
/*  File:  arstruct.h  */

#ifndef AR_STRUCT_DEFINED
#define AR_STRUCT_DEFINED

#define AR_CORE_VERSION            2L /* version number of core definition */
#define AR_EXPORT_VERSION          6L /* version number of export definition */

                                      /* default version number of internal server defn */
#define AR_INTERNAL_DEFN_DEFAULT_VERSION  0L 

#define AR_ENTRY_ID_SEPARATOR      '|'/* join schema entry id separator */

#define AR_CORE_ENTRY_ID           1L /* field-ids of the core fields */
#define AR_CORE_SUBMITTER          2L
#define AR_CORE_CREATE_DATE        3L
#define AR_CORE_ASSIGNED_TO        4L
#define AR_CORE_LAST_MODIFIED_BY   5L
#define AR_CORE_MODIFIED_DATE      6L
#define AR_CORE_STATUS             7L
#define AR_CORE_SHORT_DESCRIPTION  8L
#define AR_CORE_STATUS_HISTORY    15L

#define AR_CORE_DESCRIPTION        9L /* field-ids of obsoleted core fields */
#define AR_CORE_DISPOSITION       10L /* Any existing definitions can       */
#define AR_CORE_RELATED_TO        11L /* remain and will be fully supported.*/
#define AR_CORE_NOTIFY_METHOD     12L /* Any change to the fields will      */
#define AR_CORE_SUBMIT_SEVERITY   13L /* retain the restrictions when these */
#define AR_CORE_ASSIGN_PRIORITY   14L /* were core fields.  They can be     */
                                      /* deleted if desired, but not created*/

#define AR_NUM_CORE_FIELDS         9

#define AR_MAX_CORE_FIELD_ID             99L
#define AR_MAX_RESERVED_FIELD_ID  536870911L  /* 0x1fffffff */

#define AR_RESERV_WEIGHT          99  /* Reserved display only field - weight */
#define AR_LIKE_ID                98  /* Reserved for Push/Set Like Field id */
#define AR_SET_DEFAULTS_ID        97  /* Reserved for Set Field Defaults on  */
                                      /*   OpenWindow action.                */

#define AR_RESERV_USER_NAME      101L /* field-ids of the user/group fields */
#define AR_RESERV_PASSWORD       102L
#define AR_RESERV_EMAIL          103L /* these ids are reserved for defining */
#define AR_RESERV_GROUP_LIST     104L /*  users and groups within the AR     */
#define AR_RESERV_GROUP_NAME     105L /*  system                             */
#define AR_RESERV_GROUP_ID       106L
#define AR_RESERV_GROUP_TYPE     107L
#define AR_RESERV_USER_NOTIFY    108L
#define AR_RESERV_LICENSE_TYPE   109L
#define AR_RESERV_LIC_FULL_TEXT  110L
#define AR_RESERV_LIC_RESERVED1  111L
#define AR_RESERV_ASSIGNED_GROUP 112L
#define AR_RESERV_LIC_ASSET      113L
#define AR_RESERV_LIC_CHANGE     114L
#define AR_RESERV_GROUP_FLOATING_LIC      115L
#define AR_RESERV_GROUP_FLOATING_FTS_LIC  116L
#define AR_RESERV_INSTANCE_ID    490000000L
#define AR_RESERV_OBJECT_ID      490000100L



/* Message Catalog reserved fields */

#define ARMC_RESERV_MESSAGE_CAT_STATUS               7L
#define ARMC_RESERV_MESSAGE_CAT_NAME                 8L
#define ARMC_RESERV_MESSAGE_CAT_MSG_TYPE             150L
#define ARMC_RESERV_MESSAGE_CAT_FLD_ID_OR_MSG_NUM    151L
#define ARMC_RESERV_MESSAGE_CAT_LOCALE               152L

#define ARMC_RESERV_MESSAGE_CAT_RETURN_TYPE          155L
#define ARMC_RESERV_MESSAGE_CAT_MSG_TEXT             156L
#define ARMC_RESERV_MESSAGE_CAT_BIN_ATTACH_POOL      157L
#define ARMC_RESERV_MESSAGE_CAT_BIN_ATTACH_FLD       158L
#define ARMC_RESERV_MESSAGE_CAT_APPL_TAG             159L

#define AR_RESERV_LOCALE_LOCALIZED_SCHEMA            160L
#define AR_RESERV_LOCALE_MSG_TYPE_MENU               161L
#define AR_RESERV_LOCALE_BIN_ATTACH_LABEL            162L
#define AR_RESERV_LOCALE_LOC_SEARCH_CRIT_LABEL       163L
#define AR_RESERV_LOCALE_RETURNED_VALUE_LABEL        164L

				      /* reserved for SetField action */
#define AR_RESERV_SETFIELD_SCHEMA_NAME    170L 



                                      /* reserved for Distributed Server */
/* Generic Fields */
#define AR_RESERV_CHANGE_DIARY            180L
#define AR_RESERV_HELP                    181L
#define AR_RESERV_OPROP                   182L

/* Mapping Schema */
#define ARDS_RESERV_DISTRIB_MAPPING_NAME  AR_CORE_SHORT_DESCRIPTION
#define ARDS_RESERV_DISTRIB_FROM_SCHEMA   200L
#define ARDS_RESERV_DISTRIB_FROM_SERVER   201L
#define ARDS_RESERV_DISTRIB_TO_SCHEMA     202L
#define ARDS_RESERV_DISTRIB_TO_SERVER     203L
#define ARDS_RESERV_DISTRIB_UPDATE_CODE   204L
#define ARDS_RESERV_DISTRIB_TRANS_MODE    205L
#define ARDS_RESERV_DISTRIB_MAP_TYPE      206L
#define ARDS_RESERV_DISTRIB_MAPPING       207L
#define ARDS_RESERV_DISTRIB_RTN_MAP_TYPE  208L
#define ARDS_RESERV_DISTRIB_RTN_MAPPING   209L
#define ARDS_RESERV_DISTRIB_DEFAULT_MAP   210L
#define ARDS_RESERV_DISTRIB_DUP_ACTION    211L
#define ARDS_RESERV_DISTRIB_RETRY_TIME    212L
#define ARDS_RESERV_DISTRIB_PATTERN_MATCH 213L
#define ARDS_RESERV_DISTRIB_REQUIRED_FIELDS 214L
#define ARDS_RESERV_DISTRIB_MATCH_QUAL    215L

/* Pending Schema */
#define ARDS_RESERV_DISTRIB_PENDING_NAME  AR_CORE_SHORT_DESCRIPTION
#define ARDS_RESERV_DISTRIB_SOURCE_ID     250L
#define ARDS_RESERV_DISTRIB_PENDING_TYPE  251L
#define ARDS_RESERV_DISTRIB_PENDING_OTHER 252L
#define ARDS_RESERV_DISTRIB_POOL          253L

/* Pool Schema */
#define ARDS_RESERV_DISTRIB_POOL_NAME     AR_CORE_SHORT_DESCRIPTION
#define ARDS_RESERV_DISTRIB_EXEORDER      230L
#define ARDS_RESERV_DISTRIB_TCOUNT        275L
#define ARDS_RESERV_DISTRIB_CONNECT       276L
#define ARDS_RESERV_DISTRIB_DEFAULT       277L
#define ARDS_RESERV_DISTRIB_OPROP         278L

/* User Schema Extensions */
#define ARDS_RESERV_DISTRIB_TO_MAPPING    300L
#define ARDS_RESERV_DISTRIB_TRANS_STATE   301L
#define ARDS_RESERV_DISTRIB_UPDATE_STATE  302L
#define ARDS_RESERV_DISTRIB_MASTER_FLAG   303L
#define ARDS_RESERV_DISTRIB_CUR_SCHEMA    304L
#define ARDS_RESERV_DISTRIB_CUR_SERVER    305L
#define ARDS_RESERV_DISTRIB_FROM_MAPPING  306L
#define ARDS_RESERV_DISTRIB_FROM_ENTRYID  307L
#define ARDS_RESERV_DISTRIB_TO_ENTRYID    308L
#define ARDS_RESERV_DISTRIB_MAP_HISTORY   309L
#define ARDS_RESERV_DISTRIB_FROM_SCHEMA_2 310L
#define ARDS_RESERV_DISTRIB_FROM_SERVER_2 311L
#define ARDS_RESERV_DISTRIB_TO_SCHEMA_2   312L
#define ARDS_RESERV_DISTRIB_TO_SERVER_2   313L
#define ARDS_RESERV_DISTRIB_UPDATE_CODE_2 314L
#define ARDS_RESERV_DISTRIB_TRANS_MODE_2  315L
#define ARDS_RESERV_DISTRIB_DUP_ACTION_2  316L
#define ARDS_RESERV_DISTRIB_RETRY_TIME_2  317L
#define ARDS_RESERV_DISTRIB_FROM_POOL     318L
#define ARDS_RESERV_DISTRIB_PATTERN_MATCH_2   319L
#define ARDS_RESERV_DISTRIB_REQUIRED_FIELDS_2 320L
#define ARDS_RESERV_DISTRIB_MATCH_QUAL_2  321L

/* Reserved fields for Remedy client menu items */
#define AR_RESERVE_MENU_MODIFYALL         401L
#define AR_RESERVE_MENU_DELETE            402L
#define AR_RESERVE_MENU_PREFERENCES       403L
#define AR_RESERVE_MENU_MENU              404L
#define AR_RESERVE_MENU_TOOLBAR           405L
#define AR_RESERVE_MENU_APPLY             406L
#define AR_RESERVE_MENU_POLLING           407L
#define AR_RESERVE_MENU_REPORTING         408L
#define AR_RESERVE_MENU_PRINT             409L

/* Reserved fields for Application support */
#define ARAPP_RESERV_APPLIC_CATEGORY      AR_CORE_SHORT_DESCRIPTION
#define ARAPP_RESERV_APPLIC_COMMAND       501L
#define ARAPP_RESERV_APPLIC_SCHEMA        502L
#define ARAPP_RESERV_APPLIC_ENTRY_ID      503L
#define ARAPP_RESERV_APPLIC_TAG           504L
#define ARAPP_RESERV_APPLIC_FIELD_1       505L
#define ARAPP_RESERV_APPLIC_FIELD_2       506L
#define ARAPP_RESERV_APPLIC_FIELD_3       507L
#define ARAPP_RESERV_APPLIC_OTHER_SHORT   508L
#define ARAPP_RESERV_APPLIC_OTHER_LONG    509L
                                      /* reserved for Business Time support */
                                      /* Holiday */
#define AR_RESERV_HOLIDAY_LIST            600L
                                      /* Workday */
#define AR_RESERV_WORKDAY_OPEN_SUN        620L
#define AR_RESERV_WORKDAY_OPEN_MON        621L
#define AR_RESERV_WORKDAY_OPEN_TUES       622L
#define AR_RESERV_WORKDAY_OPEN_WED        623L
#define AR_RESERV_WORKDAY_OPEN_THURS      624L
#define AR_RESERV_WORKDAY_OPEN_FRI        625L
#define AR_RESERV_WORKDAY_OPEN_SAT        626L
#define AR_RESERV_WORKDAY_CLOSE_SUN       630L
#define AR_RESERV_WORKDAY_CLOSE_MON       631L
#define AR_RESERV_WORKDAY_CLOSE_TUES      632L
#define AR_RESERV_WORKDAY_CLOSE_WED       633L
#define AR_RESERV_WORKDAY_CLOSE_THURS     634L
#define AR_RESERV_WORKDAY_CLOSE_FRI       635L
#define AR_RESERV_WORKDAY_CLOSE_SAT       636L

/* Reserved fields for Alert support */
#define AR_RESERV_ALERT_FORM              701L
#define AR_RESERV_ALERT_REQUEST           702L
#define AR_RESERV_ALERT_SERVER            703L
#define AR_RESERV_ALERT_MESSAGE           704L
#define AR_RESERV_ALERT_PRIORITY          705L
#define AR_RESERV_ALERT_LIST_QLV          706L

#define AR_RESERV_ALERT_COLUMN_READ       711L
#define AR_RESERV_ALERT_COLUMN_PRIORITY   712L
#define AR_RESERV_ALERT_COLUMN_SOURCE     713L
#define AR_RESERV_ALERT_COLUMN_CREATEDATE 714L
#define AR_RESERV_ALERT_COLUMN_MESSAGE    715L
#define AR_RESERV_ALERT_COLUMN_REQUEST    716L
#define AR_RESERV_ALERT_COLUMN_FORM       717L
#define AR_RESERV_ALERT_COLUMN_SERVER     718L

/* Reserved fields for the Server Event Schema */
#define AR_RESERV_SVR_EVENT_TYPE          800L
#define AR_RESERV_SVR_EVENT_CAUSE         801L
#define AR_RESERV_SVR_EVENT_DETAILS_1     802L
#define AR_RESERV_SVR_EVENT_DETAILS_2     803L
#define AR_RESERV_SVR_EVENT_DETAILS_3     804L

/* Reserved fields for form actions and results */
#define AR_RESERV_FORM_ACTION_SUBMIT         1001L
#define AR_RESERV_FORM_ACTION_QUERY          1002L
#define AR_RESERV_FORM_ACTION_MODIFY         1003L
#define AR_RESERV_FORM_ACTION_QUERYBAR       1005L
#define AR_RESERV_FORM_ACTION_CLEAR          1006L
#define AR_RESERV_FORM_ACTION_SETDEFAULT     1007L
#define AR_RESERV_FORM_ACTION_HELP           1008L
#define AR_RESERV_FORM_ACTION_NEWSEARCH      1009L
#define AR_RESERV_FORM_ACTION_NEWREQUEST     1010L
#define AR_RESERV_FORM_ACTION_SHOW_STATHST   1011L

#define AR_RESERV_FORM_RESULTS_LIST          1020L

/* Reserved fields for the Server Statistics Schema */
#define AR_RESERV_SVR_STATS_QUEUE                 900L
#define AR_RESERV_SVR_STATS_BAD_PASSWORD          902
#define AR_RESERV_SVR_STATS_NO_WRITE_TOKEN        903
#define AR_RESERV_SVR_STATS_NO_FULL_TOKEN         904
#define AR_RESERV_SVR_STATS_CURRENT_USERS         905
#define AR_RESERV_SVR_STATS_WRITE_FIXED           906
#define AR_RESERV_SVR_STATS_WRITE_FLOATING        907
#define AR_RESERV_SVR_STATS_WRITE_READ            908
#define AR_RESERV_SVR_STATS_FULL_FIXED            909
#define AR_RESERV_SVR_STATS_FULL_FLOATING         910
#define AR_RESERV_SVR_STATS_FULL_NONE             911
#define AR_RESERV_SVR_STATS_API_REQUESTS          912
#define AR_RESERV_SVR_STATS_API_TIME              913
#define AR_RESERV_SVR_STATS_ENTRY_TIME            914
#define AR_RESERV_SVR_STATS_RESTRUCT_TIME         915
#define AR_RESERV_SVR_STATS_OTHER_TIME            916
#define AR_RESERV_SVR_STATS_CACHE_TIME            917
#define AR_RESERV_SVR_STATS_GET_E_COUNT           918
#define AR_RESERV_SVR_STATS_GET_E_TIME            919
#define AR_RESERV_SVR_STATS_SET_E_COUNT           920
#define AR_RESERV_SVR_STATS_SET_E_TIME            921
#define AR_RESERV_SVR_STATS_CREATE_E_COUNT        922
#define AR_RESERV_SVR_STATS_CREATE_E_TIME         923
#define AR_RESERV_SVR_STATS_DELETE_E_COUNT        924
#define AR_RESERV_SVR_STATS_DELETE_E_TIME         925
#define AR_RESERV_SVR_STATS_MERGE_E_COUNT         926
#define AR_RESERV_SVR_STATS_MERGE_E_TIME          927
#define AR_RESERV_SVR_STATS_GETLIST_E_COUNT       928
#define AR_RESERV_SVR_STATS_GETLIST_E_TIME        929
#define AR_RESERV_SVR_STATS_E_STATS_COUNT         930
#define AR_RESERV_SVR_STATS_E_STATS_TIME          931
#define AR_RESERV_SVR_STATS_FILTER_PASSED         932
#define AR_RESERV_SVR_STATS_FILTER_FAILED         933
#define AR_RESERV_SVR_STATS_FILTER_DISABLE        934
#define AR_RESERV_SVR_STATS_FILTER_NOTIFY         935
#define AR_RESERV_SVR_STATS_FILTER_MESSAGE        936
#define AR_RESERV_SVR_STATS_FILTER_LOG            937
#define AR_RESERV_SVR_STATS_FILTER_FIELDS         938
#define AR_RESERV_SVR_STATS_FILTER_PROCESS        939
#define AR_RESERV_SVR_STATS_FILTER_TIME           940
#define AR_RESERV_SVR_STATS_ESCL_PASSED           941
#define AR_RESERV_SVR_STATS_ESCL_FAILED           942
#define AR_RESERV_SVR_STATS_ESCL_DISABLE          943
#define AR_RESERV_SVR_STATS_ESCL_NOTIFY           944
#define AR_RESERV_SVR_STATS_ESCL_LOG              945
#define AR_RESERV_SVR_STATS_ESCL_FIELDS           946
#define AR_RESERV_SVR_STATS_ESCL_PROCESS          947
#define AR_RESERV_SVR_STATS_ESCL_TIME             948
#define AR_RESERV_SVR_STATS_TIMES_BLOCKED         949
#define AR_RESERV_SVR_STATS_NUMBER_BLOCKED        950
#define AR_RESERV_SVR_STATS_CPU                   951
#define AR_RESERV_SVR_STATS_SQL_DB_COUNT          952
#define AR_RESERV_SVR_STATS_SQL_DB_TIME           953
#define AR_RESERV_SVR_STATS_FTS_SRCH_COUNT        954
#define AR_RESERV_SVR_STATS_FTS_SRCH_TIME         955
#define AR_RESERV_SVR_STATS_IDLE_TIME             957
#define AR_RESERV_SVR_STATS_NET_RESP_TIME         958
#define AR_RESERV_SVR_STATS_FILTER_FIELDP         959
#define AR_RESERV_SVR_STATS_ESCL_FIELDP           960
#define AR_RESERV_SVR_STATS_FILTER_SQL            961
#define AR_RESERV_SVR_STATS_ESCL_SQL              962
#define AR_RESERV_SVR_STATS_NUM_THREADS           963
#define AR_RESERV_SVR_STATS_FILTER_GOTO_ACTION    964
#define AR_RESERV_SVR_STATS_FILTER_CALL_GUIDE     965
#define AR_RESERV_SVR_STATS_FILTER_EXIT_GUIDE     966
#define AR_RESERV_SVR_STATS_FILTER_GOTO_GUIDE_LB  967
#define AR_RESERV_SVR_STATS_FILTER_FIELDS_SQL     968
#define AR_RESERV_SVR_STATS_FILTER_FIELDS_PROCESS 969
#define AR_RESERV_SVR_STATS_FILTER_FIELDS_FLTAPI  970
#define AR_RESERV_SVR_STATS_ESCL_FIELDS_SQL       971
#define AR_RESERV_SVR_STATS_ESCL_FIELDS_PROCESS   972
#define AR_RESERV_SVR_STATS_ESCL_FIELDS_FLTAPI    973


                 /* 100 reserved field ids to identify report schema */
#define AR_RESERV_REPORT_MIN                    17000L
#define AR_RESERV_REPORT_MAX                    17099L

#define AR_RESERV_REPORT_SCHEMA                 17000L 
#define AR_RESERV_REPORT_TYPE_SCHEMA            17001L
#define AR_RESERV_REPORT_SELECTION_SCHEMA       17002L

                 /* reserved field ids unique within a schema */
                 /* but not across schemas */
#define AR_RESERV_SCHEMA_SPECIFIC_FIELD_MIN     20000L    
#define AR_RESERV_SCHEMA_SPECIFIC_FIELD_MAX     29999L 
   
                 /* reserved field ids to identify preference schemas */
#define AR_RESERV_PREFERENCE_RMDY_SCHEMA_MIN    30000L    /* 10,000 for remedy client  */
#define AR_RESERV_PREFERENCE_RMDY_SCHEMA_MAX    39999L    /* preference schema  */

#define AR_RESERV_PREFERENCE_RMDY_SCHEMA_COMMON 30000L
#define AR_RESERV_PREFERENCE_RMDY_SCHEMA_ADMIN  30001L
#define AR_RESERV_PREFERENCE_RMDY_SCHEMA_USER   30002L
#define AR_RESERV_PREFERENCE_RMDY_SCHEMA_WEBTIER   30003L
#define AR_RESERV_PREFERENCE_RMDY_SCHEMA_ALERT     30004L
#define AR_RESERV_PREFERENCE_RMDY_SCHEMA_MIGRATOR  30005L
#define AR_RESERV_PREFERENCE_RMDY_SCHEMA_FILES     30006L   /* Reserved field IDs to identify */
                                                            /* pref schema holding pref files */
                                                            /* (i.e. report, macro and etc.)  */

                 /* reserved field ids unique within a schema */
                 /* but not across schemas for wireless */
#define AR_RESERV_SCHEMA_SPECIFIC_WIRELESS_FIELD_MIN   50000L
#define AR_RESERV_SCHEMA_SPECIFIC_WIRELESS_FIELD_MAX   50999L

                 /* Range of reserved field Ids for */
                 /* global fields.                  */
#define AR_RESERV_GLOBAL_FIELDS_MIN   1000000
#define AR_RESERV_GLOBAL_FIELDS_MAX   2000000

#define AR_GROUP_ID_PUBLIC            0L /* group-ids of the 'key' groups */
#define AR_GROUP_ID_ADMINISTRATOR     1L
#define AR_GROUP_ID_CUSTOMIZE         2L
#define AR_GROUP_ID_SUBMITTER         3L
#define AR_GROUP_ID_ASSIGNEE          4L
#define AR_GROUP_ID_SUB_ADMINISTRATOR 5L
#define AR_GROUP_ID_FLASH_ADMIN       6L
#define AR_GROUP_ID_ASSIGNEE_GROUP    7L

/* Constants used for items in values returned from the server */

#define AR_DEFN_DIARY_SEP        '\03'     /* diary items separator */
#define AR_DEFN_DIARY_COMMA      '\04'     /* char between date/user/text */
                                           /*  within a diary item        */
#define AR_DEFN_STAT_HIST_SEP    '\03'     /* status history items separator */
#define AR_DEFN_STAT_HIST_COMMA  '\04'     /* char between user and time in a */
                                           /*  status history item            */

#define AR_DEFN_LABEL_SIZE     20 /* length of the label portion of lines   */
                                  /*   in the export definition format file */
#define AR_MAX_DEFN_LINE_SIZE 325 /* maximum length of a line in a defn file */
                                  /*   (excl "\n\0" at end of each line)     */

#define AR_NOTIFICATION_VUI      "ARNotification"
                                  /* VUI name used to identify the view to */
                                  /*  use for order of fields in an email  */
                                  /*  or other style notification          */

/* Constants holding label definitions for the fields in a definition file */

#define AR_DEFN_FILE_ALL_FIELDS    '*'     /* character to indicate ALL fields*/
#define AR_DEFN_FILE_CHNG_FIELDS   '@'     /* character to indicate CHNG field*/
#define AR_DEFN_FILE_COMMENT       '#'     /* character introducing a comment */
#define AR_DEFN_FILE_SEPARATOR     '\\'    /* character used to separate two */
                                           /*  or more values on one line    */
#define AR_DEFN_GROUP_ID_SEPARATOR ';'     /* character used to separate two */
                                           /*  or more group ids in a list   */
#define AR_DEFN_KEYWORD_PARM_TAG   '$'     /* character surrounding keywords */
                                           /*  and parameters in values      */
#define AR_DEFN_ATTACH_SEPARATOR   ';'     /* character used to separate     */
                                           /*  attributes of a stringified   */
                                           /*  attachment value              */

   /* There are some characters that can occur in labels and/or character */
   /* strings that conflict with the formatting characters that allow the */
   /* definition and processing of records.  When these characters are    */
   /* encountered, they are translated into a control character when the  */
   /* data is stored in the DB and then back into the "real" character on */
   /* retrieval.  The "EMBEDDED" definitions define these mappings.       */
#define AR_DEFN_EMBEDDED_RETURN  '\01'     /* character substituting for '\n' */
                                           /*  (record separator) in the DB   */
#define AR_DEFN_EMBEDDED_SEP     '\02'     /* character substituting for an */
                                           /*  embedded separator in the DB */
#define AR_DEFN_ALT_EMBEDDED_SEP '\04'     /* character subs for embedded     */
                                           /*  char if has meaning other than */
                                           /*  a mapping for something        */
#define AR_DEFN_CONT_CHAR          '&'     /* line continuation character */

#define AR_DEFN_STRUCT_ACTIVE_LINK      "begin active link\n"
#define AR_DEFN_STRUCT_ADMIN_EXT        "begin admin ext\n"
#define AR_DEFN_STRUCT_CHAR_MENU        "begin char menu\n"
#define AR_DEFN_STRUCT_CONTAINER        "begin container\n"
#define AR_DEFN_STRUCT_DIST_MAPPING     "begin distributed mapping\n"
#define AR_DEFN_STRUCT_FILTER           "begin filter\n"
#define AR_DEFN_STRUCT_ESCALATION       "begin escalation\n"
#define AR_DEFN_STRUCT_GROUP            "begin group\n"
#define AR_DEFN_STRUCT_SCHEMA           "begin schema\n"
#define AR_DEFN_STRUCT_DIST_POOL        "begin distributed pool\n"
#define AR_DEFN_STRUCT_VUI              "begin vui\n"

#define AR_DEFN_END_STRUCT              "end\n"

#define AR_DEFN_CLAUSE_FIELD            "field {\n"
#define AR_DEFN_CLAUSE_REFERENCE        "reference {\n"
#define AR_DEFN_CLAUSE_VUI              "vui  {\n"
#define AR_DEFN_END_CLAUSE              "}\n"
#define AR_DEFN_CLAUSE_ACTION           "   action {\n"
#define AR_DEFN_END_ACTION              "   }\n"
#define AR_DEFN_CLAUSE_ELSE             "   else {\n"
#define AR_DEFN_END_ELSE                "   }\n"
#define AR_DEFN_CLAUSE_FILE             "   support file {\n"
#define AR_DEFN_END_FILE                "   }\n"

/* above definitions without newline */
#define AR_DEFN_STRUCT_ACTIVE_LINK_NO_NL  "begin active link"
#define AR_DEFN_STRUCT_ADMIN_EXT_NO_NL    "begin admin ext"
#define AR_DEFN_STRUCT_CHAR_MENU_NO_NL    "begin char menu"
#define AR_DEFN_STRUCT_CONTAINER_NO_NL    "begin container"
#define AR_DEFN_STRUCT_DIST_MAPPING_NO_NL "begin distributed mapping"
#define AR_DEFN_STRUCT_FILTER_NO_NL       "begin filter"
#define AR_DEFN_STRUCT_ESCALATION_NO_NL   "begin escalation"
#define AR_DEFN_STRUCT_GROUP_NO_NL        "begin group"
#define AR_DEFN_STRUCT_SCHEMA_NO_NL       "begin schema"
#define AR_DEFN_STRUCT_DIST_POOL_NO_NL    "begin distributed pool"
#define AR_DEFN_STRUCT_VUI_NO_NL          "begin vui"

#define AR_DEFN_END_STRUCT_NO_NL          "end"

#define AR_DEFN_CLAUSE_FIELD_NO_NL      "field {"
#define AR_DEFN_CLAUSE_REFERENCE_NO_NL  "reference {"
#define AR_DEFN_CLAUSE_VUI_NO_NL        "vui  {"
#define AR_DEFN_CLAUSE_VUI_NO_NL_ALT    "vui {"
#define AR_DEFN_END_CLAUSE_NO_NL        "}"
#define AR_DEFN_CLAUSE_ACTION_NO_NL     "   action {"
#define AR_DEFN_END_ACTION_NO_NL        "   }"
#define AR_DEFN_CLAUSE_ELSE_NO_NL       "   else {"
#define AR_DEFN_END_ELSE_NO_NL          "   }"
#define AR_DEFN_CLAUSE_FILE_NO_NL       "   support file {"
#define AR_DEFN_END_FILE_NO_NL          "   }"

#define AR_DEFN_LABEL_ACCESS_OPTION     "      access-opt  : "
#define AR_DEFN_LABEL_ACTLINK_FIELD     "   actlink-field  : "
#define AR_DEFN_LABEL_ACTLINK_FOCUS     "   actlink-focus  : "
#define AR_DEFN_LABEL_ACTLINK_CONTROL   "   actlink-control: "
#define AR_DEFN_LABEL_ACTLINK_MASK      "   actlink-mask   : "
#define AR_DEFN_LABEL_ACTLINK_QRY       "   actlink-query  : "
#define AR_DEFN_LABEL_ACTLINK_ORD       "   actlink-order  : "
#define AR_DEFN_LABEL_AD_COMMAND        "   command        : "
#define AR_DEFN_LABEL_CALLGUIDE         " call guide :"
#define AR_DEFN_LABEL_CHANGE_DIARY      "   change-diary   : "
#define AR_DEFN_LABEL_CHAR_MENU         "   char-menu      : "
#define AR_DEFN_LABEL_ENCR_CHAR_MENU    " encrypt-char-menu: "
#define AR_DEFN_LABEL_CHAR_MENU_2       "      char-menu   : "
#define AR_DEFN_LABEL_CLOSE_WND         "      close-wnd   : "
#define AR_DEFN_LABEL_CLOSE_WND_ALL     "      close-all   : "
#define AR_DEFN_LABEL_COMMAND           "      command     : "
#define AR_DEFN_LABEL_ENCR_COMMAND      "    encrypt-cmd   : "
#define AR_DEFN_LABEL_COMMIT_CHANGES    "    commit_changes: "
#define AR_DEFN_LABEL_CONTENT           "      content     : "
#define AR_DEFN_LABEL_CONTAINER_SUBADM  "   container-admin: "
#define AR_DEFN_LABEL_CORE_VERS         "   core-version   : "
#define AR_DEFN_LABEL_UPGRD_VERS        "   upgrade-version: "
#define AR_DEFN_LABEL_CREATE_MODE       "   create-mode    : "
#define AR_DEFN_LABEL_DATA_TYPE         "   datatype       : "
#define AR_DEFN_LABEL_DDE_ACTION        "      dde-action  : "
#define AR_DEFN_LABEL_DDE_COMMAND       "      dde-command : "
#define AR_DEFN_LABEL_DDE_FILE          "      dde-file    : "
#define AR_DEFN_LABEL_DDE_ITEM          "      dde-item    : "
#define AR_DEFN_LABEL_DDE_SERVICE       "      dde-service : "
#define AR_DEFN_LABEL_DDE_TOPIC         "      dde-topic   : "
#define AR_DEFN_LABEL_AUTO_SERVER       "      auto-server : "
#define AR_DEFN_LABEL_AUTO_CLSID        "      auto-clsId  : "
#define AR_DEFN_LABEL_AUTO_ACTION       "      auto-action : "
#define AR_DEFN_LABEL_AUTO_VISIBLE      "      auto-visible: "
#define AR_DEFN_LABEL_AUTO_COM          "      auto-COM    : "
#define AR_DEFN_LABEL_DIRECT_SQL        "      direct-sql  : "
#define AR_DEFN_LABEL_ENCR_AL_SQL       "      encrypt-sql : "
#define AR_DEFN_LABEL_DEFAULT           "   default        : "
#define AR_DEFN_LABEL_DEFAULT_VUI       "   default-vui    : "
#define AR_DEFN_LABEL_DESCRIPTION       "   description    : "
#define AR_DEFN_LABEL_DISPLAY           "   display        : "
#define AR_DEFN_LABEL_DISPLAY_2         "      display     : "
#define AR_DEFN_LABEL_DISPLAY_PROPLIST  "   display-prop   : "
#define AR_DEFN_LABEL_DISPLAY_INSTANCE  " display-instance : "
#define AR_DEFN_LABEL_DUP_ACTION        "   dup-action     : "
#define AR_DEFN_LABEL_PATTERN_MATCH     "   pat-match      : "
#define AR_DEFN_LABEL_REQUIRED_FIELDS   "   req-fields     : "
#define AR_DEFN_LABEL_ENABLE            "   enable         : "
#define AR_DEFN_LABEL_ENUM_VALUE        "   enum-value     : "
#define AR_DEFN_LABEL_ENUM_VALUE_NUM    "   enum-value-num : "
#define AR_DEFN_LABEL_ENUM_QRY_SCHEMA   "   enum-qry-schema: "
#define AR_DEFN_LABEL_ENUM_QRY_SERVER   "   enum-qry-server: "
#define AR_DEFN_LABEL_ENUM_QRY_QUERY    "   enum-qry-query : "
#define AR_DEFN_LABEL_ENUM_QRY_NAME     "   enum-qry-name  : "
#define AR_DEFN_LABEL_ENUM_QRY_NUM      "   enum-qry-num   : "
#define AR_DEFN_LABEL_TBLFLD_SCHEMA     "tablefield-schema : "
#define AR_DEFN_LABEL_TBLFLD_SERVER     "tablefield-server : "
#define AR_DEFN_LABEL_TBLFLD_QUERY      "tablefield-query  : "
#define AR_DEFN_LABEL_TBLFLD_NUMCOLS    "tablefield-numcols: "
#define AR_DEFN_LABEL_TBLFLD_MAXRET     "tablefield-maxret : "
#define AR_DEFN_LABEL_COLFLD_PARENT     "colfield-parent   : "
#define AR_DEFN_LABEL_COLFLD_DATAFIELD  "colfield-datafield: "
#define AR_DEFN_LABEL_COLFLD_DATATYPE   "colfield-datatype : "
#define AR_DEFN_LABEL_COLFLD_DATASOURCE "colfield-datasrc  : "
#define AR_DEFN_LABEL_COLFLD_COLLENGTH  "colfield-collength: "
#define AR_DEFN_LABEL_ESCALATION_HOUR   "   escl-hourmask  : "
#define AR_DEFN_LABEL_ESCALATION_INT    "   escl-interval  : "
#define AR_DEFN_LABEL_ESCALATION_MIN    "   escl-minute    : "
#define AR_DEFN_LABEL_ESCALATION_MON    "   escl-monthday  : "
#define AR_DEFN_LABEL_ESCALATION_QRY    "   escl-query     : "
#define AR_DEFN_LABEL_ESCALATION_TMTYPE "   escl-tmType    : "
#define AR_DEFN_LABEL_ESCALATION_WEEK   "   escl-weekday   : "
#define AR_DEFN_LABEL_EXPORT_VERS       "   export-version : "

#define AR_DEFN_LABEL_EXT_NAME          "   ext-name       : "
#define AR_DEFN_LABEL_EXT_FIELD         "   ext-field      : "
#define AR_DEFN_LABEL_EXT_TABLE         "   ext-table      : "
#define AR_DEFN_LABEL_FIELD_TYPE        "   fieldtype      : "
#define AR_DEFN_LABEL_FILE_TYPE         "      file-type   : "
#define AR_DEFN_LABEL_FILTER_OP         "   filter-op      : "
#define AR_DEFN_LABEL_FILTER_ORD        "   filter-order   : "
#define AR_DEFN_LABEL_FILTER_QRY        "   filter-query   : "
#define AR_DEFN_LABEL_FOCUS             "      focus       : "
#define AR_DEFN_LABEL_FROM_SCHEMA       "   from-schema    : "
#define AR_DEFN_LABEL_FROM_SERVER       "   from-server    : "
#define AR_DEFN_LABEL_FULLTEXTOPTNS     "   fulltext-optns : "
#define AR_DEFN_LABEL_GET_LIST_FLDS     "   get-list-flds  : "
#define AR_DEFN_LABEL_HELP              "   help-text      : "
#define AR_DEFN_LABEL_ID                "   id             : "
#define AR_DEFN_LABEL_ID_2              "      id          : "
#define AR_DEFN_LABEL_INDEX             "   index          : "
#define AR_DEFN_LABEL_JOIN_OPTION       "      join-option : "
#define AR_DEFN_LABEL_JOIN_PRIMARY      "      primary     : "
#define AR_DEFN_LABEL_JOIN_QRY          "      join-query  : "
#define AR_DEFN_LABEL_JOIN_SECONDARY    "      secondary   : "
#define AR_DEFN_LABEL_LABEL             "   label          : "
#define AR_DEFN_LABEL_LAST_CHANGED      "   last-changed   : "
#define AR_DEFN_LABEL_LOG_FILE          "      log-file    : "
#define AR_DEFN_LABEL_MACRO_NAME        "      macro-name  : "
#define AR_DEFN_LABEL_MACRO_PARMS       "      macro-parms : "
#define AR_DEFN_LABEL_MACRO_TEXT        "      macro-text  : "
#define AR_DEFN_LABEL_MAP_FIELDID       "      mapfield    : "
#define AR_DEFN_LABEL_MAP_SCHEMA        "      mapschema   : "
#define AR_DEFN_LABEL_MAP_TYPE          "   map-type       : "
#define AR_DEFN_LABEL_MAPPING           "   mapping        : "
#define AR_DEFN_LABEL_MATCH_QUAL        "   match-qual     : "
#define AR_DEFN_LABEL_MAX_LENGTH        "   maxlength      : "
#define AR_DEFN_LABEL_MAXSIZE           "   maxsize        : "
#define AR_DEFN_LABEL_ATTACH_TYPE       "   attachtype     : "
#define AR_DEFN_LABEL_MENU_STYLE        "   menu-style     : "
#define AR_DEFN_LABEL_MSG_NUM           "      message-num : "
#define AR_DEFN_LABEL_MSG_TEXT          "      message-text: "
#define AR_DEFN_LABEL_MSG_TYPE          "      message-type: "
#define AR_DEFN_LABEL_MSG_PANE          "      message-pane: "
#define AR_DEFN_LABEL_NAME              "   name           : "
#define AR_DEFN_LABEL_NOT_FIELDS        "      notify-field: "
#define AR_DEFN_LABEL_NOT_MECH          "      notify-mech : "
#define AR_DEFN_LABEL_NOT_PRIORITY      "      notify-pri  : "
#define AR_DEFN_LABEL_NOT_SUBJECT       "      notify-subj : "
#define AR_DEFN_LABEL_NOT_TEXT          "      notify-text : "
#define AR_DEFN_LABEL_NOT_USER          "      notify-user : "
#define AR_DEFN_LABEL_NOT_XREF          "      notify-xref : "
#define AR_DEFN_LABEL_NUM_FIELDS        "   num-fields     : "
#define AR_DEFN_LABEL_NUM_REFERENCES    "   num-references : "
#define AR_DEFN_LABEL_NUM_VUIS          "   num-vuis       : "
#define AR_DEFN_LABEL_OBJECT            "   object         : "
#define AR_DEFN_LABEL_OBJECT_PROP       "   object-prop    : "
#define AR_DEFN_LABEL_OBJECT_PROP_INTERVAL "   interval       : "

#define AR_DEFN_LABEL_OPEN_DLG          "   open-dialog    : "
#define AR_DEFN_LABEL_OPEN_DLG_SERVER   "      open-server : "
#define AR_DEFN_LABEL_OPEN_DLG_SCHEMA   "      open-schema : "
#define AR_DEFN_LABEL_OPEN_DLG_VUI      "      open-vui    : "
#define AR_DEFN_LABEL_OPEN_DLG_BOX      "      open-close  : "
#define AR_DEFN_LABEL_OPEN_DLG_INPUT    "      open-input  : "
#define AR_DEFN_LABEL_OPEN_DLG_OUTPUT   "      open-output : "
#define AR_DEFN_LABEL_OPEN_DLG_WINMODE  "      open-winmod : "
#define AR_DEFN_LABEL_OPEN_DLG_TARGET   "      open-target : "
#define AR_DEFN_LABEL_OPEN_DLG_QUERY    "      open-query  : "
#define AR_DEFN_LABEL_OPEN_DLG_CONTINU  "      open-continu: "
#define AR_DEFN_LABEL_OPEN_DLG_SUPPRESS "      open-suppres: "
#define AR_DEFN_LABEL_OPEN_DLG_MSG_TYPE "      open-msgtype: "
#define AR_DEFN_LABEL_OPEN_DLG_MSG_NUM  "      open-msgnum : "
#define AR_DEFN_LABEL_OPEN_DLG_MSG_PANE "      open-msgpane: "
#define AR_DEFN_LABEL_OPEN_DLG_MSG_TEXT "      open-msgtext: "
#define AR_DEFN_LABEL_OPEN_DLG_POLLINT  "      open-pollint: "
#define AR_DEFN_LABEL_OPEN_DLG_RPTSTR   "      open-rptstr : "
#define AR_DEFN_LABEL_OPEN_DLG_SORTORD  "      open-sortord: "

#define AR_DEFN_LABEL_CALLGUIDE_SERVER  "      call-server : "
#define AR_DEFN_LABEL_CALLGUIDE_GUIDE   "      call-guide  : "
#define AR_DEFN_LABEL_CALLGUIDE_MODE    "      call-mode   : "
#define AR_DEFN_LABEL_CALLGUIDE_TABLEID "      call-tableid: "

#define AR_DEFN_LABEL_EXITGUIDE         "      exit guide  : "
#define AR_DEFN_LABEL_GOTOGUIDE         "      goto guide  : "
#define AR_DEFN_LABEL_WAIT              "      wait        : "
#define AR_DEFN_LABEL_GOTOACTION        "      goto action : "

#define AR_DEFN_LABEL_OPTION            "   option         : "
#define AR_DEFN_LABEL_OWNER             "   owner          : "
#define AR_DEFN_LABEL_CONTAINER_OWNER      "   owning-obj     : "
#define AR_DEFN_LABEL_CONTAINER_OWNER_NAME "   owning-obj-name: "
#define AR_DEFN_LABEL_CONTAINER_OWNER_TYPE "   owning-obj-type: "
#define AR_DEFN_LABEL_CONTAINER_NUM_OWNER "   num-owning-obj : "
#define AR_DEFN_LABEL_PATTERN           "   pattern        : "
#define AR_DEFN_LABEL_PERMISSION        "   permission     : "
#define AR_DEFN_LABEL_PRECISION         "   precision      : "
#define AR_DEFN_LABEL_REFERENCE_GROUPS  "   ref-groups     : "
#define AR_DEFN_LABEL_QBE_MATCH_OP      "   qbe-match-op   : "
#define AR_DEFN_LABEL_PUSH_FIELD        "      push-field  : "
#define AR_DEFN_LABEL_ENCR_FIELDP       "encrypt-push-field: "
#define AR_DEFN_LABEL_RANGE_HIGH        "   range-high     : "
#define AR_DEFN_LABEL_RANGE_LOW         "   range-low      : "
#define AR_DEFN_LABEL_REFRESH_CODE      "   refresh-code   : "
#define AR_DEFN_LABEL_RETRY_TIME        "   retry-time     : "
#define AR_DEFN_LABEL_RTN_MAP_TYPE      "   rtn-map-type   : "
#define AR_DEFN_LABEL_RTN_MAPPING       "   rtn-mapping    : "
#define AR_DEFN_LABEL_WK_CONN_TYPE      "   wk-conn-type   : "
#define AR_DEFN_LABEL_NEXT_FIELD_ID     "   next-field-id  : "
#define AR_DEFN_LABEL_SCHEMA_NAME       "   schema-name    : "
#define AR_DEFN_LABEL_SCHEMA_TYPE       "   schema-type    : "
#define AR_DEFN_LABEL_SCHEMA_SUBADM     "   schema-admin   : "
#define AR_DEFN_LABEL_SET_FIELD         "      set-field   : "
#define AR_DEFN_LABEL_ENCR_SET_FIELD    " encrypt-set-field: "
#define AR_DEFN_LABEL_SORT_LIST         "   sort-list      : "
#define AR_DEFN_LABEL_TIMESTAMP         "   timestamp      : "
#define AR_DEFN_LABEL_TIMESTAMP_2       "      timestamp   : "
#define AR_DEFN_LABEL_TO_SCHEMA         "   to-schema      : "
#define AR_DEFN_LABEL_TO_SERVER         "   to-server      : "
#define AR_DEFN_LABEL_TRANSFER_MODE     "   transfer-mode  : "
#define AR_DEFN_LABEL_TYPE              "   type           : "
#define AR_DEFN_LABEL_UPDATE_CODE       "   update-code    : "
#define AR_DEFN_LABEL_VIEW_KEYFIELD     "      key-field   : "
#define AR_DEFN_LABEL_VIEW_NAME         "      ext-table   : "
#define AR_DEFN_LABEL_VIEW_QRY          "      view-query  : "
#define AR_DEFN_LABEL_VALUE             "   value          : "
#define AR_DEFN_LABEL_DISTRIB_TCOUNT    "   thread-count   : "
#define AR_DEFN_LABEL_DISTRIB_CONNECT   "   connection     : "
#define AR_DEFN_LABEL_VUI_LOCALE        "   vui-locale     : "
#define AR_DEFN_LABEL_VUI_TYPE          "   vui-type       : "


/* Constants used for processing the directory files */
#define AR_DIR_LABEL_ACTLINK_DIR         "Active-Link-Dir:"
#define AR_DIR_LABEL_ACTLINK_SHELL       "Active-Link-Shell:"
#define AR_DIR_LABEL_ADMIN_ONLY          "Admin-Only-Mode:"
#define AR_DIR_LABEL_ARFORK_LOG_FILE     "Arfork-Log-File:"
#define AR_DIR_LABEL_AS_SPEC_PORT        "Admin-Specific-Port:"
#define AR_DIR_LABEL_ALERT_CHECK_USERS   "Alert-Check-Users:"
#define AR_DIR_LABEL_ALERT_LOG_FILE      "Alert-Log-File:"
#define AR_DIR_LABEL_ALERT_OUTBOUND_PORT "Alert-Outbound-Port:"
#define AR_DIR_LABEL_ALERT_SEND_TIMEOUT  "Alert-Send-Timeout:"
#define AR_DIR_LABEL_ALLOW_GUEST         "Allow-Guest-Users:"
#define AR_DIR_LABEL_UNQUAL_QUERIES      "Allow-Unqual-Queries:"
#define AR_DIR_LABEL_API_LOG_FILE        "API-Log-File:"
#define AR_DIR_LABEL_APPLICATION_AUDIT   "Application-Audit-Info:"
#define AR_DIR_LABEL_APPLICATION_ENABLE  "Application-Enable:"
#define AR_DIR_LABEL_APPLICATION_TAG     "Application-Tag:"
#define AR_DIR_LABEL_AP_DEFN_CHECK_INT   "Approval-Defn-Check-Interval:"
#define AR_DIR_LABEL_APPROVAL_LOG_FILE   "Approval-Log-File:"
#define AR_DIR_LABEL_APPROVAL_NOTIFY     "Approval-Notify:"
#define AR_DIR_LABEL_AP_RPC_SOCKET       "Approval-RPC-Socket:"
#define AR_DIR_LABEL_AP_SPEC_PORT        "Approval-Specific-Port:"
#define AR_DIR_LABEL_AP_WEB_DOC_DIR      "Approval-Web-Doc-Dir:"
#define AR_DIR_LABEL_CANCEL_QUERY        "Cancel-Query-Option:"
#define AR_DIR_LABEL_CE_DEADLOCK_RETRIES      "Create-Entry-DeadLock-Retries:"
#define AR_DIR_LABEL_CE_DEADLOCK_RETRY_DELAY  "Create-Entry-DeadLock-Retry-Delay:"
#define AR_DIR_LABEL_FTCASESEARCH        "Case-Insensitive-Search:"
#define AR_DIR_LABEL_NO_CHANGED_CHECK    "Changed-By-Another-Check:"
#define AR_DIR_LABEL_CLUSTERED_INDEX     "Clustered-Index:"
#define AR_DIR_LABEL_FTCOLLECTION        "Collection-directory:"
#define AR_DIR_LABEL_XREF_PASSWD         "Crossref-Blank-Password:"
#define AR_DIR_LABEL_DB_DIR              "Dbhome-directory:"
#define AR_DIR_LABEL_DB_MAX_TEXT_SIZE    "Db-Max-Text-Size:"
#define AR_DIR_LABEL_DB_MAX_ATTACH_SIZE  "Db-Max-Attach-Size:"
#define AR_DIR_LABEL_DB_NAME             "Db-name:"
#define AR_DIR_LABEL_DB_PASSWORD         "Db-password:"
#define AR_DIR_LABEL_DB_USER             "Db-user:"
#define AR_DIR_LABEL_DEBUG_MODE          "Debug-mode:"
#define AR_DIR_LABEL_DEFAULT_WEB_PATH    "Default-Web-Path:"
#define AR_DIR_LABEL_USER_CACHE_UTILS    "Disable-User-Cache-Utilities:"
#define AR_DIR_LABEL_DEFAULT_ORDER_BY    "Default-Order-By:"
#define AR_DIR_LABEL_DISABLE_ADMIN_OPS   "Disable-Admin-Ops:"
#define AR_DIR_LABEL_DISABLE_ALERTS      "Disable-Alerts:"
#define AR_DIR_LABEL_DISABLE_ESCALATIONS "Disable-Escalations:"
#define AR_DIR_LABEL_DELAYED_CACHE       "Disable-Shared-Cache-Delay:"
#define AR_DIR_LABEL_DELAY_RECACHE_TIME  "Delay-Recache-Time:"
#define AR_DIR_LABEL_SHARED_MEM          "Disable-Shared-Memory:"
#define AR_DIR_LABEL_DISABLE_CLIENT_OP   "Disable-Client-Operation:"
#define AR_DIR_LABEL_DISTRIB_LOG_FILE    "Distrib-Log-File:"
#define AR_DIR_LABEL_DS_RPC_SOCKET       "Distributed-RPC-Socket:"
#define AR_DIR_LABEL_DSO_HOST_NAME       "DSO-Host-Name:"
#define AR_DIR_LABEL_DSO_MERGE_STYLE     "DSO-Merge-DupId-Overwrite:"
#define AR_DIR_LABEL_DSO_TIMEOUT_NORMAL  "DSO-Timeout-Normal:"
#define AR_DIR_LABEL_DSO_PLACEHOLDER     "DSO-Placeholder-Mode:"
#define AR_DIR_LABEL_DSO_POLL_INTERVAL   "DSO-Polling-Interval:"
#define AR_DIR_LABEL_DSO_DEST_PORT       "DSO-private-dest-port:"
#define AR_DIR_LABEL_DSO_SOURCE_SERVER   "DSO-Source-Server:"
#define AR_DIR_LABEL_DSO_PEND_RETRY_FL   "DSO-Mark-Pending-Retry-Flag:"
#define AR_DIR_LABEL_DSO_TARGET_CONNECT  "DSO-Target-Connection:"
#define AR_DIR_LABEL_DSO_USER_PASSWD     "DSO-User-Password:"
#define AR_DIR_LABEL_DSO_TARGET_PASSWD   "DSO-Target-Password:"
#define AR_DIR_LABEL_DSO_CACHE_CHK_INTERVAL "DSO-Cache-Check-Interval:"
#define AR_DIR_LABEL_DSO_RPC_SOCKET      "DSO-Local-RPC-Socket:"
#define AR_DIR_LABEL_EMAIL_SYSTEM        "Email-Delivery-System:"
#define AR_DIR_LABEL_EMAIL_FROM          "Email-Notify-From:"
#define AR_DIR_LABEL_EMAIL_TIMEOUT       "Email-Timeout:"
#define AR_DIR_LABEL_SHARED_CACHE        "Enable-Shared-Cache:"
#define AR_DIR_LABEL_ENCR_AL_SQL         "Encrypt-AL-Direct-SQL:"
#define AR_DIR_LABEL_ENC_DATA_ENCR_ALG   "Encrypt-Data-Encryption-Algorithm:"
#define AR_DIR_LABEL_ENC_DATA_KEY_EXP    "Encrypt-Symmetric-Data-Key-Expire:"
#define AR_DIR_LABEL_ENC_PUB_KEY_ALG     "Encrypt-Public-Key-Algorithm:"
#define AR_DIR_LABEL_ENC_PUB_KEY_EXP     "Encrypt-Public-Key-Expire:"
#define AR_DIR_LABEL_ENC_SEC_POLICY      "Encrypt-Security-Policy:"
#define AR_DIR_LABEL_ENC_SESS_H_ENTRIES  "Encrypt-Session-Hash-Entries:"
#define AR_DIR_LABEL_ENV_VARIABLE        "Environment-variable:"
#define AR_DIR_LABEL_ESCALATION_DAEMON   "Escalation-Daemon:"
#define AR_DIR_LABEL_ESCALATION_LOG_FILE "Escalation-Log-File:"
#define AR_DIR_LABEL_ES_SPEC_PORT        "Escalation-Specific-Port:"
#define AR_DIR_LABEL_EXPORT_SVR_OPS      "Export-Server-Operations:"
#define AR_DIR_LABEL_EA_RPC_SOCKET       "External-Authentication-RPC-Socket:"
#define AR_DIR_LABEL_EA_RPC_TIMEOUT      "External-Authentication-RPC-Timeout:"
#define AR_DIR_LABEL_EA_SYNC_TIMEOUT     "External-Authentication-Sync-Timeout:"
#define AR_DIR_LABEL_FS_SPEC_PORT        "Fast-Specific-Port:"
#define AR_DIR_LABEL_APPLICATION_FIELDID "Field-Id:"
#define AR_DIR_LABEL_FILTER_API_RPC_TIMEOUT "Filter-Api-Timeout:"
#define AR_DIR_LABEL_FILT_MAX_STACK      "Filter-Max-Stack:"
#define AR_DIR_LABEL_FILT_MAX_TOTAL      "Filter-Max-Total:"
#define AR_DIR_LABEL_FILTER_LOG_FILE     "Filter-Log-File:"
#define AR_DIR_LABEL_FLASH_DAEMON        "Flashboards-Daemon:"
#define AR_DIR_LABEL_FLASH_SPEC_PORT     "Flashboards-Specific-Port:"
#define AR_DIR_LABEL_FTS_DEBUG           "FTS-Debug-mode:"
#define AR_DIR_LABEL_FTHOMEDIR           "FullText-home:"
#define AR_DIR_LABEL_FULL_LIC_TIMEOUT    "FullText-License-Timeout:"
#define AR_DIR_LABEL_FTSMATCHOP          "FullText-matchop:"
#define AR_DIR_LABEL_FTOPSSTATE          "FullText-state:"
#define AR_DIR_LABEL_FTSTHRESHOLDHIGH    "FullText-threshold-high:"
#define AR_DIR_LABEL_FTSTHRESHOLDLOW     "FullText-threshold-low:"
#define AR_DIR_LABEL_DATE_FORMAT         "GetListEntry-Server-Date-Format:"
#define AR_DIR_LABEL_INIT_FORM           "Init-Form:"
#define AR_DIR_LABEL_INFORMIX_DBN        "Informix-DBServer-Name:"
#define AR_DIR_LABEL_INFORMIX_RELAY_MOD  "Informix-Relay-Module:"
#define AR_DIR_LABEL_INFORMIX_TBC        "Informix-TBConfig:"
#define AR_DIR_LABEL_INGRES_VNOD         "Ingres-Vnode-Name:"
#define AR_DIR_LABEL_IP_NAME             "IP-Name:"
#define AR_DIR_LABEL_USER_INFO_LISTS     "Internal-User-Info-Hash-Lists:"
#define AR_DIR_LABEL_USER_INST_TIMEOUT   "Internal-User-Instance-Timeout:"
#define AR_DIR_LABEL_LIC_TIMEOUT         "License-Timeout:"
#define AR_DIR_LABEL_LICENSE_TAG         "License-Tag:"
#define AR_DIR_LABEL_LS_SPEC_PORT        "List-Specific-Port:"
#define AR_DIR_LABEL_LOCALIZED_SERVER    "Localized-Server:"
#define AR_DIR_LABEL_LOGFILE_APPEND      "Log-File-Append:"
#define AR_DIR_LABEL_EMAIL_NOTIFY_DIR    "MailNotifyDir:"
#define AR_DIR_LABEL_MAP_IP_ADDR         "Map-IP-Address:"
#define AR_DIR_LABEL_MAX_AUDIT_LOG_FILE_SIZE   "Max-Audit-Log-File-Size:"
#define AR_DIR_LABEL_MAX_ENTRIES         "Max-Entries-Per-Query:"
#define AR_DIR_LABEL_MAX_F_DAEMONS       "Max-Fast-Daemons:"
#define AR_DIR_LABEL_MAX_L_DAEMONS       "Max-List-Daemons:"
#define AR_DIR_LABEL_MAX_LOG_FILE_SIZE   "Max-Log-File-Size:"
#define AR_DIR_LABEL_EMAIL_LINE_LEN      "Max-Notify-Mail-Line-Len:"
#define AR_DIR_LABEL_MID_TIER_PASSWD     "Mid-Tier-Service-Password:"
#define AR_DIR_LABEL_MINIMUM_API_VERSION "Minimum-API-Version:"
#define AR_DIR_LABEL_MONITOR_DIR         "Monitor-directory:"
#define AR_DIR_LABEL_MULTIPLE_ARSERVER   "Multiple-ARSystem-Servers:"
#define AR_DIR_LABEL_MULT_ASSIGN_GROUPS  "Multiple-Assign-Groups:"
#define AR_DIR_LABEL_ORACLE_SID          "Oracle-SID:"
#define AR_DIR_LABEL_ORACLE_TWO_T        "Oracle-Two-Task:"
#define AR_DIR_LABEL_ORACLE_QUERY_CLOB   "Oracle-Search-On-Clob:"
#define AR_DIR_LABEL_ORACLE_FETCH_COUNT  "Oracle-Bulk-Fetch-Count:"
#define AR_DIR_LABEL_PLUGIN_ARDBC_THREAD "Plugin-ARDBC-Threads:"
#define AR_DIR_LABEL_PLUGIN_AREA_THREAD  "Plugin-AREA-Threads:"
#define AR_DIR_LABEL_PLUGIN_FILTERAPI_THREAD  "Plugin-Filter-API-Threads:"
#define AR_DIR_LABEL_PLUGIN_DISABLE_REM  "Plugin-Disable-Remote:"
#define AR_DIR_LABEL_PLUGIN_LOAD         "Plugin:"
#define AR_DIR_LABEL_PLUGIN_LOG_FILE     "Plugin-Log-File:"
#define AR_DIR_LABEL_PLUGIN_PASSWD       "Plugin-Password:"
#define AR_DIR_LABEL_PLUGIN_PORT         "Plugin-Port:"
#define AR_DIR_LABEL_PREFERENCE_PRIORITY "Preference-Priority:"
#define AR_DIR_LABEL_PS_RPC_SOCKET       "Private-RPC-Socket:"
#define AR_DIR_LABEL_PS_SPEC_PORT        "Private-Specific-Port:"
#define AR_DIR_LABEL_PR_CATALOG_DIR      "PurchReq-Catalog-Dir:"
#define AR_DIR_LABEL_READ_ONLY_TRAN_OFF  "Read-Only-Tran-Off:"
#define AR_DIR_LABEL_SVR_EVENT_LIST      "Record-Server-Events:"
#define AR_DIR_LABEL_REDUCE_CHCKPNT_UPD  "Reduce-Checkpoint-Updates:"
#define AR_DIR_LABEL_REGISTER_PORTMAPPER "Register-With-Portmapper:"
#define AR_DIR_LABEL_REM_WKFLW_PASSWD     "Remote-Workflow-Password:"
#define AR_DIR_LABEL_REM_WKFLW_TARGET_PASSWD   "Remote-Workflow-Target-Password:"
#define AR_DIR_LABEL_APP_SERVICE_PASSWD  "Remedy-App-Service-Password:"
#define AR_DIR_LABEL_SAVE_LOGIN          "Save-Login:"
#define AR_DIR_LABEL_SCC_CMNT_CHECKIN    "SCC-Comment-Checkin:"
#define AR_DIR_LABEL_SCC_CMNT_CHECKOUT   "SCC-Comment-Checkout:"
#define AR_DIR_LABEL_SCC_ENABLED         "SCC-Enabled:"
#define AR_DIR_LABEL_SCC_INT_MODE        "SCC-Integration-Mode:"
#define AR_DIR_LABEL_SCC_PROVIDER_NAME   "SCC-Provider-Name:"
#define AR_DIR_LABEL_SCC_TARGET_DIR      "SCC-Target-Dir:"
#define AR_DIR_LABEL_SELECT_QUERY_HINT   "Select-Query-Hint:"
#define AR_DIR_LABEL_SERVER_DIR          "Server-directory:"
#define AR_DIR_LABEL_SERVER_NAME         "Server-Name:"
#define AR_DIR_LABEL_SERVER_PLUGIN_ALIAS "Server-Plugin-Alias:"
#define AR_DIR_LABEL_SERVER_PLUGIN_PASSWD "Server-Plugin-Target-Password:"
#define AR_DIR_LABEL_SERVER_PLUGIN_TO    "Server-Plugin-Default-Timeout:"
#define AR_DIR_LABEL_SQL_SECURE_CONNECT  "SQL-Secure-Connection:"
#define AR_DIR_LABEL_SVR_STATS_REC_MODE   "Server-Stats-Rec-Mode:"
#define AR_DIR_LABEL_SVR_STATS_REC_INTERVAL "Server-Stats-Rec-Interval:"
#define AR_DIR_LABEL_SET_PROC_TIME       "Set-Process-Timeout:"
#define AR_DIR_LABEL_CACHE_SEG_SIZE      "Shared-Cache-Segment-Size:"
#define AR_DIR_LABEL_SQL_LOG_FILE        "SQL-Log-File:"
#define AR_DIR_LABEL_SQL_SERVER_SET_ANSI "SQL-Server-Set-ANSI-Defaults:"
#define AR_DIR_LABEL_SUBMITTER_MODE      "Submitter-Mode:"
#define AR_DIR_LABEL_SUPPRESS_WARNINGS   "Suppress-warnings:"
#define AR_DIR_LABEL_SVR_SECURITY_CACHE  "Server-Security-Cache:"
#define AR_DIR_LABEL_SYBASE_CHARSET      "Sybase-Character-Set:"
#define AR_DIR_LABEL_SYBASE_SERV         "Sybase-Server-Name:"
#define AR_DIR_LABEL_TS_SPEC_PORT        "TCD-Specific-Port:"
#define AR_DIR_LABEL_THREAD_DEBUG_MODE   "Thread-Debug-mode:"
#define AR_DIR_LABEL_THREAD_LOG_FILE     "Thread-Log-File:"
#define AR_DIR_LABEL_USE_PASSWD          "Use-Password-File:"
#define AR_DIR_LABEL_USER_LOG_FILE       "User-Log-File:"


/* Constants holding definitions for the database structure clause extensions */
#define AR_DIR_LABEL_CLAUSE              "Clause:"
#define AR_DIR_LABEL_FIELD               "Field {"
#define AR_DIR_LABEL_ID                  "Id:"
#define AR_DIR_LABEL_INDEX               "Index {"
#define AR_DIR_LABEL_SCHEMA              "Schema:"
#define AR_DIR_LABEL_FORM                "Form:"
#define AR_DIR_LABEL_INDEX_UPPER         "Oracle-Upper-Index:"
#define AR_DIR_LABEL_INDEX_FUPPER        "Oracle-All-Upper-Index"
#define AR_DIR_LABEL_DEBUG_GROUPID       "Debug-GroupId:"


#define AR_TAG_TRUE               "T"
#define AR_TAG_FALSE              "F"

                           /* default value for AR_DIR_LABEL_FTSTHRESHOLDLOW */
#define AR_DEFAULT_THRESHOLDLOW  200
                           /* default value for AR_DIR_LABEL_FTSTHRESHOLDHIGH */
#define AR_DEFAULT_THRESHOLDHIGH 1000000

/* Constants holding definitions for alert message items */

#define AR_ALERT_MSG_TOTAL_LEN           1
#define AR_ALERT_MSG_SERVER_VERSION      2
#define AR_ALERT_MSG_TIMESTAMP           3
#define AR_ALERT_MSG_TYPE_CODE           4
#define AR_ALERT_MSG_PRIORITY            5
#define AR_ALERT_MSG_TEXT_LEN            6
#define AR_ALERT_MSG_TEXT                7
#define AR_ALERT_MSG_SOURCE_LEN          8
#define AR_ALERT_MSG_SOURCE              9
#define AR_ALERT_MSG_SOURCE_SERVER_LEN  10
#define AR_ALERT_MSG_SOURCE_SERVER      11
#define AR_ALERT_MSG_SOURCE_FORM_LEN    12
#define AR_ALERT_MSG_SOURCE_FORM        13
#define AR_ALERT_MSG_SOURCE_OBJECT_LEN  14
#define AR_ALERT_MSG_SOURCE_OBJECT      15

#define AR_ALERT_MSG_ITEM_COUNT         15

#define AR_ALERT_MSG_PROTOCOL_VERSION    1

/* Constants holding definitions for the contents of a mail template/message */

#define AR_MAIL_LABEL_SCHEMA   "Schema:"
#define AR_MAIL_LABEL_SERVER   "Server:"
#define AR_MAIL_LABEL_LOGIN    "Login:"
#define AR_MAIL_LABEL_PASSWORD "Password:"
#define AR_MAIL_LABEL_ACTION   "Action:"
#define AR_MAIL_LABEL_FORMAT   "Format:"

#define AR_MAIL_ACTION_SUBMIT  "Submit"
#define AR_MAIL_ACTION_QUERY   "Query"

#define AR_MAIL_FORMAT_SHORT   "Short"
#define AR_MAIL_FORMAT_FULL    "Full"

#define AR_MAIL_BEGIN          "AR-Message-Begin"
#define AR_MAIL_END            "AR-Message-End"

#define AR_MAIL_ID_DELIMITER   '!'

#define AR_MAIL_MAX_LINE_SIZE  1024 /* max size of mail message lines */

/* Constants holding license names */
#define AR_SERVER_LICENSE_TYPE          "AR Server"
#define AR_USER_LICENSE_TYPE            "AR User"
#define AR_USER_FIXED_LICENSE_TYPE      "AR User Fixed"
#define AR_USER_FLOATING_LICENSE_TYPE   "AR User Floating"
#define AR_FULLTEXT_FIXED_LICENSE_TYPE  "AR Full Text Fixed"
#define AR_FULLTEXT_FLOAT_LICENSE_TYPE  "AR Full Text Floating"
#define AR_DISTRIBUTED_SERVER_TYPE      "AR Distributed Server"
#define AR_APPROVAL_SERVER_TYPE         "AR Approval Server"
#define AR_MIDTIER_LICENSE_TYPE         "AR System Mid-Tier"
#define AR_ENCRYPT_STANDARD_TYPE        "AR Encryption - Standard Security"
#define AR_ENCRYPT_PERFORMANCE_TYPE     "AR Encryption - Performance Security"
#define AR_ENCRYPT_PREMIUM_TYPE         "AR Encryption - Premium Security"
#define AR_RESERVED1_SERVER_TYPE        "AR Reserved1 Server"
#define AR_RESERVED1_FIXED_TYPE         "AR Reserved1 Fixed"
#define AR_RESERVED1_FLOATING_TYPE      "AR Reserved1 Floating"
#define AR_RESERVED1_BUILDER_TYPE       "AR Reserved1 Builder"
#define FLASHBOARD_WEB_SERVER           "Flashboards Web Server"
#define AR_PAGER_LICENSE_TYPE           "AR Pager"
#define AR_WWW_LICENSE_TYPE             "AR Web Server"
#define REMEDY_WEB_SERVER_LICENSE_TYPE  "Remedy Web Server"
#define AR_WIRELESS_LICENSE_TYPE        "Remedy Wireless Server"
#define AR_DISCOVERY_SMS                "Discovery Service for SMS"
#define AR_DISCOVERY_NETCENSUS          "Discovery Service for NetCensus"
#define AR_DISCOVERY_ORACLE             "Link for Oracle Applications"
#define AR_DISCOVERY_SAP                "Remedy Link for SAP R/3"
#define AR_DISCOVERY_LANDESK            "Discovery Service for LANDesk"
#define AR_SLA_FIXED_TYPE               "SLA User Fixed"
#define AR_ASSET_FIXED_TYPE             "Asset User Fixed"
#define AR_CHANGE_FIXED_TYPE            "Change User Fixed"
#define AR_HELPDESK_FIXED_TYPE          "Help Desk User Fixed"
#define AR_HELPDESK_FLOATING_TYPE       "Help Desk User Floating"
#define AR_PURCHASING_LICENSE_TYPE      "Purchasing@Work User"
#define AR_EXPENSABLE_LICENSE_TYPE      "ExpensAble@Work User"
#define AR_SETUPWORK_LICENSE_TYPE       "SetUp@Work User"
#define AR_SUPPORT_LICENSE_TYPE         "Support"
#define AR_QUALITY_LICENSE_TYPE         "Quality"
#define AR_CRMSERVER_LICENSE_TYPE       "CRM Server"
#define AR_CRMUSER_FIXED_TYPE           "CRM User Fixed"
#define AR_CRMUSER_FLOATING_TYPE        "CRM User Floating"
#define AR_ASSET_FLOATING_TYPE          "Asset User Floating"
#define AR_CHANGE_FLOATING_TYPE         "Change User Floating"
#define AR_ENTERPRISE_FLOATING_TYPE     "Enterprise Integration Engine"
#define AR_SALES_CONTINUUM_FIXED_TYPE   "Sales Continuum User Fixed"
#define AR_MIGRATOR_LICENSE_TYPE        "Remedy Migrator"
#define AR_PALM_LICENSE_TYPE            "Remedy Link for Palm User"
#define PROFILER_SERVER_TYPE            "Profiler Server"
#define PROFILER_USER_TYPE              "Profiler User"
#define DEMO_LICENSE_TYPE               "Demo"
#define PURGE_LICENSE_TYPE              "Purge"

#endif

