[cups.development] notifier - get job attributes
Michael Sweet
msweet at apple.com
Thu Mar 25 15:25:26 PDT 2010
On Mar 25, 2010, at 1:58 PM, Rodger Devine wrote:
> ...
> 1) Is there a way to get job attributes looping through the IPP request
> attributes like so? (see snipets below):
No, you'll only get the attributes that are defined for the corresponding events. To get the complete set of attributes you need to use the IPP_GET_JOB_ATTRIBUTES operation with cupsDoRequest.
> 2) Reviewing the lpstat.c (-o option) also sheds some light on the
> issue, suggesting that building an IPP_GET_JOBS request and using the
> cupsDoRequest function is the way to go.
For job events use IPP_GET_JOB_ATTRIBUTES and pass in the job-uri - then you just get the attributes for that job.
________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups-devel
mailing list