PEXGetDefinedIndices(3) — Subroutines
Name
PEXGetDefinedIndices - Get Lookup Table Defined Indices
Synopsis
Status PEXGetDefinedIndices(Display ∗display, PEXLookupTable table, unsigned long ∗count_return, PEXTableIndex ∗∗indices_return)
Arguments
displayA pointer to a display structure returned by a successful XOpenDisplay call.
tableThe resource identifier of the lookup table.
count_returnReturns the number of returned indices.
indices_return
Returns an array of indices to defined table entries.
Returns
Zero if unsuccessful, non-zero otherwise.
Description
This function returns the defined indices for the specified lookup table. The index of each defined table entry is returned in a list.
PEXlib allocates memory for the returned indices. XFree should be called to deallocate the memory.
Data Structures
typedef XID PEXLookupTable;
typedef unsigned short PEXTableIndex;
Errors
BadPEXLookupTable
The specified lookup table resource identifier is invalid, or the table type is unsupported.
See Also
PEXCreateLookupTable, PEXGetTableInfo