mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
Actually adding the implementation of do_defaults for eef27ac3
Source commit: 0b16e1e0dd34d6fcb273919d78b8f62bd596f873
This commit is contained in:
@@ -100,6 +100,9 @@
|
||||
<CppCompile Include="putty\be_misc.c">
|
||||
<BuildOrder>47</BuildOrder>
|
||||
</CppCompile>
|
||||
<CppCompile Include="putty\be_ssh.c">
|
||||
<BuildOrder>84</BuildOrder>
|
||||
</CppCompile>
|
||||
<CppCompile Include="putty\callback.c">
|
||||
<BuildOrder>5</BuildOrder>
|
||||
<BuildOrder>25</BuildOrder>
|
||||
@@ -160,6 +163,9 @@
|
||||
<CppCompile Include="putty\proxy.c">
|
||||
<BuildOrder>20</BuildOrder>
|
||||
</CppCompile>
|
||||
<CppCompile Include="putty\settings.c">
|
||||
<BuildOrder>82</BuildOrder>
|
||||
</CppCompile>
|
||||
<CppCompile Include="putty\ssh.c">
|
||||
<BuildOrder>23</BuildOrder>
|
||||
<BuildOrder>19</BuildOrder>
|
||||
@@ -320,6 +326,9 @@
|
||||
<BuildOrder>83</BuildOrder>
|
||||
<BuildOrder>3</BuildOrder>
|
||||
</CppCompile>
|
||||
<CppCompile Include="putty\WINDOWS\windefs.c">
|
||||
<BuildOrder>83</BuildOrder>
|
||||
</CppCompile>
|
||||
<CppCompile Include="putty\windows\wingss.c">
|
||||
<BuildOrder>86</BuildOrder>
|
||||
<BuildOrder>2</BuildOrder>
|
||||
|
||||
16
source/putty/be_ssh.c
vendored
Normal file
16
source/putty/be_ssh.c
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Linking module for programs that are restricted to only using SSH
|
||||
* (pscp and psftp). These do not support selection of backend, but
|
||||
* must still have a backends[] array mentioning SSH because
|
||||
* settings.c will want to consult it during session load.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "putty.h"
|
||||
|
||||
const int be_default_protocol = PROT_SSH;
|
||||
|
||||
const struct BackendVtable *const backends[] = {
|
||||
&ssh_backend,
|
||||
NULL
|
||||
};
|
||||
1336
source/putty/settings.c
vendored
Normal file
1336
source/putty/settings.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
40
source/putty/windows/windefs.c
Normal file
40
source/putty/windows/windefs.c
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* windefs.c: default settings that are specific to Windows.
|
||||
*/
|
||||
|
||||
#include "putty.h"
|
||||
|
||||
#include <commctrl.h>
|
||||
|
||||
FontSpec *platform_default_fontspec(const char *name)
|
||||
{
|
||||
if (!strcmp(name, "Font"))
|
||||
return fontspec_new("Courier New", false, 10, ANSI_CHARSET);
|
||||
else
|
||||
return fontspec_new("", false, 0, 0);
|
||||
}
|
||||
|
||||
Filename *platform_default_filename(const char *name)
|
||||
{
|
||||
if (!strcmp(name, "LogFileName"))
|
||||
return filename_from_str("putty.log");
|
||||
else
|
||||
return filename_from_str("");
|
||||
}
|
||||
|
||||
char *platform_default_s(const char *name)
|
||||
{
|
||||
if (!strcmp(name, "SerialLine"))
|
||||
return dupstr("COM1");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool platform_default_b(const char *name, bool def)
|
||||
{
|
||||
return def;
|
||||
}
|
||||
|
||||
int platform_default_i(const char *name, int def)
|
||||
{
|
||||
return def;
|
||||
}
|
||||
Reference in New Issue
Block a user