XGETEXTENSIONVERSION(3)
π XGETEXTENSIONVERSION β okay bestie, let's talk β¨
So there's this lil manual page, XGETEXTENSIONVERSION(3), and it's giving input extension version query energy. Yes, section 3. Library functions. We're in the big leagues now, babe. π
πΈ NAME πΈ
XGetExtensionVersion β ask the input extension what version it's on, bestie. That's literally it. That's the whole job. π
β¨ SYNOPSIS β¨
okay so first you gotta bring in the header, no cap:
#include <X11/extensions/XInput.h>
and then the actual call, which looks like this:
XExtensionVersion *XGetExtensionVersion( Display *display,
char *name);
the arguments π«Ά
displayβ the connection to the X server. your whole lil link to the server, that's her. πnameβ the extension you're asking about. and listen, the input extension name is defined in the header fileXI.h. so go look there if you're lost, i gotchu. πΈ
π DESCRIPTION π
ok so real talk for a sec. theXGetExtensionVersionrequest is deprecated and should not be used in XI2 applications. like, at all. and if a client issues anXGetExtensionVersionrequest, they will not be able to use XI2 features. that's the trade, bestie. no takebacks. π
The XGetExtensionVersion request queries the version of the input extension, and returns an XExtensionVersion structure. this structure contains a major_version and minor_version number, and you can compare those against constants defined in XI.h. iconic. π₯
here's the vibe: support for extra protocol requests that got added to the input extension after its initial release is indicated by a version number corresponding to the added requests. and every version contains all the protocol requests contained by previous versions. so like, nothing gets dropped, she just grows. main character energy fr fr. π
and pookie, please β you should use XFree to free the XExtensionVersion structure. don't leave her hanging. π§
π¦ STRUCTURES π¦
This request returns an XExtensionVersion structure. say it with me:
typedef struct {
int present;
short major_version;
short minor_version;
} XExtensionVersion;
present, major_version, minor_version. three lil fields, one big job. slay. π
β¨
and that's the whole page, bestie!! this was XGetExtensionVersion(3), from the XGETEXTENSIONVERSION(3) manual, dated 05/18/2026. go free your structs, hydrate, and don't use deprecated requests in your XI2 apps. mwah. π«Άππ
π¦ where this page comes from
- fedora 44: libXi-devel 1.8.3-1.fc44 Β· MIT-open-group AND SMLNJ AND MIT
- fedora 44: libXi-devel 1.8.3-1.fc44 Β· MIT-open-group AND SMLNJ AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms