Improving error reporting from backends

Michael Sweet mike at easysw.com
Mon Nov 12 21:31:08 PST 2007


Erik de Castro Lopo wrote:
> Hi all,
> 
> I have a printer that can report conditions like out-of-paper pretty much as soon as they happen and I have an application which needs this information so it can change its behavior when it knows that there is no paper in the printer.
> 
> However, even though the printer can report things like out of paper, I can't seem to get this information using the CUPS API (httpConnect, cupsDoRequest and friends). In particluar, at the end of a print job that uses the last piece of paper, I would like to be able to get that information as soon as possible.
> 
> Have I missed something of this this not doable in CUPS?
 > ...

STATE: messages can be written by the backend to report conditions
like this.

The printer-state-reasons attribute contains the keywords reported
by the backend via STATE: messages.  Use the
IPP_GET_PRINTER_ATTRIBUTES operation to get it...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list