mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Make Socket and Plug into structs.
I think that means that _every_ one of my traitoids is now a struct containing a vtable pointer as one of its fields (albeit sometimes the only field), and never just a bare pointer.
This commit is contained in:
7
defs.h
7
defs.h
@ -42,8 +42,8 @@ typedef struct IdempotentCallback IdempotentCallback;
|
||||
|
||||
typedef struct SockAddr SockAddr;
|
||||
|
||||
typedef struct SocketVtable SocketVtable;
|
||||
typedef struct PlugVtable PlugVtable;
|
||||
typedef struct Socket Socket;
|
||||
typedef struct Plug Plug;
|
||||
|
||||
typedef struct Backend Backend;
|
||||
typedef struct BackendVtable BackendVtable;
|
||||
@ -74,9 +74,6 @@ typedef struct settings_e settings_e;
|
||||
|
||||
typedef struct SessionSpecial SessionSpecial;
|
||||
|
||||
typedef const SocketVtable *Socket;
|
||||
typedef const PlugVtable *Plug;
|
||||
|
||||
/*
|
||||
* A small structure wrapping up a (pointer, length) pair so that it
|
||||
* can be conveniently passed to or from a function.
|
||||
|
Reference in New Issue
Block a user