Tor  0.4.3.0-alpha-dev
or_sys.c
Go to the documentation of this file.
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file or_sys.c
9  * @brief Subsystem definitions for OR module.
10  **/
11 
12 #include "orconfig.h"
13 #include "core/or/or.h"
14 #include "core/or/or_periodic.h"
15 #include "core/or/or_sys.h"
16 #include "core/or/policies.h"
17 #include "core/or/protover.h"
18 #include "core/or/versions.h"
19 
20 #include "lib/subsys/subsys.h"
21 
22 static int
23 subsys_or_initialize(void)
24 {
25  or_register_periodic_events();
26  return 0;
27 }
28 
29 static void
30 subsys_or_shutdown(void)
31 {
35 }
36 
37 const struct subsys_fns_t sys_or = {
38  .name = "or",
39  .supported = true,
40  .level = 20,
41  .initialize = subsys_or_initialize,
42  .shutdown = subsys_or_shutdown,
43 };
void protover_free_all(void)
Definition: protover.c:940
Header for core/or/or_periodic.c.
const char * name
Definition: subsys.h:42
Header file for versions.c.
Types used to declare a subsystem.
Header file for policies.c.
void protover_summary_cache_free_all(void)
Definition: versions.c:496
Master header file for Tor-specific functionality.
Header for core/or/or_sys.c.
Headers and type declarations for protover.c.
void policies_free_all(void)
Definition: policies.c:3214