carta
XpQueryVersion(3)

XpQueryVersion3

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.

Usage

cc [flag ...] file ... -lXp [library ...]

Display *display;

short *major_version_return;

short *minor_version_return;

Arguments

display

Specifies a pointer to the Display structure; returned from XOpenDisplay.

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.

Overview

XpQueryVersion determines if the X Print Service Extension is present. A non-zero Status is returned if the extension is supported, otherwise a zero Status is returned. If the extension is supported, the major and minor version numbers are returned to indicate 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; there is no need to explicitly initialize the X Print Service Extension.

From libxp 1.0.4-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.