DPMSQueryExtension(3)
π DPMSQueryExtension(3) π
okay bestie, welcome to DPMSQueryExtension from the X FUNCTIONS corner of the universe π this one's a little detective mission and it's honestly so iconic of it
β¨ NAME β¨
DPMSQueryExtension β the lil function that goes and asks the X server whether the DPMS Extension is even a thing around here π
π SYNOPSIS π
cc [ flag ... ] file ... -lXext [ library ... ]
#include <X11/extensions/dpms.h>
Bool DPMSQueryExtension
(
Display *display,
int *event_base,
int *error_base
);
like, yes, that's the whole vibe. compile it, link it with -lXext, include the header, boom π
π«Ά ARGUMENTS π«Ά
displayβ the connection to the X server, aka your lil phone line to the server, the whole relationship frevent_baseβ where you want the assigned base event dropped off. it's a return location, so hand it a pointer and it'll fill it in π¬error_baseβ same deal, but for the assigned base error. also a return location, also needs a pointer π
π¦ DESCRIPTION π¦
so the way that DPMSQueryExtension works is: it slides into the X server's DMs and asks, hey, is the Display Power Management Signaling (DPMS) Extension available? π¬
if the extension is available, it returns TRUE, and event_base and error_base get set to the base event and error numbers, respectively. slay β¨
otherwise the return value is FALSE, and β and this is the important part β the values of event_base and error_base are undefined. like, do not trust them, do not read them, do not make plans with them π
π RETURN VALUES π
TRUEβDPMSQueryExtensionreturnsTRUEif the extension is available, andevent_baseanderror_baseare set to the base event number and base error number for the extension, respectively. bestie ate and left no crumbs πFALSEβDPMSQueryExtensionreturnsFALSEif extension is not available, and the values ofevent_baseanderror_baseare undefined. no cap, undefined is undefined, don't go poking at them π
πΈ SEE ALSO πΈ
DPMSGetVersion(3)β go read that one next, iykyk
okay that's the whole page, you understood it perfectly, main character energy π§ and a cute lil sign-off for the credits: this one's from X Version 11, shipping with libXext 1.3.6, filed under DPMSQueryExtension(3) π periodt.
π¦ 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