Lines Matching refs:printer
69 #include "printer.h"
78 struct printer defprinter;
79 struct printer *printers = NULL;
86 struct printer *printer = NULL;
94 int getstatus( struct printer *pr, char *buf );
95 int rprintcap( struct printer *pr );
110 struct printer *pr;
174 struct printer *pr;
425 rbuf[ 2 ] = rbuf[ 3 ] = 0xff; /* printer busy */
461 printer = pr;
464 if (( printer->p_flags & P_SPOOLED ) &&
465 chdir( printer->p_spool ) < 0 ) {
466 LOG(log_error, logtype_papd, "chdir %s: %s", printer->p_spool, strerror(errno) );
470 if (( printer->p_flags & P_SPOOLED ) &&
563 int getstatus(struct printer *pr, char *buf)
614 struct printer *pr;
620 * Get the printer's nbp name.
623 fprintf( stderr, "No printer name\n" );
627 if (( pr = (struct printer *)malloc( sizeof( struct printer )))
632 memset( pr, 0, sizeof( struct printer ));
686 * Get lpd printer name.
747 /* get printer's appletalk address. */
797 int rprintcap( struct printer *pr)
806 LOG(log_error, logtype_papd, "No such CUPS printer: '%s'", pr->p_printer );
838 LOG(log_error, logtype_papd, "No such printer: %s", pr->p_printer );
893 * Cost of printer.