XcupQueryVersion(3CUP) CUP FUNCTION XcupQueryVersion(3CUP)NAMEXcupQueryVersion - Returns major and minor TOG-CUP protocol version
supported by the server
SYNOPSIS
Status XcupQueryVersion ( display, major_version_return, minor_ver‐
sion_return )
Display *display;
int *major_version_return;
int *minor_version_return;
ARGUMENTS
- display
Specifies the connection to the X server
- major_version_return
Returns the major version supported by the server
- minor_version_return
Returns the minor version supported by the server
DESCRIPTIONXcupQueryVersion 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, it returns nonzero. If dpy does not support the TOG-CUP exten‐
sion, or if there was an error during communications with the server,
or if the server and library protocol versions are incompatible, it
returns zero. No other Xcup functions may be called before this func‐
tion. 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 XcupGetReservedCol‐
ormapEntries.
SEE ALSOXcupGetReservedColormapEntries(3Xcup)X v11 Rel. 6.4 11 Aug 1999 XcupQueryVersion(3CUP)