Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A few small changes to make the PuTTY source base more usable as a
basis for other terminal-involving applications: a stub implementation of the printing interface, an additional function in notiming.c, and also I've renamed the front-end function beep() to do_beep() so as not to clash with beep() in lib[n]curses. [originally from svn r6479]
- Loading branch information
Showing
8 changed files
with
54 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Stub implementation of the printing interface for PuTTY, for the | ||
* benefit of non-printing terminal applications. | ||
*/ | ||
|
||
#include <assert.h> | ||
#include <stdio.h> | ||
#include "putty.h" | ||
|
||
struct printer_job_tag { | ||
int dummy; | ||
}; | ||
|
||
printer_job *printer_start_job(char *printer) | ||
{ | ||
return NULL; | ||
} | ||
|
||
void printer_job_data(printer_job *pj, void *data, int len) | ||
{ | ||
} | ||
|
||
void printer_finish_job(printer_job *pj) | ||
{ | ||
} | ||
|
||
printer_enum *printer_start_enum(int *nprinters_ptr) | ||
{ | ||
*nprinters_ptr = 0; | ||
return NULL; | ||
} | ||
char *printer_get_name(printer_enum *pe, int i) | ||
{ | ||
return NULL; | ||
} | ||
void printer_finish_enum(printer_enum *pe) | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters