INQUIRE GENERALIZED STRUCTURE ELEMENT FACILITIES(3P) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
INQUIRE GENERALIZED STRUCTURE ELEMENT FACILITIES − inquire list of GSE facilities
SYNOPSIS
C Syntax
void
pinq_gse_facs ( length, start, error_ind, gse, total_length )
Pintlength;length of application list
Pintstart;starting position
Pint∗error_ind;OUT error indicator
Pgse_id_dep_list∗gse; OUT list of GSE ids and their dependencies
Pint∗total_length;OUT length of list in PHIGS
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE GENERALIZED STRUCTURE ELEMENT FACILITIES to obtain a list of the GSE identifiers supported, and whether each is workstation-independent (i.e. supported on all workstations) or workstation-dependent (i.e. supported on some, but not all workstations).
C Input Parameters
lengthThe number of elements for which memory is allocated in the output parameter gse. 0 may be specified, in order to get the total length of the list.
startStarting position in the list at which to begin the inquiry.
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
gseA pointer to a Pgse_id_dep_list in which the system returns the portion of the list of GSE identifiers from the PHIGS description table, starting with start. Pgse_id_dep_list is defined in phigs.h as follows:
typedef struct {
Pintnum_id_facs;/∗ number of identifiers/dependency element ∗/
Pgse_id_dep∗id_facs;/∗ list of GSE facilities ∗/
} Pgse_id_dep_list;
The pointer gse→id_facs must be initialized to an array of length Pgse_id_dep elements, defined as:
typedef struct {
Pintid;/∗ GSE identifier ∗/
Pws_dep_indind;/∗ WS independent/dependent indicator ∗/
} Pgse_id_dep;
Pws_dep_ind is an enumerated type, with values:
PWS_INDEPWorkstation independent
PWS_DEPWorkstation dependent
total_length
A pointer to an integer in which to return the total length of the list. This is the value required for length if all the items in the list are to be returned.
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
SEE ALSO
GENERALIZED STRUCTURE ELEMENT (3P)
INQUIRE LIST OF AVAILABLE GENERALIZED STRUCTURE ELEMENTS (3P)
PHIGS WORKSTATION DESCRIPTION TABLE (7P)
September 02, 1992