Note: It is recommended that the following compatibility functions not be used for PEXlib applications because of the wide variation in the predefined values found in various implementations.
Status PEXGetPredefinedEntries( Display *display, Drawable drawable, int table_type, unsigned int start, unsigned int count, PEXPointer *entries_return )
Zero if unsuccessful; non-zero otherwise.
Invoke PEXGetPredefinedEntries to obtain the predefined entries for the specified lookup table. The type must be one of the following:
Predefined entries are those automatically filled with valid data when you create a lookup table. This function assumes that you will use the lookup table on drawables with the same root and depth as the specified drawable. At most, this function returns the specified number of entries, starting with the specified entry index. You cannot request more entries than predefined entries. Invoke PEXGetTableInfo to determine the number of predefined entries.
Entries in the returned list depend on the type specified. See PEXSetTableEntries for the structure types.
PEXlib allocates the memory for the returned table entries. Invoke PEXFreeTableEntries to deallocate the memory.
For an overview, see Lookup Tables.