Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2018-10-05 09:24:16 +0300
committerSimon Tatham <anakin@pobox.com>2018-10-06 09:28:51 +0300
commit884a7df94b9bf83ba2915d64f2658e0c55e6491d (patch)
tree44636476341a082f73e3ce3f89ee01ce5ce12925 /defs.h
parentb7982308448deb2cc025c219e971053aa417ff6b (diff)
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.
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/defs.h b/defs.h
index f1119d10..776ab888 100644
--- a/defs.h
+++ b/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.