background image
Functional specification
139
CDE/Motif PST
CDEnext
SYNOPSIS
char *GetOneAttributes(PrintContextPtr pContext, XpAttrType pool, char
*attr);
ARGUMENTS
pContext
Specifies a pointer to the print context for which the attributes are desired.
pool
Specifies the pool of the attribute which is desired. This is one of
XPJobAttr, XPDocAttr, XPPrinterAttr, XPPageAttr, XPServerAttr.
attr
Specifies the attribute for which the value is desired.
RETURN VALUE
A pointer to a character string containing the value of the attribute for the print context. The caller must not
free the returned string. GetOneAttribute returns a NULL pointer in the case of an allocation error (i.e.
BadAlloc
), and returns a pointer to an empty string if the requested attribute is not defined.
DESCRIPTION
The GetOneAttribute function returns a string containing the values for the specified attribute class and
attribute within the specified print context. It is expected that drivers will use the
XpGetOneAttribute
function to implement this function.
9.28
AugmentAttributes
9.28.1
Short Description
Augments the contents of the specified set of attributes.
9.28.2
Long Description
NAME
AugmentAttributes - augment the contents of the specified attribute set for a given print context.
SYNOPSIS
int AugmentAttributes(PrintContextPtr pContext, XpAttrType pool, char
*attributes);
ARGUMENTS
pContext
Specifies a pointer to the print context for which the attributes are to be
augmented.