Tor  0.4.7.0-alpha-dev
metrics.h
Go to the documentation of this file.
1 /* Copyright (c) 2020-2021, 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. */
32 
33 /* Configuration. */
34 int metrics_parse_ports(or_options_t *options, smartlist_t *ports,
35  char **err_msg_out);
36 
37 #endif /* !defined(TOR_FEATURE_METRICS_METRICS_H) */
Header file for buffers.c.
int metrics_connection_process_inbuf(struct connection_t *conn)
Definition: metrics.c:100
int metrics_connection_finished_flushing(struct connection_t *conn)
Definition: metrics.c:264
void metrics_init(void)
Definition: metrics.c:272
int metrics_connection_reached_eof(struct connection_t *conn)
Definition: metrics.c:252
void metrics_cleanup(void)
Definition: metrics.c:278
int metrics_parse_ports(or_options_t *options, smartlist_t *ports, char **err_msg_out)
Definition: metrics.c:175
buf_t * metrics_get_output(const metrics_format_t fmt)
Definition: metrics.c:71
Header for lib/metrics/metrics_common.c.
metrics_format_t
The or_options_t structure, which represents Tor's configuration.
Header for smartlist.c.