INQUIRE WORKSTATION CATEGORY(3P) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
INQUIRE WORKSTATION CATEGORY − inquire the category of a specified workstation type
SYNOPSIS
C Syntax
void
pinq_ws_cat ( type, error_ind, category )
Pinttype;workstation type
Pint∗error_ind;OUT error indicator
Pws_cat∗category;OUT workstation category
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE WORKSTATION CATEGORY to determine the category 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.
category
A pointer to a Pws_cat enumerated variable, in which the workstation category is returned. Values for Pws_cat are defined in phigs.h as follows:
typedef enum {
PCAT_OUT,/∗ Output Only ∗/
PCAT_IN,/∗ Input Only ∗/
PCAT_OUTIN,/∗ Output and Input ∗/
PCAT_MO,/∗ Metafile Output ∗/
PCAT_MI/∗ Metafile Input ∗/
} Pws_cat;
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
SEE ALSO
PHIGS WORKSTATION DESCRIPTION TABLE (7P)
OPEN WORKSTATION (3P)
INQUIRE WORKSTATION CLASSIFICATION (3P)
September 02, 1992