Lines Matching defs:printer
370 submit_job(papi_service_t svc, FILE *ifp, char *printer, int rid, char *cf,
393 status = papiJobSubmit(svc, printer, list, NULL, files, &job);
489 berkeley_receive_files(papi_service_t svc, FILE *ifp, FILE *ofp, char *printer)
521 status = submit_job(svc, ifp, printer, rid, cf,
544 status = submit_job(svc, ifp, printer, rid, cf, files);
553 char *printer)
557 char *keys[] = { "printer-is-accepting-jobs", NULL };
559 status = papiPrinterQuery(svc, printer, keys, NULL, &p);
565 "printer-is-accepting-jobs", &accepting);
569 status = berkeley_receive_files(svc, ifp, ofp, printer);
587 /* was there a printer? */
594 papiAttributeListGetString(list, NULL, "printer-uri-supported", &s);
640 char *printer;
709 printer = *args++;
711 if (printer == NULL) {
712 fatal(ofp, "Can't determine requested printer");
716 if (cyclical_service_check(printer) != 0) {
717 fatal(ofp, "%s is cyclical\n", printer);
721 status = papiServiceCreate(&svc, printer, NULL, NULL, NULL,
724 fatal(ofp, "Failed to contact service for %s: %s\n", printer,
737 case '\1': /* restart printer */
741 status = berkeley_transfer_files(svc, ifp, ofp, printer);
749 berkeley_queue_report(svc, ofp, printer, buf[0], count, args);
767 berkeley_cancel_request(svc, ofp, printer, count, args);
778 buf[0], printer, papiStatusString(status));