Functional specification
49
CDE/Motif PST
CDEnext
2.22.2
Long Description
NAME
XpQueryVersion - query an X-Server to determine if it supports the X Print Service Extension
SYNOPSIS
#include <X11/extensions/Print.h>
Bool XpQueryExtension (
Display
*display
,
int
*event_base_return
, /* return value */
int
*error_base_return
) /* return value */
ARGUMENTS
display
Specifies a pointer to the
Display
structure; returned from
XOpenDisplay
.
event_base_return
The base value for X Print Service Extension events.
error_base_return
The base value for X Print Service Extension errors.
RETURN VALUE
A non-zero status if the X Print Service Extension exists; otherwise a status of zero.
DESCRIPTION
XpQueryExtension
determines if the X Print Service Extension is present. A non-zero value (True) is
returned if the extension is supported, otherwise a zero value (False) is returned. If the extension is present,
the base values for events and errors are returned, and can be used to decode incoming event and error
values.
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