X FUNCTIONS XcupQueryVersion(3xext)
NAME
XcupQueryVersion - Returns TOG-CUP protocol version sup-
ported by the X serverSYNOPSIS
cc [ flag... ] file... -lXext [ library... ]
cc [ flag ... ] file ... -lXext [ library ... ]
#include
Status XcupQueryVersion(Display *display,
int *major_version_return, int *minor_version_return);
ARGUMENTS display Specifies the connection to the X servermajor_version_return
Returns the major version supported by the serverminor_version_return
Returns the minor version supported by the serverDESCRIPTION
XcupQueryVersion sets major_version_return and
minor_version_return to the major and minor TOG-CUP protocol
version supported by the server. If the TOG-CUP library is
compatible with the version returned by the server, itreturns nonzero. If the server does not support the TOG-CUP
extension, or if there was an error during communicationswith the server, or if the server and library protocol ver-
sions are incompatible, it returns zero. No other Xcup func-
tions may be called before this function. If a client violates this rule, the effects of all subsequent Xcup calls that it makes are undefined.To get the list of reserved colormap entries, use Xcup-
GetReservedColormapEntries.To allocate one or more read-only color cells with RGB
values, use XcupStoreColors.SEE ALSO
XcupGetReservedColormapEntries(3Xext), XcupStoreColors(3Xext), Colormap Utilization Policy and ExtensionATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes: X Version 11 Last change: libXext 1.1.2 1X FUNCTIONS XcupQueryVersion(3xext)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libxext ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libXext 1.1.2 2