home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / emerald / emrldsys.lha / Kernel / h / kmdDefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-17  |  2.5 KB  |  78 lines

  1.  
  2. /*  C O P Y R I G H T   N O T I C E :                                     */
  3. /* Copyright 1986 Eric Jul.  May not be used for any               */
  4. /* purpose without written permission from the author.              */
  5.  
  6. /* File: /usr/Em/Kernel/h/Defs.h  Date: 1986-05-01  */
  7.  
  8. /*
  9.  * $Header:   /u1/Eden/Source/KMDOps/RCS/Defs.v  Revision 1.6  83/06/16  06:13:54  eric  Exp$
  10.  * INTERFACE:    None.
  11.  *
  12.  * FUNCTION:    Provides the KMD global type definitions.
  13.  *
  14.  * IMPORTS:    Nothing.
  15.  *
  16.  * EXPORTS:    KMDTest, KMDDataType, KMDDataPtr.
  17.  *
  18.  * DESIGN:    
  19.  *
  20.  * $Log:    /u1/Eden/Source/KMDOps/RCS/Defs.v $
  21. Revision 1.6  83/06/16  06:13:54  eric
  22. Test output disabled.
  23.  
  24. Revision 1.5  83/06/15  04:49:10  eric
  25. Corrected error in preceeding correction.
  26.  
  27. Revision 1.4  83/06/15  04:43:24  eric
  28. Error corrected in constants definition.
  29.  
  30. Revision 1.3  83/06/15  03:08:54  eric
  31. Message Type constants inserted. Eric Jul.
  32.  
  33. Revision 1.2  83/06/12  22:01:19  eric
  34. Syntax Errors corrected after initial implementation.
  35.  
  36. Revision 1.1  83/06/12  18:33:33  eric
  37. Initial revision
  38.  
  39.  * 1983-06-11:    Initial implementation. Eric Jul.
  40.  */
  41.  
  42. #ifndef KMDTESTVALUE
  43. #define KMDTESTVALUE 0
  44. extern int KMDTest;      /* Test Output flag for KMD. */
  45. #define KMDMAXMESSAGESIZE 1200
  46. typedef struct KMDDataType {
  47.     int         MsgType;
  48.     int         MsgInt;
  49.     char        MsgString[KMDMAXMESSAGESIZE];
  50. } KMDDataType, *KMDDataPtr;
  51.  
  52. typedef struct {
  53.     int                 totalSize;
  54.     KMDDataType         data;
  55. } KMDMsg, *KMDMsgPtr;
  56.  
  57. /*  MsgType values are defined by the following constants.      */
  58. #define KMDCDATA           1    /* Plain data (int, string)     */
  59. #define KMDCTRACE          2    /* A trace start request.       */
  60. #define KMDCUNTRACE        3    /* A stop trace request.        */
  61. #define KMDCSNAPSHOT       4    /* A snapshot request.          */
  62. #define KMDCPRINTVAR       5    /* A print variable request.    */
  63. #define KMDCCHANGEVAR      6    /* A change variable request.   */
  64. #define KMDCERRMSG         7    /* A error message request.     */
  65. #define KMDCLASTMSG        8    /* The last message request.    */
  66. #define KMDCBYTES          9    /* A block of bytes.            */
  67. #define KMDCGETBYTES      10    /* Get bytes request.           */
  68. #define KMDCPUTBYTES      11    /* Put bytes request.           */
  69. #define KMDCTRACESTDOUT   12    /* Start trace to stdout        */
  70. #define KMDCUNTRACESTDOUT 13    /* Stop trace to stdout         */
  71. #define KMDREADLINE      14    /* Read from user */
  72. #define KMDREADLINEANS      15    /* Line Read */
  73.                     
  74. #define KMDSTDOUTSOCK -1
  75.  
  76. extern KKStatus KMDReceive(), KMDSend();
  77. #endif
  78.