1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Name vtable structure types more consistently.

Now they're all called FooVtable, instead of a mixture of that and
Foo_vtable.
This commit is contained in:
Simon Tatham
2018-10-05 07:03:46 +01:00
parent e0130a48ca
commit b798230844
44 changed files with 109 additions and 109 deletions

View File

@ -247,7 +247,7 @@ char *get_ttymode(Frontend *frontend, const char *mode)
static void start_backend(void)
{
const struct Backend_vtable *vt;
const struct BackendVtable *vt;
const char *error;
char msg[1024], *title;
char *realhost;
@ -412,7 +412,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
default_protocol = be_default_protocol;
/* Find the appropriate default port. */
{
const struct Backend_vtable *vt =
const struct BackendVtable *vt =
backend_vt_from_proto(default_protocol);
default_port = 0; /* illegal */
if (vt)

View File

@ -43,7 +43,7 @@ typedef struct HandleSocket {
Plug *plug;
const Socket_vtable *sockvt;
const SocketVtable *sockvt;
} HandleSocket;
static int handle_gotdata(struct handle *h, void *data, int len)
@ -306,7 +306,7 @@ static char *sk_handle_peer_info(Socket *s)
return NULL;
}
static const Socket_vtable HandleSocket_sockvt = {
static const SocketVtable HandleSocket_sockvt = {
sk_handle_plug,
sk_handle_close,
sk_handle_write,

View File

@ -76,7 +76,7 @@ struct NetSocket {
*/
NetSocket *parent, *child;
const Socket_vtable *sockvt;
const SocketVtable *sockvt;
};
struct SockAddr {
@ -935,7 +935,7 @@ static char *sk_net_peer_info(Socket *s);
extern char *do_select(SOCKET skt, int startup);
static const Socket_vtable NetSocket_sockvt = {
static const SocketVtable NetSocket_sockvt = {
sk_net_plug,
sk_net_close,
sk_net_write,

View File

@ -34,7 +34,7 @@ typedef struct NamedPipeServerSocket {
Plug *plug;
char *error;
const Socket_vtable *sockvt;
const SocketVtable *sockvt;
} NamedPipeServerSocket;
static Plug *sk_namedpipeserver_plug(Socket *s, Plug *p)
@ -204,7 +204,7 @@ static void named_pipe_connect_callback(void *vps)
* This socket type is only used for listening, so it should never
* be asked to write or flush or set_frozen.
*/
static const Socket_vtable NamedPipeServerSocket_sockvt = {
static const SocketVtable NamedPipeServerSocket_sockvt = {
sk_namedpipeserver_plug,
sk_namedpipeserver_close,
NULL /* write */,

View File

@ -289,7 +289,7 @@ int main(int argc, char **argv)
int use_subsystem = 0;
int just_test_share_exists = FALSE;
unsigned long now, next, then;
const struct Backend_vtable *vt;
const struct BackendVtable *vt;
dll_hijacking_protection();
@ -324,7 +324,7 @@ int main(int argc, char **argv)
*/
char *p = getenv("PLINK_PROTOCOL");
if (p) {
const struct Backend_vtable *vt = backend_vt_from_name(p);
const struct BackendVtable *vt = backend_vt_from_name(p);
if (vt) {
default_protocol = vt->protocol;
default_port = vt->default_port;

View File

@ -440,7 +440,7 @@ static int serial_cfg_info(Backend *be)
return 0;
}
const struct Backend_vtable serial_backend = {
const struct BackendVtable serial_backend = {
serial_init,
serial_free,
serial_reconfig,

View File

@ -596,7 +596,7 @@ void agent_schedule_callback(void (*callback)(void *, void *, int),
/*
* Exports from winser.c.
*/
extern const struct Backend_vtable serial_backend;
extern const struct BackendVtable serial_backend;
/*
* Exports from winjump.c.