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 theDisplaystructure; it's the thingXOpenDisplayreturns 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
- arch rolling: libxp 1.0.4-3 Β· X11 AND X11-distribute-modifications-variant
- nixos 26.05: libxp 1.0.4
- nixpkgs unstable: libxp 1.0.4
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- Copyright 1996 Hewlett-Packard Company
- Copyright 1996 International Business Machines Corp
- Copyright 1996, 1999, 2004, Oracle and/or its affiliates. All rights reserved
- Copyright 1996 Novell, Inc
- Copyright 1996 Digital Equipment Corp
- Copyright 1996 Fujitsu Limited
- Copyright 1996 Hitachi, Ltd
- Copyright 1996 X Consortium, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms