diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-02-18 13:07:33 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-18 13:07:33 -0500 |
commit | 8ce15933e5e8d9c65c7cca2389e42ff2da604b77 (patch) | |
tree | d6b2b5efdbd3256c4ba107abb85bfe189993a3eb /src/core/proto | |
parent | eb07166eb8aed3a37fe0e5ade476d7084bc0c5e4 (diff) | |
download | tor-8ce15933e5e8d9c65c7cca2389e42ff2da604b77.tar.gz tor-8ce15933e5e8d9c65c7cca2389e42ff2da604b77.zip |
Move some declarations into proto_ext_or.h
They are for functions declared in that file.
Diffstat (limited to 'src/core/proto')
-rw-r--r-- | src/core/proto/proto_ext_or.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/proto/proto_ext_or.h b/src/core/proto/proto_ext_or.h index daac3e3eb7..3408599fb7 100644 --- a/src/core/proto/proto_ext_or.h +++ b/src/core/proto/proto_ext_or.h @@ -24,4 +24,11 @@ struct ext_or_cmd_t { int fetch_ext_or_command_from_buf(struct buf_t *buf, struct ext_or_cmd_t **out); +ext_or_cmd_t *ext_or_cmd_new(uint16_t len); + +#define ext_or_cmd_free(cmd) \ + FREE_AND_NULL(ext_or_cmd_t, ext_or_cmd_free_, (cmd)) + +void ext_or_cmd_free_(ext_or_cmd_t *cmd); + #endif /* !defined(TOR_PROTO_EXT_OR_H) */ |