DMXQueryExtension(3)

πŸ“¦
version 1.1.5 Β· 2 versions
, in epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’… DMXQueryExtension(3) πŸ’…

bestie welcome to the libdmx manual page for DMXQueryExtension β€” it's a Library Functions Manual situation, and honestly? she's short, she's sweet, she's the vibe check of the whole DMX world 🌸


✨ NAME ✨

DMXQueryExtension β€” determine if DMX is available πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <X11/extensions/dmxext.h>

Bool DMXQueryExtension(Display *dpy,
                       int *event_basep,
                       int *error_basep);

okay so you're pulling in <X11/extensions/dmxext.h> and then you call her with a Display *dpy and two lil int * pointers, event_basep and error_basep, and she hands you back a Bool. no cap, that's the whole signature πŸ’–


🌈 DESCRIPTION 🌈

So DMXQueryExtension() literally determines if the DMX protocol extension is available πŸ‘‘

And when is it available, you ask? It will be available if the server is an Xdmx(1) server. That's it. That's the whole condition. If your server is Xdmx(1), congrats bestie, DMX is in the building 🫢 If it's not... well. πŸ™ˆ

Think of it as the "are you even a DMX server" vibe check β€” one call, one answer, main character energy only ⭐


πŸ’€ RETURN VALUE πŸ’€

Here's the tea, and it's a two-branch situation:

  • If the DMX protocol extension is available, then event_basep and error_basep will be set to the event and error bases, respectively, and True will be returned ✨
  • Otherwise, False will be returned 😭
so like, if you get False, don't go reading whatever's in those two ints, bestie β€” she only fills them in on the True path πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Go be nosy, she wants you to:


and that's the page, periodt πŸ’œ

This one comes from X Version 11, libdmx 1.1.5, and it's filed under DMXQueryExtension(3) β€” tysm for reading, mwah πŸŽ€πŸ’–βœ¨