]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move some declarations into proto_ext_or.h
authorNick Mathewson <nickm@torproject.org>
Tue, 18 Feb 2020 18:07:33 +0000 (13:07 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 18 Feb 2020 18:07:33 +0000 (13:07 -0500)
They are for functions declared in that file.

src/core/proto/proto_ext_or.h
src/feature/relay/ext_orport.h

index daac3e3eb7d70d4d28ec66bc3fda17f969e907aa..3408599fb75d78351252a3d1091874a873a7bc21 100644 (file)
@@ -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) */
index dbe89fce1866eb72614fbd3f35d984ff49706f01..d44c97be8bfa599ab71ec47a9343d6f7047623a0 100644 (file)
 
 int connection_ext_or_start_auth(or_connection_t *or_conn);
 
-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);
 void connection_or_set_ext_or_identifier(or_connection_t *conn);
 void connection_or_remove_from_ext_or_id_map(or_connection_t *conn);
 void connection_or_clear_ext_or_id_map(void);