Tor  0.4.3.0-alpha-dev
process_sys.c
Go to the documentation of this file.
1 /* Copyright (c) 2018-2020, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
4 /**
5  * \file process_sys.c
6  * \brief Subsystem object for process setup.
7  **/
8 
9 #include "orconfig.h"
10 #include "lib/subsys/subsys.h"
12 #include "lib/process/process.h"
13 
14 static int
15 subsys_process_initialize(void)
16 {
17  process_init();
18  return 0;
19 }
20 
21 static void
22 subsys_process_shutdown(void)
23 {
25 }
26 
27 const subsys_fns_t sys_process = {
28  .name = "process",
29  .level = -35,
30  .supported = true,
31  .initialize = subsys_process_initialize,
32  .shutdown = subsys_process_shutdown
33 };
void process_free_all(void)
Definition: process.c:153
const char * name
Definition: subsys.h:42
Types used to declare a subsystem.
Header for process.c.
void process_init(void)
Definition: process.c:141
Declare subsystem object for the process module.