]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
control_hs.h: use a couple of struct delcarations
authorNick Mathewson <nickm@torproject.org>
Mon, 16 Dec 2019 18:08:08 +0000 (13:08 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 9 Jan 2020 12:30:35 +0000 (07:30 -0500)
Doing this frees us from some assumptions about include order.

src/feature/control/control_hs.h

index 35ac1b22d4d9fcb8dd980d4e19327b90a6ead968..da96866f55bede155c871537ff40a68f0e2afa71 100644 (file)
 #ifndef TOR_CONTROL_HS_H
 #define TOR_CONTROL_HS_H
 
+struct control_connection_t;
 struct control_cmd_syntax_t;
+struct control_cmd_args_t;
 
 extern const struct control_cmd_syntax_t onion_client_auth_add_syntax;
 extern const struct control_cmd_syntax_t onion_client_auth_remove_syntax;
 extern const struct control_cmd_syntax_t onion_client_auth_view_syntax;
 
 int
-handle_control_onion_client_auth_add(control_connection_t *conn,
-                                     const control_cmd_args_t *args);
+handle_control_onion_client_auth_add(struct control_connection_t *conn,
+                                     const struct control_cmd_args_t *args);
 
 int
-handle_control_onion_client_auth_remove(control_connection_t *conn,
-                                        const control_cmd_args_t *args);
+handle_control_onion_client_auth_remove(struct control_connection_t *conn,
+                                        const struct control_cmd_args_t *args);
 
 int
-handle_control_onion_client_auth_view(control_connection_t *conn,
-                                      const control_cmd_args_t *args);
+handle_control_onion_client_auth_view(struct control_connection_t *conn,
+                                      const struct control_cmd_args_t *args);
 
 #endif
-