tor  0.4.2.1-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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
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
23 STATIC int getinfo_helper_onions(
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);
47 STATIC int getinfo_helper_downloads(
48  control_connection_t *control_conn,
49  const char *question, char **answer,
50  const char **errmsg);
51 STATIC int getinfo_helper_dir(
52  control_connection_t *control_conn,
53  const char *question, char **answer,
54  const char **errmsg);
56  control_connection_t *control_conn,
57  const char *question, char **answer,
58  const char **errmsg);
59 #endif /* defined(CONTROL_GETINFO_PRIVATE) */
60 
61 #endif /* !defined(TOR_CONTROL_GETINFO_H) */
int handle_control_getinfo(control_connection_t *conn, const control_cmd_args_t *args)
STATIC int getinfo_helper_dir(control_connection_t *control_conn, const char *question, char **answer, const char **errmsg)
STATIC int getinfo_helper_onions(control_connection_t *control_conn, const char *question, char **answer, const char **errmsg)
STATIC void getinfo_helper_downloads_desc(const char *desc_req, download_status_t **dl_to_emit, smartlist_t **digest_list, const char **errmsg)
STATIC int getinfo_helper_downloads(control_connection_t *control_conn, const char *question, char **answer, const char **errmsg)
STATIC int getinfo_helper_current_time(control_connection_t *control_conn, const char *question, char **answer, const char **errmsg)
STATIC void getinfo_helper_downloads_cert(const char *fp_sk_req, download_status_t **dl_to_emit, smartlist_t **digest_list, const char **errmsg)
STATIC void getinfo_helper_downloads_networkstatus(const char *flavor, download_status_t **dl_to_emit, const char **errmsg)
STATIC void getinfo_helper_downloads_bridge(const char *bridge_req, download_status_t **dl_to_emit, smartlist_t **digest_list, const char **errmsg)