Tor 0.4.9.0-alpha-dev
conflux_sys.c
Go to the documentation of this file.
1/* Copyright (c) 2023, The Tor Project, Inc. */
2/* See LICENSE for licensing information */
3
4/**
5 * \file conflux_sys.c
6 * \brief Register the conflux pool for early initialization.
7 **/
8
10#include "core/or/conflux_sys.h"
11
12#include "lib/subsys/subsys.h"
13
14static int
15subsys_conflux_initialize(void)
16{
18 return 0;
19}
20
21static void
22subsys_conflux_shutdown(void)
23{
24 /* The conflux pool free all must be called before the circuit free all and
25 * so we are not calling it from subsys shutdown. */
26}
27
28const subsys_fns_t sys_conflux = {
30
31 .name = "conflux",
32 .supported = true,
33 .level = CONFLUX_SUBSYS_LEVEL,
34
35 .initialize = subsys_conflux_initialize,
36 .shutdown = subsys_conflux_shutdown,
37};
void conflux_pool_init(void)
Header file for conflux_pool.c.
Header file for conflux_sys.c.
#define CONFLUX_SUBSYS_LEVEL
Definition: conflux_sys.h:20
Types used to declare a subsystem.
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211