Tor  0.4.6.0-alpha-dev
metrics.h
Go to the documentation of this file.
1 /* Copyright (c) 2020, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
4 /**
5  * @file metrics.h
6  * @brief Header for feature/metrics/metrics.c
7  **/
8 
9 #ifndef TOR_FEATURE_METRICS_METRICS_H
10 #define TOR_FEATURE_METRICS_METRICS_H
11 
12 #include "lib/buf/buffers.h"
14 
16 
18 
19 struct connection_t;
20 
21 /* Initializer / Cleanup. */
22 void metrics_init(void);
23 void metrics_cleanup(void);
24 
25 /* Accessors. */
26 buf_t *metrics_get_output(const metrics_format_t fmt);
27 
28 /* Connection. */
30 
31 /* Configuration. */
32 int metrics_parse_ports(or_options_t *options, smartlist_t *ports,
33  char **err_msg_out);
34 
35 #endif /* !defined(TOR_FEATURE_METRICS_METRICS_H) */
or_options_st.h
The or_options_t structure, which represents Tor's configuration.
smartlist.h
Header for smartlist.c.
metrics_common.h
Header for lib/metrics/metrics_common.c.
metrics_cleanup
void metrics_cleanup(void)
Definition: metrics.c:254
metrics_init
void metrics_init(void)
Definition: metrics.c:248
metrics_parse_ports
int metrics_parse_ports(or_options_t *options, smartlist_t *ports, char **err_msg_out)
Definition: metrics.c:171
buffers.h
Header file for buffers.c.
connection_t
Definition: connection_st.h:45
metrics_get_output
buf_t * metrics_get_output(const metrics_format_t fmt)
Definition: metrics.c:70
metrics_connection_process_inbuf
int metrics_connection_process_inbuf(struct connection_t *conn)
Definition: metrics.c:98
or_options_t
Definition: or_options_st.h:64
metrics_format_t
metrics_format_t
Definition: metrics_common.h:20
smartlist_t
Definition: smartlist_core.h:26