2 * Printing interface for PuTTY.
9 struct printer_job_tag {
13 printer_job *printer_start_job(char *printer)
15 printer_job *ret = snew(printer_job);
17 * On Unix, we treat the printer string as the name of a
18 * command to pipe to - typically lpr, of course.
20 ret->fp = popen(printer, "w");
28 void printer_job_data(printer_job *pj, void *data, int len)
33 fwrite(data, 1, len, pj->fp);
36 void printer_finish_job(printer_job *pj)
46 * There's no sensible way to enumerate printers under Unix, since
47 * practically any valid Unix command is a valid printer :-) So
48 * these are useless stub functions, and uxcfg.c will disable the
49 * drop-down list in the printer configurer.
51 printer_enum *printer_start_enum(int *nprinters_ptr) {
55 char *printer_get_name(printer_enum *pe, int i) { return NULL;
57 void printer_finish_enum(printer_enum *pe) { }