hs: New metrics module
[tor.git] / src / feature / hs / hs_sys.c
blob6524dc3e4eec3201f0b911228af5b8b23d42e19c
1 /* Copyright (c) 2020, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
4 /**
5 * @file hs_sys.c
6 * @brief Setup and tear down the HS subsystem.
7 **/
9 #include "lib/subsys/subsys.h"
11 #include "feature/hs/hs_metrics.h"
12 #include "feature/hs/hs_sys.h"
14 static int
15 subsys_hs_initialize(void)
17 return 0;
20 static void
21 subsys_hs_shutdown(void)
25 const subsys_fns_t sys_hs = {
26 SUBSYS_DECLARE_LOCATION(),
28 .name = "hs",
29 .supported = true,
30 .level = HS_SUBSYS_LEVEL,
32 .initialize = subsys_hs_initialize,
33 .shutdown = subsys_hs_shutdown,
35 .get_metrics = hs_metrics_get_stores,