no-print.c 631 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Stub implementation of the printing interface for PuTTY, for the
  3. * benefit of non-printing terminal applications.
  4. */
  5. #include <assert.h>
  6. #include <stdio.h>
  7. #include "putty.h"
  8. struct printer_job_tag {
  9. int dummy;
  10. };
  11. printer_job *printer_start_job(char *printer)
  12. {
  13. return NULL;
  14. }
  15. void printer_job_data(printer_job *pj, const void *data, size_t len)
  16. {
  17. }
  18. void printer_finish_job(printer_job *pj)
  19. {
  20. }
  21. printer_enum *printer_start_enum(int *nprinters_ptr)
  22. {
  23. *nprinters_ptr = 0;
  24. return NULL;
  25. }
  26. char *printer_get_name(printer_enum *pe, int i)
  27. {
  28. return NULL;
  29. }
  30. void printer_finish_enum(printer_enum *pe)
  31. {
  32. }