summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_sys.c
blob: 21f1fa0707fcf179840806c028a0527dcea038e5 (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
/* Copyright (c) 2020-2021, The Tor Project, Inc. */
/* See LICENSE for licensing information */

/**
 * @file hs_sys.c
 * @brief Setup and tear down the HS subsystem.
 **/

#include "lib/subsys/subsys.h"

#include "feature/hs/hs_metrics.h"
#include "feature/hs/hs_sys.h"

static int
subsys_hs_initialize(void)
{
  return 0;
}

static void
subsys_hs_shutdown(void)
{
}

const subsys_fns_t sys_hs = {
  SUBSYS_DECLARE_LOCATION(),

  .name = "hs",
  .supported = true,
  .level = HS_SUBSYS_LEVEL,

  .initialize = subsys_hs_initialize,
  .shutdown = subsys_hs_shutdown,

  .get_metrics = hs_metrics_get_stores,
};