diff options
author | marha <marha@users.sourceforge.net> | 2009-08-07 12:33:59 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-08-07 12:33:59 +0000 |
commit | e7e9a66629ada359ad6a35cdb12e0e35b49e889c (patch) | |
tree | a93f38125aee1970e8a41bd23f4abc9162deeaee /tools/plink/windefs.c | |
parent | 527d85e0327133858ddb86169f2840f305c192b3 (diff) | |
download | vcxsrv-e7e9a66629ada359ad6a35cdb12e0e35b49e889c.tar.gz vcxsrv-e7e9a66629ada359ad6a35cdb12e0e35b49e889c.tar.bz2 vcxsrv-e7e9a66629ada359ad6a35cdb12e0e35b49e889c.zip |
Added plink tool (version without console, except if output is generated)
Added possibility to build console application or windows application in makefile.after
Diffstat (limited to 'tools/plink/windefs.c')
-rw-r--r-- | tools/plink/windefs.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tools/plink/windefs.c b/tools/plink/windefs.c new file mode 100644 index 000000000..de01dafaa --- /dev/null +++ b/tools/plink/windefs.c @@ -0,0 +1,43 @@ +/*
+ * windefs.c: default settings that are specific to Windows.
+ */
+
+#include "putty.h"
+
+#include <commctrl.h>
+
+FontSpec platform_default_fontspec(const char *name)
+{
+ FontSpec ret;
+ if (!strcmp(name, "Font")) {
+ strcpy(ret.name, "Courier New");
+ ret.isbold = 0;
+ ret.charset = ANSI_CHARSET;
+ ret.height = 10;
+ } else {
+ ret.name[0] = '\0';
+ }
+ return ret;
+}
+
+Filename platform_default_filename(const char *name)
+{
+ Filename ret;
+ if (!strcmp(name, "LogFileName"))
+ strcpy(ret.path, "putty.log");
+ else
+ *ret.path = '\0';
+ return ret;
+}
+
+char *platform_default_s(const char *name)
+{
+ if (!strcmp(name, "SerialLine"))
+ return dupstr("COM1");
+ return NULL;
+}
+
+int platform_default_i(const char *name, int def)
+{
+ return def;
+}
|