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 β€” The DPMSGetVersion function returns TRUE when the extension is supported and values are returned. slay, you got your numbers πŸ’–
  • FALSE β€” The DPMSGetVersion function returns FALSE when the extension is not supported. not me getting FALSE… πŸ’€ 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