XdbeQueryExtension(3)
π XdbeQueryExtension(3) β the X FUNCTIONS girlies know π
okay bestie, welcome to the XdbeQueryExtension page, from the X FUNCTIONS corner of the manual-verse β¨ this is your lil' vibe-check function β it tells you what DBE protocol version the server is running before you go doing literally anything else. π¦
β¨ NAME β¨
XdbeQueryExtension β returns the version of DBE supported by the server. periodt. π
πΈ SYNOPSIS πΈ
#include <X11/extensions/Xdbe.h>
Status XdbeQueryExtension(
Display *dpy,
int *major_version_return,
int *minor_version_return)
like. look at her. three args, one Status, so clean. π
π DESCRIPTION π
so what does she actually do? she sets major_version_return and minor_version_return to the major and minor DBE protocol version supported by the server. that's the whole assignment and she ate. π₯
if the DBE library is compatible with the version returned by the server, this function returns non-zero. slay. π
but bestie, listen β she returns zero if any of these happen:
dpydoes not support the DBE extension- there was an error during communication with the server
- the server and library protocol versions are incompatible
π¨ THE RULE, and I cannot stress this enough: no other Xdbe functions may be called before this function. like, none of them. if a client violates this rule, the effects of all subsequent Xdbe calls that it makes are undefined. undefined!! π not "probably fine", not "eh it'll work out" β straight up undefined behaviour. so do the vibe check first, always. π«Ά
π¦ SEE ALSO π¦
go read these next, i'm obsessed with all of them:
DBEXdbeAllocateBackBufferName()XdbeBeginIdiom()XdbeDeallocateBackBufferName()XdbeEndIdiom()XdbeFreeVisualInfo()XdbeGetBackBufferAttributes()XdbeGetVisualInfo()XdbeSwapBuffers()
and that's the whole page, no cap π this one's from X Version 11, libXext 1.3.6, and yeah it's literally titled XdbeQueryExtension(3) β go query that extension, bestie, you got this πβ¨π
π¦ 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) 1995 Hewlett-Packard Company
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms