1XcupQueryVersion(3) X FUNCTIONS XcupQueryVersion(3)
2
3
4
6 XcupQueryVersion - Returns TOG-CUP protocol version supported by the X
7 server
8
10 cc [ flag ... ] file ... -lXext [ library ... ]
11 #include <X11/extensions/Xcup.h>
12
13 Status XcupQueryVersion(Display *display,
14 int *major_version_return, int *minor_version_return);
15
17 display Specifies the connection to the X server
18
19 major_version_return
20 Returns the major version supported by the server
21
22 minor_version_return
23 Returns the minor version supported by the server
24
26 XcupQueryVersion sets major_version_return and minor_version_return to
27 the major and minor TOG-CUP protocol version supported by the server.
28 If the TOG-CUP library is compatible with the version returned by the
29 server, it returns nonzero. If the server does not support the TOG-CUP
30 extension, or if there was an error during communications with the
31 server, or if the server and library protocol versions are incompati‐
32 ble, it returns zero. No other Xcup functions may be called before this
33 function. If a client violates this rule, the effects of all subsequent
34 Xcup calls that it makes are undefined.
35
36 To get the list of reserved colormap entries, use XcupGetReservedCol‐
37 ormapEntries.
38
39 To allocate one or more read-only color cells with RGB values, use
40 XcupStoreColors.
41
43 XcupGetReservedColormapEntries(3Xext), XcupStoreColors(3Xext),
44 Colormap Utilization Policy and Extension
45
46
47
48X Version 11 libXext 1.3.3 XcupQueryVersion(3)