no-printing.c 493 B

12345678910111213141516171819
  1. /*
  2. * Stub module implementing the printing API for tools that don't
  3. * print.
  4. */
  5. #include "putty.h"
  6. printer_job *printer_start_job(char *printer) { return NULL; }
  7. void printer_job_data(printer_job *pj, const void *data, size_t len) {}
  8. void printer_finish_job(printer_job *pj) {}
  9. printer_enum *printer_start_enum(int *nprinters_ptr)
  10. {
  11. *nprinters_ptr = 0;
  12. return NULL;
  13. }
  14. char *printer_get_name(printer_enum *pe, int i) { return NULL; }
  15. void printer_finish_enum(printer_enum *pe) {}