Tor  0.4.6.0-alpha-dev
control_getinfo.h
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-2020, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file control.h
9  * \brief Header file for control.c.
10  **/
11 
12 #ifndef TOR_CONTROL_GETINFO_H
13 #define TOR_CONTROL_GETINFO_H
14 
16 struct control_cmd_args_t;
17 extern const struct control_cmd_syntax_t getinfo_syntax;
18 
20  const struct control_cmd_args_t *args);
21 
22 #ifdef CONTROL_GETINFO_PRIVATE
24  control_connection_t *control_conn,
25  const char *question,
26  char **answer,
27  const char **errmsg);
29  const char *flavor,
30  download_status_t **dl_to_emit,
31  const char **errmsg);
33  const char *fp_sk_req,
34  download_status_t **dl_to_emit,
35  smartlist_t **digest_list,
36  const char **errmsg);
38  const char *desc_req,
39  download_status_t **dl_to_emit,
40  smartlist_t **digest_list,
41  const char **errmsg);
43  const char *bridge_req,
44  download_status_t **dl_to_emit,
45  smartlist_t **digest_list,
46  const char **errmsg);
48  control_connection_t *control_conn,
49  const char *question, char **answer,
50  const char **errmsg);
52  consensus_flavor_t flavor,
53  char **answer,
54  const char **errmsg);
56  control_connection_t *control_conn,
57  const char *question, char **answer,
58  const char **errmsg);
60  control_connection_t *control_conn,
61  const char *question, char **answer,
62  const char **errmsg);
64  control_connection_t *control_conn,
65  const char *question, char **answer,
66  const char **errmsg);
67 #endif /* defined(CONTROL_GETINFO_PRIVATE) */
68 
69 #endif /* !defined(TOR_CONTROL_GETINFO_H) */
control_cmd_args_t
Definition: control_cmd_args_st.h:24
getinfo_helper_downloads
STATIC int getinfo_helper_downloads(control_connection_t *control_conn, const char *question, char **answer, const char **errmsg)
Definition: control_getinfo.c:1076
getinfo_helper_dir
STATIC int getinfo_helper_dir(control_connection_t *control_conn, const char *question, char **answer, const char **errmsg)
Definition: control_getinfo.c:462
getinfo_helper_downloads_desc
STATIC void getinfo_helper_downloads_desc(const char *desc_req, download_status_t **dl_to_emit, smartlist_t **digest_list, const char **errmsg)
Definition: control_getinfo.c:987
consensus_flavor_t
consensus_flavor_t
Definition: or.h:881
getinfo_helper_downloads_bridge
STATIC void getinfo_helper_downloads_bridge(const char *bridge_req, download_status_t **dl_to_emit, smartlist_t **digest_list, const char **errmsg)
Definition: control_getinfo.c:1033
getinfo_helper_current_consensus
STATIC int getinfo_helper_current_consensus(consensus_flavor_t flavor, char **answer, const char **errmsg)
Definition: control_getinfo.c:347
control_cmd_syntax_t
Definition: control_cmd.h:36
download_status_t
Definition: download_status_st.h:41
getinfo_helper_downloads_cert
STATIC void getinfo_helper_downloads_cert(const char *fp_sk_req, download_status_t **dl_to_emit, smartlist_t **digest_list, const char **errmsg)
Definition: control_getinfo.c:887
getinfo_helper_onions
STATIC int getinfo_helper_onions(control_connection_t *control_conn, const char *question, char **answer, const char **errmsg)
Definition: control_getinfo.c:1396
getinfo_helper_downloads_networkstatus
STATIC void getinfo_helper_downloads_networkstatus(const char *flavor, download_status_t **dl_to_emit, const char **errmsg)
Definition: control_getinfo.c:858
handle_control_getinfo
int handle_control_getinfo(control_connection_t *conn, const control_cmd_args_t *args)
Definition: control_getinfo.c:1776
control_connection_t
Definition: control_connection_st.h:19
getinfo_helper_rephist
STATIC int getinfo_helper_rephist(control_connection_t *control_conn, const char *question, char **answer, const char **errmsg)
Definition: control_getinfo.c:1446
getinfo_helper_current_time
STATIC int getinfo_helper_current_time(control_connection_t *control_conn, const char *question, char **answer, const char **errmsg)
Definition: control_getinfo.c:322
STATIC
#define STATIC
Definition: testsupport.h:32
smartlist_t
Definition: smartlist_core.h:26