Functional specification
44
CDE/Motif PST
CDEnext
To monitor changes to the attribute pools, see
XpSelectInput
and the event
XPAttributeNotify
.
Since a print context can be shared among clients, changes made by one client will be seen by all others,
and if selected for, the event
XPAttributeNotify
will be sent to all clients referencing the print
context when changes do occur. It is the responsibility of the clients sharing a print context to coordinate
their calls to
XpGetAttributes
and
XpSetAttributes
to avoid readers/writer problems.
ERRORS/WARNINGS
These functions can generate of one of the following errors:
XPBadContext
The specified print context id is not valid.
XPBadSequence
A request to set an attribute pool occured at a time when the attribute pool
could not be modified (for example, modifying
XPJobAttr
immediately
after calling
XpStartJob
).
BadValue
The value specified for
type
is invalid.
BadMatch
The attribute pool specified by
pool
cannot be set.
BadAlloc
Insufficient memory.
SEE ALSO
XpSelectInput, XpSetContext, XrmGetStringDatabase
2.18
XpGetPrinterList
SHORT DESCRIPTION
Retrieves a list of all printers supported on an X Print Server.
2.18.1
Long Description
NAME
XpGetPrinterList - retrieves a list of all printers supported on an X Print Server
SYNOPSIS
#include <X11/extensions/Print.h>
XPPrinterList XpGetPrinterList (
Display
*display,
char
*printer_name,
int
*list_count
) /* return value */
ARGUMENTS
display
Specifies a pointer to the print
Display
structure; returned from
XOpenDisplay
.