Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pqgsef(3P) — PHIGS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

INQUIRE GENERALIZED STRUCTURE ELEMENT FACILITIES(3P)  —  SUNPHIGS LIBRARY

NAME

INQUIRE GENERALIZED STRUCTURE ELEMENT FACILITIES − inquire list of GSE facilities. 

SYNOPSIS

C Syntax

void
pinqgsefacil ( length, start, error_ind, gse, total_length )
Pintlength;length of application list
Pintstart;starting position
Pint∗error_ind;OUT error indicator
Pgseiddeplst∗gse;OUT list of GSE ids and their dependencies
Pint∗total_length;OUT length of list in PHIGS

FORTRAN Syntax

SUBROUTINE pqgsef ( N, ERRIND, OL, GSEID, WSDIND )
INTEGERNelement of the list of available GSEs
INTEGERERRINDOUT error indicator
INTEGEROLOUT number of available GSEs
INTEGERGSEIDOUT GSE identifier of Nth element
of the list of available GSEs
INTEGERWSDINDOUT workstation dependency
indicator of Nth element of the list
of available GSEs (PWKI, PWKD)

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 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 Pgseiddeplst in which the system returns the portion of the list of GSE identifiers from the PHIGS description table, starting with start.  Pgseiddeplst is defined in phigs.h as follows:

typedef struct {
Pintnumber;/∗ number of identifiers/dependency element ∗/
Pgseiddep∗id_depend;/∗ list ∗/
} Pgseiddeplst;

The pointer gse->id_depend must be initialized to an array of length Pgseiddep elements, defined as:

typedef struct {
Pintid;/∗ GSE identifier ∗/
Pwsdepindicator;/∗ WS independent/dependent indicator ∗/
} Pgseiddep;

Pwsdep is an enumerated type, with values:

PWORKSTATION_INDEPENDENTWorkstation independent
PWORKSTATION_DEPENDENTWorkstation 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. 

FORTRAN Input Parameters

NGet the Nth element from the list. 

FORTRAN Output Parameters

ERRIND
The error number of any error detected by this function.

OLThe total length of the list of available GSEs. 

GSEID
The GSE identifier of the Nth element in the list of available GSEs. 

WSDIND
The workstation dependency indicator of the Nth element in the list of available GSEs, one of:

PWKIWorkstation independent
PWKDWorkstation dependent

ERRORS

002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)

021Ignoring function, this information is unavailable for this workstation type

022Ignoring function, workstation type is not recognized by the implementation

023Ignoring function, specified workstation type does not exist

039Ignoring function, specified workstation is not of category OUTPUT or OUTIN

2201C: Start index is out of range

SEE ALSO

GENERALIZED STRUCTURE ELEMENT (3P)
INQUIRE LIST OF AVAILABLE GENERALIZED STRUCTURE ELEMENTS (3P)
PHIGS WORKSTATION DESCRIPTION TABLE (7P)

Sun Release 4.0  —  Last change: 2 August 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026