1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
8 * \file control_cmd_args_st.h
9 * \brief Definition for control_cmd_args_t
12 #ifndef TOR_CONTROL_CMD_ST_H
13 #define TOR_CONTROL_CMD_ST_H
19 * Parsed arguments for a control command.
21 * WORK IN PROGRESS: This structure is going to get more complex as this
24 struct control_cmd_args_t
{
26 * The command itself, as provided by the controller. Not owned by this
31 * Positional arguments to the command.
33 struct smartlist_t
*args
;
35 * Keyword arguments to the command.
37 struct config_line_t
*kwargs
;
39 * Number of bytes in <b>cmddata</b>; 0 if <b>cmddata</b> is not set.
43 * A multiline object passed with this command.
47 * If set, a nul-terminated string containing the raw unparsed arguments.
52 #endif /* !defined(TOR_CONTROL_CMD_ST_H) */