INQUIRE WORKSTATION CLASSIFICATION(3P) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
INQUIRE WORKSTATION CLASSIFICATION − inquire the classification of a specified workstation type
SYNOPSIS
C Syntax
void
pinq_ws_class ( type, error_ind, class )
Pinttype;workstation type
Pint∗error_ind;OUT error indicator
Pws_class∗class;OUT workstation class
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE WORKSTATION CLASSIFICATION to determine the classification of a specified workstation type.
C Input Parameters
type
Type of workstation.
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
classA pointer to a Pws_class enumerated variable in which the system returns the workstation class. Values for Pws_class are defined in phigs.h as follows:
typedef enum {
PCLASS_VEC,/∗ Vector Device ∗/
PCLASS_RASTER, /∗ Raster Device ∗/
PCLASS_OTHER /∗ Other Device ∗/
} Pws_class;
Execution
If the inquired information is available, the error indicator is returned as zero and values are returned in the output parameters.
If the inquired information is not available, the values returned in the output parameters are undefined and the error indicator is set to one of the below error numbers to indicate the reason for nonavailability.
Since this is an inquiry function, ERROR HANDLING is not invoked when an error is detected by this function.
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
052Ignoring function, workstation type not recognized by the implementation
051Ignoring function, this information is not yet available for this workstation type; open a workstation of this type and use the specific workstation type
059Ignoring function, the specified workstation does not have output capability (i.e., the workstation category is neither OUTPUT, OUTIN, nor MO)
062Ignoring function, this information is not available for this MO workstation type
SEE ALSO
PHIGS WORKSTATION DESCRIPTION TABLE (7P)
INQUIRE WORKSTATION CATEGORY (3P)
INQUIRE DISPLAY SPACE SIZE (3P)
September 02, 1992