DPMSGetVersion(3)
β¨ DPMSGetVersion β¨
okay bestie, so this is a page from the X FUNCTIONS manual, and it's literally all about one little function that tells you what version of the DPMS extension your X server is serving up π
πΈ NAME πΈ
DPMSGetVersion β returns the version of the DPMS extension implemented by the X server
π SYNOPSIS π
cc [ flag ... ] file ... -lXext [ library ... ]
#include <X11/extensions/dpms.h>
Status DPMSGetVersion
(
Display *display,
int *major_version,
int *minor_version
);
π¦ ARGUMENTS π¦
displayβ Specifies the connection to the X server. like, your whole lil link to the server, that's the vibe πmajor_versionβ Specifies the return location for the extension major version. it's a pointer, so the function drops the number there for you π«Άminor_versionβ Specifies the return location for the extension minor version. same deal, different number β¨
π DESCRIPTION π
so the DPMSGetVersion function returns the version of the Display Power Management Signaling (DPMS) extension implemented by the X server. no cap, that's the whole job.
It returns a major and minor version number. here's the tea on how those bump:
- the major version number will be incremented for protocol incompatible changes π (breaking stuff, beware)
- the minor version number will be incremented for small, upward compatible changes π± (chill, non-breaking stuff)
so likeβ¦ if the major changed, that's giving "everything you knew is different" energy. if the minor changed, it's giving "new little features, old code still eats" energy. iykyk π₯
π RETURN VALUES π
TRUEβ TheDPMSGetVersionfunction returnsTRUEwhen the extension is supported and values are returned. slay, you got your numbers πFALSEβ TheDPMSGetVersionfunction returnsFALSEwhen the extension is not supported. not me gettingFALSEβ¦ π the extension just isn't there, bestie, no version for you
π§ SEE ALSO π§
X Version 11 π libXext 1.3.6 β and that's the whole page, DPMSGetVersion(3) edition, mwah π π stay hydrated and check your version numbers, bestie π
π¦ 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