3724100725538f5c509577e14524b8e4fd0826ef
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 if (fwrite(data
, 1, len
, pj
->fp
) < len
)
37 void printer_finish_job(printer_job
*pj
)
47 * There's no sensible way to enumerate printers under Unix, since
48 * practically any valid Unix command is a valid printer :-) So
49 * these are useless stub functions, and uxcfg.c will disable the
50 * drop-down list in the printer configurer.
52 printer_enum
*printer_start_enum(int *nprinters_ptr
) {
56 char *printer_get_name(printer_enum
*pe
, int i
) { return NULL
;
58 void printer_finish_enum(printer_enum
*pe
) { }