/* "@(#)cgidefs.h	5.1	6/9/86" */

	/* CGI binary encoding	*/
	/* File: cgidefs.h	*/
	/* Last Update: 06/24/85 */

#define OpENCODE(class,id) ((class << 12) | (id << 5))
#define OpCLASSMASK		0xF000
#define OpIDMASK		0x0FE0
#define OpLENGTHMASK		0x001F
#define OpLONG			0x001F
#define OpNOTLASTPARTITION	0x8000
#define OpLONGLENGTHMASK	0x7FFF

#define	OpInitialize		OpENCODE(0,1)	/* not standardized yet */
#define	OpTerminate		OpENCODE(0,2)	/* not standardized yet */
#define	OpVDCType		OpENCODE(1,3)
#define	OpIntegerPrecision	OpENCODE(1,4)
#define	OpRealPrecision		OpENCODE(1,5)
#define	OpIndexPrecision	OpENCODE(1,6)
#define	OpColourPrecision	OpENCODE(1,7)
#define	OpColourIndexPrecision	OpENCODE(1,8)
#define	OpFontList		OpENCODE(1,12)
#define	OpScalingMode		OpENCODE(2,1)
#define	OpColourSelectionMode	OpENCODE(2,2)
#define	OpLineWidthSpecificationMode		OpENCODE(2,3)
#define	OpMarkerSizeSpecificationMode		OpENCODE(2,4)
#define	OpPerimeterWidthSpecificationMode	OpENCODE(2,5)
#define	OpVDCExtent		OpENCODE(2,6)
#define	OpVDCIntegerPrecision	OpENCODE(3,1)
#define	OpVDCRealPrecision	OpENCODE(3,2)
#define	OpAuxiliaryColour	OpENCODE(3,3)
#define	OpClipRectangle		OpENCODE(3,4)
#define	OpClipIndicator		OpENCODE(3,5)
#define	OpResetToDefaults	OpENCODE(c,i)
#define	OpClearViewSurface	OpENCODE(c,i)
#define	OpClearControl		OpENCODE(c,i)
#define	OpPolyline		OpENCODE(4,1)
#define	OpDisjointPolyline	OpENCODE(4,2)
#define	OpPolymarker		OpENCODE(4,3)
#define	OpText			OpENCODE(4,4)
#define	OpRestrictedText	OpENCODE(4,5)
#define	OpAppendText		OpENCODE(4,6)
#define	OpPolygon		OpENCODE(4,7)
#define	OpPolygonSet		OpENCODE(4,8)
#define	OpCellArray		OpENCODE(4,9)
#define	OpGDP			OpENCODE(4,10)
#define	OpRectangle		OpENCODE(4,11)
#define	OpCircle		OpENCODE(4,12)
#define	OpCircularArc3Point	OpENCODE(4,13)
#define	OpCircularArc3PointClose	OpENCODE(4,14)
#define	OpCircularArcCenter		OpENCODE(4,15)
#define	OpCircularArcCenterClose	OpENCODE(4,16)
#define	OpEllipse		OpENCODE(4,17)
#define	OpEllipticalArc		OpENCODE(4,18)
#define	OpEllipticalArcClose	OpENCODE(4,19)
#define	OpLineBundleIndex	OpENCODE(5,1)
#define	OpLineType		OpENCODE(5,2)
#define	OpLineWidth		OpENCODE(5,3)
#define	OpLineColour		OpENCODE(5,4)
#define	OpMarkerBundleIndex	OpENCODE(5,5)
#define	OpMarkerType		OpENCODE(5,6)
#define	OpMarkerSize		OpENCODE(5,7)
#define	OpMarkerColour		OpENCODE(5,8)
#define	OpTextBundleIndex	OpENCODE(5,9)
#define	OpTextFontIndex		OpENCODE(5,10)
#define	OpTextPrecision		OpENCODE(5,11)
#define	OpCharacterExpansionFactor	OpENCODE(5,12)
#define	OpCharacterSpacing	OpENCODE(5,13)
#define	OpTextColour		OpENCODE(5,14)
#define	OpCharacterHeight	OpENCODE(5,15)
#define	OpCharacterOrientation	OpENCODE(5,16)
#define	OpTextPath		OpENCODE(5,17)
#define	OpTextAlignment		OpENCODE(5,18)
#define	OpFillBundleIndex	OpENCODE(5,21)
#define	OpInteriorStyle		OpENCODE(5,22)
#define	OpFillColour		OpENCODE(5,23)
#define	OpHatchIndex		OpENCODE(5,24)
#define	OpPatternIndex		OpENCODE(5,25)
#define	OpPerimeterType		OpENCODE(5,26)
#define	OpPerimeterWidth	OpENCODE(5,27)
#define	OpPerimeterColour	OpENCODE(5,28)
#define	OpPerimeterVisibility	OpENCODE(5,29)
#define	OpFillReferencePoint	OpENCODE(5,30)
#define	OpPatternTable		OpENCODE(5,31)
#define	OpPatternSize		OpENCODE(5,32)
#define	OpColourTable		OpENCODE(5,33)
#define	OpAspectSourceFlags	OpENCODE(5,34)
#define	OpEscape		OpENCODE(6,1)
#define	OpInitialiseLocator	OpENCODE(c,i)
#define	OpInitialiseChoice	OpENCODE(c,i)
#define	OpInitialiseString	OpENCODE(c,i)
#define	OpSetLocatorMode	OpENCODE(c,i)
#define	OpSetChoiceMode		OpENCODE(c,i)
#define	OpSetStringMode		OpENCODE(c,i)
#define	OpSampleLocator		OpENCODE(c,i)
#define	OpSampleChoice		OpENCODE(c,i)
#define	OpSampleString		OpENCODE(c,i)
#define	OpRequestLocator	OpENCODE(c,i)
#define	OpRequestChoice		OpENCODE(c,i)
#define	OpRequestString		OpENCODE(c,i)
#define	OpAwaitEvent		OpENCODE(c,i)
#define	OpGetLocator		OpENCODE(c,i)
#define	OpGetChoice		OpENCODE(c,i)
#define	OpGetString		OpENCODE(c,i)
#define	OpFlushEventQueue	OpENCODE(c,i)
#define	OpInqPhysicalCoordinateSystem	OpENCODE(c,i)
#define	OpInqInputCapability		OpENCODE(c,i)
#define	OpInqColourSelectionMode	OpENCODE(c,i)
#define	OpInqColourPrecision	OpENCODE(c,i)
#define	OpInqEventQueue		OpENCODE(c,i)
#define	OpInqColourTable	OpENCODE(c,i)
#define	OpInqPixelArray		OpENCODE(c,i)
#define	OpInqTextExtent		OpENCODE(c,i)
