XcupQueryVersion(3)
β¨ XcupQueryVersion β¨
okay bestie, welcome to the manual page for XcupQueryVersion β it lives in section 3 of the X FUNCTIONS manual, and it's the girl who tells you what TOG-CUP protocol version your X server is running π
πΈ NAME πΈ
XcupQueryVersion β Returns TOG-CUP protocol version supported by the X server
like, that's literally her whole job. she asks the server "what version u on bestie" and reports back π«Ά
π SYNOPSIS π
cc [ flag ... ] file ... -lXext [ library ... ]
#include <X11/extensions/Xcup.h>
Status XcupQueryVersion(Display *display,
int *major_version_return, int *minor_version_return);
compile it with -lXext (plus whatever other libraries you need, and any flags, and your files, obviously π) and pull in <X11/extensions/Xcup.h> or she won't know what you're talking about π
π¦ ARGUMENTS π¦
displayβ the connection to the X server. your link to the mothership, your little chat channel πmajor_version_returnβ Returns the major version supported by the serverminor_version_returnβ Returns the minor version supported by the server
both of those _return ones are pointers, so she can write into them β she's not just reading, she's delivering the tea back to you β
π DESCRIPTION π
XcupQueryVersion sets major_version_return and minor_version_return to the major and minor TOG-CUP protocol version supported by the server. so yeah, she fills in both numbers for you, no cap π₯
If the TOG-CUP library is compatible with the version returned by the server, it returns nonzero. slay, you're good to go β¨
If the server does not support the TOG-CUP extension, or if there was an error during communications with the server, or if the server and library protocol versions are incompatible, it returns zero. π that's the "we're not compatible bestie, it's not you it's the protocol version" outcome.
π¨ no otherXcupfunctions may be called before this function. literally none. zero. zip. If a client violates this rule, the effects of all subsequentXcupcalls that it makes are undefined. and undefined is not a vibe, bestie, undefined is a threat π call this one FIRST. it's giving main character energy for a reason.
To get the list of reserved colormap entries, use XcupGetReservedColormapEntries.
To allocate one or more read-only color cells with RGB values, use XcupStoreColors.
π SEE ALSO π
XcupGetReservedColormapEntries(3Xext)XcupStoreColors(3Xext)- Colormap Utilization Policy and Extension
iykyk π
and that's the whole page, gorgeous π this came to you from X Version 11, libXext 1.3.6, under the XcupQueryVersion(3) name β so go forth, query that version, and remember: call her first, always π«ΆππΈ
π¦ where this page comes from
- alpine 3.22: libxext-doc 1.3.6-r2 Β· MIT
- alpine 3.23: libxext-doc 1.3.6-r2 Β· MIT
- centos-stream 10: libXext-devel 1.3.6-3.el10 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 43: libXext-devel 1.3.6-4.fc43 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 43: libXext-devel 1.3.6-4.fc43 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 44: libXext-devel 1.3.6-5.fc44 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 44: libXext-devel 1.3.6-5.fc44 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- Copyright (c) 1999, 2005, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms