| 1 | 
gregl | 
3.1 | 
/* Copyright (c) 1997 Silicon Graphics, Inc. */ | 
| 2 | 
  | 
  | 
 | 
| 3 | 
  | 
  | 
/* SCCSid "$SunId$ SGI" */ | 
| 4 | 
  | 
  | 
 | 
| 5 | 
  | 
  | 
/* | 
| 6 | 
  | 
  | 
 * Header for holodeck display drivers. | 
| 7 | 
  | 
  | 
 * Include after "rholo.h". | 
| 8 | 
  | 
  | 
 */ | 
| 9 | 
  | 
  | 
 | 
| 10 | 
  | 
  | 
                                /* display requests */ | 
| 11 | 
  | 
  | 
#define DR_NEWSET       1               /* new bundle set */ | 
| 12 | 
  | 
  | 
#define DR_BUNDLE       2               /* bundle request */ | 
| 13 | 
  | 
  | 
#define DR_ATTEN        3               /* request for attention */ | 
| 14 | 
  | 
  | 
#define DR_SHUTDOWN     4               /* shutdown request */ | 
| 15 | 
  | 
  | 
#define DR_ADDSET       5               /* add to current set */ | 
| 16 | 
  | 
  | 
#define DR_DELSET       6               /* delete from current set */ | 
| 17 | 
  | 
  | 
 | 
| 18 | 
  | 
  | 
                                /* server responses */ | 
| 19 | 
  | 
  | 
#define DS_IMMSET       1               /* immediate bundle set */ | 
| 20 | 
  | 
  | 
#define DS_BUNDLE       2               /* computed bundle */ | 
| 21 | 
  | 
  | 
#define DS_ACKNOW       3               /* acknowledge request for attention */ | 
| 22 | 
  | 
  | 
#define DS_SHUTDOWN     4               /* end process and close connection */ | 
| 23 | 
  | 
  | 
#define DS_ADDHOLO      5               /* register new holodeck */ | 
| 24 | 
  | 
  | 
 | 
| 25 | 
  | 
  | 
/* | 
| 26 | 
  | 
  | 
 * Normally, the server channel has priority, with the display process | 
| 27 | 
  | 
  | 
 * checking it frequently for new data.  However, when the display process | 
| 28 | 
  | 
  | 
 * makes a request for attention (DR_ATTEN), the server will finish its | 
| 29 | 
  | 
  | 
 * current operations and flush its buffers, sending an acknowledge | 
| 30 | 
  | 
  | 
 * message (DS_ACKNOW) when it's done.  This then allows the | 
| 31 | 
  | 
  | 
 * display process to send a long request to the holodeck server. | 
| 32 | 
  | 
  | 
 * Priority returns to normal after the following request. | 
| 33 | 
  | 
  | 
 */ | 
| 34 | 
  | 
  | 
 | 
| 35 | 
  | 
  | 
typedef struct { | 
| 36 | 
  | 
  | 
        int2    type;           /* message type */ | 
| 37 | 
  | 
  | 
        int4    nbytes;         /* number of additional bytes */ | 
| 38 | 
  | 
  | 
} MSGHEAD;              /* message head */ | 
| 39 | 
  | 
  | 
 | 
| 40 | 
  | 
  | 
        /* display request message bodies */ | 
| 41 | 
  | 
  | 
 | 
| 42 | 
  | 
  | 
                        /* DR_NEWSET */ | 
| 43 | 
  | 
  | 
/* no body */ | 
| 44 | 
  | 
  | 
                        /* DR_BUNDLE */ | 
| 45 | 
  | 
  | 
#define BUNDLE_REQ      PACKHEAD | 
| 46 | 
  | 
  | 
                        /* DR_ENDSET */ | 
| 47 | 
  | 
  | 
/* no body */ | 
| 48 | 
  | 
  | 
                        /* DR_SHUTDOWN */ | 
| 49 | 
  | 
  | 
/* no body */ | 
| 50 | 
  | 
  | 
                        /* DR_ADDSET */ | 
| 51 | 
  | 
  | 
/* no body */ | 
| 52 | 
  | 
  | 
 | 
| 53 | 
  | 
  | 
        /* server response message bodies */ | 
| 54 | 
  | 
  | 
 | 
| 55 | 
  | 
  | 
                        /* DS_STARTIMM */ | 
| 56 | 
  | 
  | 
/* no body */ | 
| 57 | 
  | 
  | 
                        /* DS_BUNDLE */ | 
| 58 | 
  | 
  | 
#define BUNDLE_RES      PACKHEAD        /* extendable */ | 
| 59 | 
  | 
  | 
                        /* DS_ENDIMM */ | 
| 60 | 
  | 
  | 
/* no body */ | 
| 61 | 
  | 
  | 
                        /* DS_SHUTDOWN */ | 
| 62 | 
  | 
  | 
/* no body */ | 
| 63 | 
  | 
  | 
                        /* DS_ADDHOLO */ | 
| 64 | 
  | 
  | 
#define HOLO_RES        HDGRID | 
| 65 | 
  | 
  | 
                        /* DS_ACKNOW */ | 
| 66 | 
  | 
  | 
/* no body */ |