summaryrefslogtreecommitdiff
path: root/src/feature/metrics/metrics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/metrics/metrics.h')
-rw-r--r--src/feature/metrics/metrics.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/feature/metrics/metrics.h b/src/feature/metrics/metrics.h
index a30c271bea..b4bbe28b27 100644
--- a/src/feature/metrics/metrics.h
+++ b/src/feature/metrics/metrics.h
@@ -9,13 +9,27 @@
#ifndef TOR_FEATURE_METRICS_METRICS_H
#define TOR_FEATURE_METRICS_METRICS_H
+#include "lib/buf/buffers.h"
+#include "lib/container/smartlist.h"
+
+#include "app/config/or_options_st.h"
+
#include "lib/metrics/metrics_common.h"
+struct connection_t;
+
/* Initializer / Cleanup. */
void metrics_init(void);
void metrics_cleanup(void);
/* Accessors. */
-char *metrics_get_output(const metrics_format_t fmt);
+buf_t *metrics_get_output(const metrics_format_t fmt);
+
+/* Connection. */
+int metrics_connection_process_inbuf(struct connection_t *conn);
+
+/* Configuration. */
+int metrics_parse_ports(or_options_t *options, smartlist_t *ports,
+ char **err_msg_out);
#endif /* !defined(TOR_FEATURE_METRICS_METRICS_H) */