/*
# clearcase: Tau4.2
*/
/* ========================================================== */
/* === DO NOT EDIT THIS FILE - File was generated by mcod === */
/* === Generated at : Tue Oct 17 08:22:33 2000             == */
/* ========================================================== */

#ifndef __mcod_h_
#define __mcod_h_

#ifdef __cplusplus
extern "C" {
#endif

#define ID_SDTMT    1
#define ID_SDTMTUI  2
#define ID_SDTGATE  3
#define ID_SDTMPM   4
#define ID_SDTLINK  5
#define ID_COMMON   6
#define ID_EXTERNAL 7

/*
** Messages with common receiver accessible for all tools.
*/
#define COMMON

/*
** All messages must be visible for the Cmicro Postmaster*/
#ifdef SDTMPM
  #define MCOD_DEBUG
#endif 

/* Currently 99 mesages defined */
/* ---------------------------------------------------------- */
/* -------- Message tags used by applications --------------- */
/* ---------------------------------------------------------- */

#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define              UIMessageBoxOKRes 1000
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define          UIMessageBoxCancelRes 1001
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                       UICmdReq 1002
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                 UICmdCancelReq 1003
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                     UIPopUpRes 1004
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define              UIPopUpIntegerRes 1005
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                 UIPopUpListRes 1006
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                      UIExitReq 1007
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define               UISelectorBoxRes 1008
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define              UIPopupBitMaskRes 1009
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                    UISetBoxRes 1010
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                UIFatalErrorRes 1011
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define         UIGetAllSymbolNamesReq 1012
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define               UIPopupSigParRes 1013
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                    UIStringInd 2000
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                UIMessageBoxInd 2001
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                       UICmdCnf 2002
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                     UIPopUpInd 2003
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define              UIPopUpIntegerInd 2004
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                 UIPopUpListInd 2005
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                      UIExitInd 2006
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                      UIExitCnf 2007
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                   UICaptionInd 2008
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define               UISelectorBoxInd 2009
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define              UIPopupBitMaskInd 2010
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                    UISetBoxInd 2011
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define      UIButtonPathAndVersionInd 2012
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                UIFatalErrorInd 2013
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define              UIDisableTraceInd 2014
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define               UIEnableTraceInd 2015
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                SdtmtMessageInd 2016
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define         UIGetAllSymbolNamesCnf 2017
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define               UIPopupSigParInd 2018
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define         UIPopUpIntegerLimitInd 2019
#endif


#if defined(SDTMT) || defined(EXTERNAL) || defined(MCOD_DEBUG)
  #define              EXTOutputToEnvInd 3000
#endif


#if defined(EXTERNAL) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define            EXTOutputFromEnvReq 4000
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define                 GateForkParReq 5000
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define                    GateDataReq 5001
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define              GateLineStatusReq 5002
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define                    GateExitReq 5003
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define                    GateExitRes 5004
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define                   GateStartReq 5005
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define                    GateStopReq 5006
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define              GateT32CommandReq 5007
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                 GateForkParCnf 6000
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                    GateDataInd 6001
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                   GateErrorInd 6002
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define              GateLineStatusCnf 6003
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                    GateExitInd 6004
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                   GateStartCnf 6005
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                    GateStopCnf 6006
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define              GateT32CommandCnf 6007
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                  GateStringInd 6008
#endif


#if defined(COMMON) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define                  MPMConnectReq 7000
#endif


#if defined(COMMON) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define               MPMDisconnectReq 7001
#endif


#if defined(COMMON) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define               MPMDisconnectRes 7002
#endif


#if defined(SDTMTUI) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define                UIConnectionReq 7003
#endif


#if defined(SDTMT) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define             SdtmtConnectionReq 7004
#endif


#if defined(SDTGATE) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define              GateConnectionReq 7005
#endif


#if defined(SDTLINK) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define              LinkConnectionReq 7006
#endif


#if defined(EXTERNAL) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define          ExternalConnectionReq 7007
#endif


#if defined(SDTMT) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define              MPMGateStartupReq 7008
#endif


#if defined(SDTMPM) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define              MPMGateStartupCnf 7009
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define                  MPMConnectCnf 8000
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define               MPMDisconnectCnf 8001
#endif


#if defined(SDTMPM) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                UIConnectionCnf 8002
#endif


#if defined(SDTMPM) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define               UIConnectionDeny 8003
#endif


#if defined(SDTMPM) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define             SdtmtConnectionCnf 8004
#endif


#if defined(SDTMPM) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define            SdtmtConnectionDeny 8005
#endif


#if defined(SDTMPM) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define              GateConnectionCnf 8006
#endif


#if defined(SDTMPM) || defined(SDTGATE) || defined(MCOD_DEBUG)
  #define             GateConnectionDeny 8007
#endif


#if defined(SDTMPM) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define              LinkConnectionCnf 8008
#endif


#if defined(SDTMPM) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define             LinkConnectionDeny 8009
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define         ExternalConnectionDeny 8010
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define          ExternalConnectionCnf 8011
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define       SdtmtStartupNotification 9000
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define          UIStartupNotification 9001
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define        GateStartupNotification 9002
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define        LinkStartupNotification 9003
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define                    MSCStartReq 10000
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define                     MSCDataReq 10001
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define                LicInitCheckReq 10002
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define                    LicCheckReq 10003
#endif


#if defined(COMMON) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define                     HelpCmdReq 10004
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define                   SDLEStartReq 10005
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define                    SDLEDataReq 10006
#endif


#if defined(SDTMTUI) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define           LinkShowOrganizerReq 10007
#endif


#if defined(SDTMTUI) || defined(SDTLINK) || defined(MCOD_DEBUG)
  #define                  SDTPMStartReq 10008
#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                LicInitCheckCnf 11000
#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                    LicCheckCnf 11001
#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                    LinkNoPMInd 11002
#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
  #define                  MSCStartUpCnf 11003
#endif


#if defined(SDTLINK) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                 LinkVersionInd 11004
#endif


#if defined(SDTLINK) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define                    LinkExitInd 11005
#endif


#if defined(SDTLINK) || defined(SDTMTUI) || defined(MCOD_DEBUG)
  #define                 LinkMessageInd 11006
#endif


#if defined(COMMON) || defined(SDTMPM) || defined(MCOD_DEBUG)
  #define               ExitNotification 12000
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define                      AlertExit 12001
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define               MPMDisconnectInd 13000
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
  #define                    MPMErrorInd 13001
#endif






/* ---------------------------------------------------------- */
/* -------- Typedefinitions used by applications ------------ */
/* ---------------------------------------------------------- */

#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *String;
}  xmk_T_UICmdReq;

#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *Value;
}  xmk_T_UIPopUpRes;

#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *Value;
}  xmk_T_UIPopUpIntegerRes;

#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *Selection;
}  xmk_T_UIPopUpListRes;

#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *File;
}  xmk_T_UISelectorBoxRes;

#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  xmk_T_LINKED_LIST  *SelectedOnes;
}  xmk_T_UIPopupBitMaskRes;

#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *Directory;
}  xmk_T_UISetBoxRes;

#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *Values;
}  xmk_T_UIPopupSigParRes;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *String;
}  xmk_T_UIStringInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *WindowTitle;
  char               *WindowText;
}  xmk_T_UIMessageBoxInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *LastCmdLine;
}  xmk_T_UICmdCnf;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *WindowTitle;
  char               *WindowText;
}  xmk_T_UIPopUpInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *WindowTitle;
  char               *WindowText;
}  xmk_T_UIPopUpIntegerInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *WindowTitle;
  char               *WindowText;
  int                 More;
  xmk_T_LINKED_LIST  *ListBoxEntries;
}  xmk_T_UIPopUpListInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *Titel;
}  xmk_T_UICaptionInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *SelectorBoxTitel;
  char               *SelectorBoxPath;
  char               *SelectorBoxFilter;
  char               *SelectorBoxFilterDescription;
}  xmk_T_UISelectorBoxInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *WindowTitle;
  char               *WindowText;
  xmk_T_LINKED_LIST  *ListBoxEntries;
}  xmk_T_UIPopupBitMaskInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *SetBoxTitel;
  char               *SetBoxPath;
}  xmk_T_UISetBoxInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *Path;
  char               *Version;
}  xmk_T_UIButtonPathAndVersionInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *ErrorTitle;
  char               *ErrorText;
}  xmk_T_UIFatalErrorInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *caption;
  char               *text;
}  xmk_T_SdtmtMessageInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  int                 More;
  int                 TypeOfList;
  xmk_T_LINKED_LIST  *ListOfType;
}  xmk_T_UIGetAllSymbolNamesCnf;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *WindowTitle;
  char               *WindowText;
  int                 More;
  xmk_T_LINKED_LIST  *ListOfType;
}  xmk_T_UIPopupSigParInd;

#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *WindowTitle;
  char               *WindowText;
  int                 LowerLimit;
  int                 UpperLimit;
}  xmk_T_UIPopUpIntegerLimitInd;

#endif


#if defined(SDTMT) || defined(EXTERNAL) || defined(MCOD_DEBUG)
typedef struct
{

  char               *output;
}  xmk_T_EXTOutputToEnvInd;

#endif


#if defined(EXTERNAL) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *output;
}  xmk_T_EXTOutputFromEnvReq;

#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
typedef struct
{

  char               *CharParam_1;
  char               *CharParam_2;
  char               *CharParam_3;
  int                 IntegerParam_1;
  int                 IntegerParam_2;
  int                 IntegerParam_3;
  int                 CharacterLength;
  int                 CharacterPosition;
}  xmk_T_GateForkParReq;

#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
typedef struct
{

  int                 len;
  char               *RawBuffer;
}  xmk_T_GateDataReq;

#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
typedef struct
{

  char               *command;
}  xmk_T_GateT32CommandReq;

#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  int                 VersionHigh;
  int                 VersionLow;
  char               *who_am_i;
}  xmk_T_GateForkParCnf;

#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  int                 len;
  char               *RawBuffer;
}  xmk_T_GateDataInd;

#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *ErrorText;
}  xmk_T_GateErrorInd;

#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  int                 XON_received;
  int                 XOFF_received;
  int                 chars_received;
  int                 received_frames_not_OK;
  int                 received_frames_OK;
  int                 receiver_fatal_error;
  int                 XON_sent;
  int                 XOFF_sent;
  int                 ESC_sent;
  int                 chars_sent;
  int                 try_to_send_frames;
  int                 transmitter_fatal_error;
  int                 is_changed;
}  xmk_T_GateLineStatusCnf;

#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *response;
}  xmk_T_GateT32CommandCnf;

#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *String;
}  xmk_T_GateStringInd;

#endif


#if defined(SDTMT) || defined(SDTMPM) || defined(MCOD_DEBUG)
typedef struct
{

  char               *fullpath;
}  xmk_T_MPMGateStartupReq;

#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
typedef struct
{

  int                 toolid;
  int                 sdtmt_connected;
  int                 sdtgate_connected;
  int                 sdtmtui_connected;
  char               *MPMVersion;
}  xmk_T_MPMConnectCnf;

#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
typedef struct
{

  int                 toolid;
  int                 sdtmt_connected;
  int                 sdtgate_connected;
  int                 sdtmtui_connected;
}  xmk_T_MPMDisconnectCnf;

#endif


#if defined(SDTMPM) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  int                 sdtmt_connected;
  int                 sdtgate_connected;
  char               *Version;
}  xmk_T_UIConnectionCnf;

#endif


#if defined(SDTMPM) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  int                 sdtmtui_connected;
  int                 sdtgate_connected;
}  xmk_T_SdtmtConnectionCnf;

#endif


#if defined(SDTMPM) || defined(SDTGATE) || defined(MCOD_DEBUG)
typedef struct
{

  int                 sdtmt_connected;
  int                 sdtmtui_connected;
}  xmk_T_GateConnectionCnf;

#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
typedef struct
{

  char               *CharParam_1;
}  xmk_T_MSCStartReq;

#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
typedef struct
{

  char               *CharParam_1;
}  xmk_T_MSCDataReq;

#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
typedef struct
{

  char               *version;
}  xmk_T_LicInitCheckReq;

#endif


#if defined(COMMON) || defined(SDTLINK) || defined(MCOD_DEBUG)
typedef struct
{

  char               *HelpIndex;
}  xmk_T_HelpCmdReq;

#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
typedef struct
{

  char               *GR_Reference;
}  xmk_T_SDLEDataReq;

#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  int                 status;
  char               *CharParam_1;
}  xmk_T_LicInitCheckCnf;

#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  int                 status;
  char               *CharParam_1;
}  xmk_T_LicCheckCnf;

#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
typedef struct
{

  char               *CharParam_1;
}  xmk_T_LinkNoPMInd;

#endif


#if defined(SDTLINK) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *Version;
}  xmk_T_LinkVersionInd;

#endif


#if defined(SDTLINK) || defined(SDTMTUI) || defined(MCOD_DEBUG)
typedef struct
{

  char               *caption;
  char               *text;
}  xmk_T_LinkMessageInd;

#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
typedef struct
{

  int                 toolid;
  int                 sdtmt_connected;
  int                 sdtgate_connected;
  int                 sdtmtui_connected;
}  xmk_T_MPMDisconnectInd;

#endif

/* ---------------------------------------------------------- */
/* --- Union for all the messages used by applications ------ */
/* ---------------------------------------------------------- */
typedef union
{

#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_UICmdReq                       v_UICmdReq;
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_UIPopUpRes                     v_UIPopUpRes;
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_UIPopUpIntegerRes              v_UIPopUpIntegerRes;
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_UIPopUpListRes                 v_UIPopUpListRes;
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_UISelectorBoxRes               v_UISelectorBoxRes;
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_UIPopupBitMaskRes              v_UIPopupBitMaskRes;
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_UISetBoxRes                    v_UISetBoxRes;
#endif


#if defined(SDTMTUI) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_UIPopupSigParRes               v_UIPopupSigParRes;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIStringInd                    v_UIStringInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIMessageBoxInd                v_UIMessageBoxInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UICmdCnf                       v_UICmdCnf;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIPopUpInd                     v_UIPopUpInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIPopUpIntegerInd              v_UIPopUpIntegerInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIPopUpListInd                 v_UIPopUpListInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UICaptionInd                   v_UICaptionInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UISelectorBoxInd               v_UISelectorBoxInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIPopupBitMaskInd              v_UIPopupBitMaskInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UISetBoxInd                    v_UISetBoxInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIButtonPathAndVersionInd      v_UIButtonPathAndVersionInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIFatalErrorInd                v_UIFatalErrorInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_SdtmtMessageInd                v_SdtmtMessageInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIGetAllSymbolNamesCnf         v_UIGetAllSymbolNamesCnf;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIPopupSigParInd               v_UIPopupSigParInd;
#endif


#if defined(SDTMT) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIPopUpIntegerLimitInd         v_UIPopUpIntegerLimitInd;
#endif


#if defined(SDTMT) || defined(EXTERNAL) || defined(MCOD_DEBUG)
    xmk_T_EXTOutputToEnvInd              v_EXTOutputToEnvInd;
#endif


#if defined(EXTERNAL) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_EXTOutputFromEnvReq            v_EXTOutputFromEnvReq;
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
    xmk_T_GateForkParReq                 v_GateForkParReq;
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
    xmk_T_GateDataReq                    v_GateDataReq;
#endif


#if defined(SDTMT) || defined(SDTGATE) || defined(MCOD_DEBUG)
    xmk_T_GateT32CommandReq              v_GateT32CommandReq;
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_GateForkParCnf                 v_GateForkParCnf;
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_GateDataInd                    v_GateDataInd;
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_GateErrorInd                   v_GateErrorInd;
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_GateLineStatusCnf              v_GateLineStatusCnf;
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_GateT32CommandCnf              v_GateT32CommandCnf;
#endif


#if defined(SDTGATE) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_GateStringInd                  v_GateStringInd;
#endif


#if defined(SDTMT) || defined(SDTMPM) || defined(MCOD_DEBUG)
    xmk_T_MPMGateStartupReq              v_MPMGateStartupReq;
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
    xmk_T_MPMConnectCnf                  v_MPMConnectCnf;
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
    xmk_T_MPMDisconnectCnf               v_MPMDisconnectCnf;
#endif


#if defined(SDTMPM) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_UIConnectionCnf                v_UIConnectionCnf;
#endif


#if defined(SDTMPM) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_SdtmtConnectionCnf             v_SdtmtConnectionCnf;
#endif


#if defined(SDTMPM) || defined(SDTGATE) || defined(MCOD_DEBUG)
    xmk_T_GateConnectionCnf              v_GateConnectionCnf;
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
    xmk_T_MSCStartReq                    v_MSCStartReq;
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
    xmk_T_MSCDataReq                     v_MSCDataReq;
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
    xmk_T_LicInitCheckReq                v_LicInitCheckReq;
#endif


#if defined(COMMON) || defined(SDTLINK) || defined(MCOD_DEBUG)
    xmk_T_HelpCmdReq                     v_HelpCmdReq;
#endif


#if defined(SDTMT) || defined(SDTLINK) || defined(MCOD_DEBUG)
    xmk_T_SDLEDataReq                    v_SDLEDataReq;
#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_LicInitCheckCnf                v_LicInitCheckCnf;
#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_LicCheckCnf                    v_LicCheckCnf;
#endif


#if defined(SDTLINK) || defined(SDTMT) || defined(MCOD_DEBUG)
    xmk_T_LinkNoPMInd                    v_LinkNoPMInd;
#endif


#if defined(SDTLINK) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_LinkVersionInd                 v_LinkVersionInd;
#endif


#if defined(SDTLINK) || defined(SDTMTUI) || defined(MCOD_DEBUG)
    xmk_T_LinkMessageInd                 v_LinkMessageInd;
#endif


#if defined(SDTMPM) || defined(COMMON) || defined(MCOD_DEBUG)
    xmk_T_MPMDisconnectInd               v_MPMDisconnectInd;
#endif


  } xmk_U_MsgParams;

extern int MCODEncode (int msg_id, xmk_U_MsgParams *p, char* buffer, int buffersize );
extern int MCODDecode (int msg_id, char* buffer, int buffersize, xmk_U_MsgParams *p);
extern int MCODEndDecode (int msg_id, xmk_U_MsgParams *p);


#ifdef __cplusplus
}
#endif

#endif  /* __mcod_h_ */
