diff options
author | Simon Tatham <anakin@pobox.com> | 2018-10-05 09:24:16 +0300 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2018-10-06 09:28:51 +0300 |
commit | 884a7df94b9bf83ba2915d64f2658e0c55e6491d (patch) | |
tree | 44636476341a082f73e3ce3f89ee01ce5ce12925 /defs.h | |
parent | b7982308448deb2cc025c219e971053aa417ff6b (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.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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. |