aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control/control_hs.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-12-16 13:08:08 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-09 07:30:35 -0500
commit8d4b4aa932658f8123de1810f9c17f31594e8c1b (patch)
tree67a765ba24b50a9e391b758bfb8037c21fd5ed22 /src/feature/control/control_hs.h
parent8b7eeea39d5a7365c7f834fc4015179c9200676f (diff)
downloadtor-8d4b4aa932658f8123de1810f9c17f31594e8c1b.tar.gz
tor-8d4b4aa932658f8123de1810f9c17f31594e8c1b.zip
control_hs.h: use a couple of struct delcarations
Doing this frees us from some assumptions about include order.
Diffstat (limited to 'src/feature/control/control_hs.h')
-rw-r--r--src/feature/control/control_hs.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/feature/control/control_hs.h b/src/feature/control/control_hs.h
index 35ac1b22d4..da96866f55 100644
--- a/src/feature/control/control_hs.h
+++ b/src/feature/control/control_hs.h
@@ -11,23 +11,24 @@
#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
-