Functional specification
48
CDE/Motif PST
CDEnext
SYNOPSIS
#include <X11/extensions/Print.h>
Status XpQueryVersion (
Display
*display
,
short
*major_version
, /* return value */
short
*minor_version
) /* return value */
ARGUMENTS
display
Specifies a pointer to the
Display
structure; returned from
XOpenDisplay
.
major_version
The major version if the X Print Service Extension exists, else zero.
minor_version
The minor version if the X Print Service Extension exists, else zero.
RETURN VALUE
A non-zero status if the X Print Service Extension exists; otherwise a status of zero.
DESCRIPTION
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. Furthermore, the major and
minor version numbers are returned to indicate the level of X Print Service Extension support.
The X Print Service Extension is "passively" initialized on the first call to any X Print Service function.
There is no need to explicitly initialize the X Print Service Extension.
ERRORS
None.
SEE ALSO
XListExtension
,
XFreeExtensionList
2.22
XpQueryExtension
2.22.1
Short Description
Query an X-Server to determine if it supports the X Print Service Extension, and if it does, what the offsets are for
associated events and errors.