XpQueryVersion(3Xp)

πŸ’– NAME πŸ’–

XpQueryVersion β€” she queries an X Server to determine if it supports the X Print Service Extension, and if it does, which version of the X Print Service Extension. Also hiiii bestie, this is the XpQueryVersion(3Xp) page from the XPRINT FUNCTIONS crew. 🫢

✨ SYNOPSIS ✨

Compile vibes, no cap:

             cc [ flag... ] file... -lXp [ library... ]
             #include <X11/extensions/Print.h>

       Status XpQueryVersion ( display, major_version_return,
       minor_version_return )
             Display *display;
             short *major_version_return;
             short *minor_version_return;

πŸŽ€ ARGUMENTS πŸŽ€

  • display β€” a pointer to the Display structure; it's the thing XOpenDisplay returns to you. πŸ’…
  • major_version_return β€” returns the major version if the X Print Service Extension exists, else zero. ✨
  • minor_version_return β€” returns the minor version if the X Print Service Extension exists, else zero. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so XpQueryVersion does the actual vibe check: it determines if the X Print Service Extension is present. You get a non-zero Status back if the extension is supported; otherwise the Status is zero. If the extension is supported, the major and minor version numbers are returned to show the level of X Print Service Extension support. πŸ‘‘

The X Print Service Extension is initialized on the first call to any X Print Service function β€” so there is no need to explicitly initialize the X Print Service Extension. It's already handled, periodt. πŸ’œ


Footer tea, bestie: X Version 11, libXp 1.0.4, and the XpQueryVersion(3Xp) page. No date was printed in the footer, so I'm not inventing one β€” slay responsibly. 🫢

πŸ“¦ where this page comes from