XvQueryExtension(3)

πŸ“¦
version 1.0.13 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– XvQueryExtension(3) πŸ’–

okay bestie, welcome to the libXv Functions corner of the man page universe ✨ this one is called XvQueryExtension, and it's your lil' backstage pass to the Xv video extension β€” like, "hey girl, what version are you, what's your revision, and where do your requests/events/errors live?" that whole vibe πŸ’…


🌸 NAME 🌸

XvQueryExtension β€” return version and release of extension πŸŽ€


✨ SYNOPSIS ✨

#include <X11/extensions/Xvlib.h>

int XvQueryExtension(Display *dpy, unsigned int *p_version,
                    unsigned int *p_revision,
                    unsigned int *p_request_base,
                    unsigned int *p_event_base,
                    unsigned int *p_error_base);

🫢 ARGUMENTS 🫢

  • dpy β€” the connection to the X server. your lil' hotline to the display, basically πŸ“ž
  • p_version β€” a pointer to where the current version number of the Xv video extension gets written. she's holding a spot for it πŸ’–
  • p_revision β€” a pointer to where the revision number of the Xv video extension gets written. same deal, different number πŸŽ€
  • p_request_base β€” a pointer to where the extension major request number is returned. that's where your request codes start counting from ✨
  • p_event_base β€” a pointer to where the extension event base is returned. events start here, no cap 🌈
  • p_error_base β€” a pointer to where the extension error base is returned. and yes, errors have a home base too 😭

πŸ’« DESCRIPTION πŸ’«

so XvQueryExtension(3) returns the version and release numbers for the Xv video extension that's currently loaded on the system. literally just asking the extension "who are you and what era are you from" πŸ¦‹

and that's not all β€” the extension major request number, the event base, and the error base are also returned. so you get the whole identity card, not just the face card πŸ‘‘


πŸ”₯ RETURN VALUES πŸ”₯

  • [Success] β€” returned if XvQueryExtension(3) completed successfully. we love a happy ending, periodt πŸ’…
  • [XvBadExtension] β€” returned if the Xv video extension is not available for the named display. big sad, the extension ghosted you πŸ’€
ngl, if you get XvBadExtension it's giving "this display doesn't have Xv, bestie" β€” no extension, no vibes, no nothing πŸ™ˆ

🌟 SEE ALSO 🌟

  • Xv(3) β€” go read the main character's page, iykyk πŸ’œ

and that's the whole page, bestie!! this lil' gem ships with X Version 11, libXv 1.0.13 β€” so go forth, query that extension, and slay βœ¨πŸŽ€πŸ’–

πŸ“¦ where this page comes from