home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / include / gl / glipc.h.z / glipc.h
Encoding:
C/C++ Source or Header  |  1996-12-06  |  2.7 KB  |  115 lines

  1. #ifndef __GL_GLIPC_H__
  2. #define __GL_GLIPC_H__
  3. /**************************************************************************
  4.  *                                      *
  5.  *          Copyright (C) 1984, Silicon Graphics, Inc.          *
  6.  *                                      *
  7.  *  These coded instructions, statements, and computer programs  contain  *
  8.  *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
  9.  *  are protected by Federal copyright law.  They  may  not be disclosed  *
  10.  *  to  third  parties  or copied or duplicated in any form, in whole or  *
  11.  *  in part, without the prior written consent of Silicon Graphics, Inc.  *
  12.  *                                      *
  13.  **************************************************************************/
  14.  
  15. /* processes we can send to */
  16.  
  17. #define WINDOWMAN    (-1)
  18. #define CONMAN        1
  19.  
  20. #define PORTNAMESIZE    14    /* how big a name getport etc can take */
  21. #define CONSOLEWSHICNO    2    /* XXX vicious hack */
  22.  
  23. #define    SENDSIZE    36    /* < sizeof(sh->smallbuf) */
  24. struct    sendrec {
  25.     short    msg;        /* message to process */
  26.     short    len;        /* length of message */
  27.     short    data[SENDSIZE];    /* data to msg */
  28. };
  29.  
  30. /* messages to window manager */
  31.  
  32. struct portreq {
  33.     short    minsizex;
  34.     short    minsizey;
  35.     short    maxsizex;
  36.     short    maxsizey;
  37.     short    keepaspect;
  38.     short    aspectx;
  39.     short    aspecty;
  40.     short    prefsize;
  41.     short    prefsizex;
  42.     short    prefsizey;
  43.     short    preforigin;
  44.     short    preforiginx;
  45.     short    preforiginy;
  46.     short    xunit;
  47.     short    yunit;
  48.     short    xunitfudge;
  49.     short    yunitfudge;
  50.     short    imakebackground;
  51.     short    imakemap;
  52.     short    gfnum;
  53. #ifdef mips            /* don't change this!! */
  54.     short    icnum;
  55. #endif
  56.     long    pid;
  57.     char    name[PORTNAMESIZE+1];
  58.     short    ginitflag;
  59.     short    noborderflag;
  60.     short    iconsize;
  61.     short    iconsizex;
  62.     short    iconsizey;
  63. };
  64.  
  65. struct textportreq {
  66.     short    x1;
  67.     short    x2;
  68.     short    y1;
  69.     short    y2;
  70. };
  71.  
  72. #define BOUNCE         9
  73. #define PORTREQ        10
  74. #define TEXTPORTREQ    11
  75. #define BACKGROUNDREQ    12
  76. #define PUSHREQ        13
  77. #define POPREQ        14
  78. #define ATTACHREQ    15
  79. #define MOVEREQ        16
  80. #define RESHAPEREQ    17
  81. #define SETTITLEREQ    18
  82. #define BEGINPUPMODE    20
  83. #define ENDPUPMODE    21
  84. #define WINDOWAT    22
  85. #define INCHANAT    23
  86. #define SETNAMEREQ    24
  87. #define TXOPEN        25
  88. #define TXCLOSE        26
  89. #define NEWHINTS    27
  90. #define BEGINFSMODE    28
  91. #define ENDFSMODE    29
  92. #define WINCLOSEREQ    30
  93.  
  94. /* the following allow us to blink the keyboard lights etc. */
  95.  
  96. #define PROC_CLKON        41
  97. #define PROC_CLKOFF        42
  98. #define PROC_LAMPON        43
  99. #define PROC_LAMPOFF        44
  100. #define PROC_SETBELL        45
  101. #define PROC_RINGBELL        46
  102. #define PROC_SETDBLIGHTS    47
  103. #define PROC_DBTEXT        48
  104. #define PROC_KBDPORT        49    
  105. #define PROC_DIALPORT        50
  106.  
  107. #define MEX_GO_DORMANT        70
  108. #define MEX_WAKEUP        71
  109. #define MEX_REINIT        72
  110.  
  111. extern void gl_save_wm_hints(struct portreq *);
  112. extern void gl_restore_wm_hints(struct portreq *);
  113.  
  114. #endif    /* !__GL_GLIPC_H__ */
  115.