apple / cups

Apple CUPS Sources
https://www.cups.org
Apache License 2.0
1.95k stars 464 forks source link

Use connecting-to-device reason for better sleep management #1466

Closed michaelrsweet closed 18 years ago

michaelrsweet commented 18 years ago

Version: 1.2-feature CUPS.org User: jlovell

Backends should use the connecting-to-device printer-state-reason to indicate when they are not yet connected to a printer -- therfore allowing better sleep management in cupsd.

Patch file attached that does the following:

backend/scsi-irix.c: backend/scsi-linux.c: backend/usb-darwin.c: backend/usb-unix.c:

backend/ieee1394.c: backend/parallel.c: backend/serial.c: backend/socket.c:

backend/lpd.c:

backend/ipp.c:

scheduler/sysman.c:

Comments?

Thanks!

michaelrsweet commented 18 years ago

CUPS.org User: mike

Looks good to me, will apply as soon as I am done with this round of build testing, thanks!

michaelrsweet commented 18 years ago

CUPS.org User: mike

Fixed in Subversion repository.

I changed the fprintf's to fputs's, as there is no need to try to format the static STATE messages... :)