aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control/control_getinfo.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-02 19:00:23 -0400
committerNick Mathewson <nickm@torproject.org>2019-04-25 14:13:03 -0400
commit01b07c548b93bcc58adac612a02c69dcb4b63b28 (patch)
tree3d3e2f9a96b3d79178ab5a7647fca9c39b9c29bb /src/feature/control/control_getinfo.h
parentcbd1a7e0534d6f5e693c65c8a8b239e35e6f3b2c (diff)
downloadtor-01b07c548b93bcc58adac612a02c69dcb4b63b28.tar.gz
tor-01b07c548b93bcc58adac612a02c69dcb4b63b28.zip
Use parsing code for the simpler controller commands.
(This should be all of the command that work nicely with positional arguments only.) Some of these commands should probably treat extra arguments as incorrect, but for now I'm trying to be careful not to break any existing users.
Diffstat (limited to 'src/feature/control/control_getinfo.h')
-rw-r--r--src/feature/control/control_getinfo.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/feature/control/control_getinfo.h b/src/feature/control/control_getinfo.h
index d5a2feb3e0..2d56586f6d 100644
--- a/src/feature/control/control_getinfo.h
+++ b/src/feature/control/control_getinfo.h
@@ -12,8 +12,12 @@
#ifndef TOR_CONTROL_GETINFO_H
#define TOR_CONTROL_GETINFO_H
-int handle_control_getinfo(control_connection_t *conn, uint32_t len,
- const char *body);
+struct control_cmd_syntax_t;
+struct control_cmd_args_t;
+extern const struct control_cmd_syntax_t getinfo_syntax;
+
+int handle_control_getinfo(control_connection_t *conn,
+ const struct control_cmd_args_t *args);
#ifdef CONTROL_GETINFO_PRIVATE
STATIC int getinfo_helper_onions(