\"##
.\" $XConsortium: p162,v 5.2 94/04/17 20:56:19 rws Exp $
.\"##
.\"## 
$XMCOPY
.\"## Copyright (c) 1990, 1991 by Sun Microsystems, Inc. 
.\"## 
.\"##                         All Rights Reserved
.\"## 
.\"## Permission to use, copy, modify, and distribute this software and its 
.\"## documentation for any purpose and without fee is hereby granted, 
.\"## provided that the above copyright notice appear in all copies and that
.\"## both that copyright notice and this permission notice appear in 
.\"## supporting documentation, and that the name of Sun Microsystems,
.\"## not be used in advertising or publicity 
.\"## pertaining to distribution of the software without specific, written 
.\"## prior permission.  
.\"## 
.\"## SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
.\"## INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
.\"## EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
.\"## CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
.\"## USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
.\"## OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\"## PERFORMANCE OF THIS SOFTWARE.
.TH "INQUIRE LIST OF POLYMARKER INDICES" 3P "29 February 1991"
.SH NAME
INQUIRE LIST OF POLYMARKER INDICES\- inquire list of polymarker indices
defined on a workstation
.SH SYNOPSIS
.SS C Syntax
.ft B
.ta 1.25i 3i
.nf
void
pinq_list_marker_inds ( ws, length, start, error_ind, indices, total_length )
Pint	ws;	\fIworkstation identifier\fP
Pint	length;	\fIlength of application list\fP
Pint	start;	\fIstarting position\fP
Pint	*error_ind;	\fIOUT error indicator\fP
Pint_list	*indices;	\fIOUT list of polymarker indices\fP
Pint	*total_length;	\fIOUT length of list in PHIGS\fP
.fi
.ft R
.SS Required PHIGS Operating States
(PHOP, WSOP, *, *)
.SH DESCRIPTION
.SS Purpose
Use \s-2INQUIRE LIST OF POLYMARKER INDICES\s+2 to obtain a list of the
currently defined polymarker indices on the specified workstation.  
The defined polymarker table indices are \fIconceptually sparse\fP;  
a \s-2PHIGS\s+2
implementation could allow definition of \fIn\fP polymarker representations
with arbitrary indices.
However, polymarker indices are
\fInonsparse\fP in \s-2PEX-SI\s0;  the \fIn\fP polymarker representations
necessarily have indices 1 through \fIn\fP.
.SS C Input Parameters
.IP \fIws\fP
The \fIworkstation identifier\fP of the workstation
whose polymarker indices are to be returned.
.IP \fIlength\fP
Number of items for which the application has allocated memory
in the output parameter \fIindices\fP.
0 can be specified, in order to get the total length of the list.
.IP \fIstart\fP
Starting position in the list at which to begin the inquiry.
.SS C Output Parameters
.IP \fIerror_ind\fP
A pointer to the location to store the error number of any error
detected by this function.
.IP \fIindices\fP
A pointer to a Pint_list structure
in which the system returns the portion of the
list of currently defined polymarker indices,
starting at the entry specified with \fIstart\fP.
.IP
Pint_list is defined in phigs.h as follows:
.nf
.ta .5i +\w'Pint   'u +\w'num_ints;    'u
.sp .4
typedef struct {
.sp .2
	Pint   num_ints;	/* number of Pints in list */
	Pint   *ints;	/* list of integers */
.sp .2
} Pint_list;
.fi
.sp .5
The pointer \fIindices\fR\(->\fIints\fP must be initialized to an array of
\fIlength\fP \fIPint\fP elements.
.IP \fItotal_length\fP
A pointer to an integer in which to return the total length of the list.
This is the value required for \fIlength\fP if all the items in the
list are to be returned.
.SH ERRORS
.IP 003
Ignoring function, function requires state 
(\s-2PHOP\s+2, \s-2WSOP\s+2, \s-2*\s+2, \s-2*\s+2)
.IP 054
Ignoring function, the specified workstation is not open
.IP 059
Ignoring function, the specified workstation does not have output capability
(in other words, the workstation category is neither \s-2OUTPUT\s+2,
\s-2OUTIN\s+2, nor \s-2MO\s+2)
.SH SEE ALSO
.nf
.IP
.ta 0.5i
.SM "SET POLYMARKER REPRESENTATION (3P)"
.SM "INQUIRE POLYMARKER REPRESENTATION (3P)"
.SM "INQUIRE PREDEFINED POLYMARKER REPRESENTATION (3P)"
.fi