Tor  0.4.6.0-alpha-dev
hs_sys.c
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 hs_sys.c
6  * @brief Setup and tear down the HS subsystem.
7  **/
8 
9 #include "lib/subsys/subsys.h"
10 
11 #include "feature/hs/hs_metrics.h"
12 #include "feature/hs/hs_sys.h"
13 
14 static int
15 subsys_hs_initialize(void)
16 {
17  return 0;
18 }
19 
20 static void
21 subsys_hs_shutdown(void)
22 {
23 }
24 
25 const subsys_fns_t sys_hs = {
27 
28  .name = "hs",
29  .supported = true,
30  .level = HS_SUBSYS_LEVEL,
31 
32  .initialize = subsys_hs_initialize,
33  .shutdown = subsys_hs_shutdown,
34 
35  .get_metrics = hs_metrics_get_stores,
36 };
SUBSYS_DECLARE_LOCATION
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211
hs_sys.h
Header for feature/hs/hs_sys.c.
hs_metrics.h
Header for feature/hs/hs_metrics.c.
subsys.h
Types used to declare a subsystem.
hs_metrics_get_stores
const smartlist_t * hs_metrics_get_stores(void)
Definition: hs_metrics.c:135
HS_SUBSYS_LEVEL
#define HS_SUBSYS_LEVEL
Definition: hs_sys.h:20
subsys_fns_t
Definition: subsys.h:38