blob: 419318068e64190d56e95f82ee74821ddf1b0e9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/* Copyright (c) 2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* @file metrics_sys.c
* @brief Setup and tear down the metrics subsystem.
**/
#include "lib/subsys/subsys.h"
#include "feature/metrics/metrics.h"
#include "feature/metrics/metrics_sys.h"
static int
subsys_metrics_initialize(void)
{
metrics_init();
return 0;
}
static void
subsys_metrics_shutdown(void)
{
metrics_cleanup();
}
const subsys_fns_t sys_metrics = {
SUBSYS_DECLARE_LOCATION(),
.name = "metrics",
.supported = true,
.level = METRICS_SUBSYS_LEVEL,
.initialize = subsys_metrics_initialize,
.shutdown = subsys_metrics_shutdown,
};
|