Tor  0.4.7.0-alpha-dev
process_sys.c
Go to the documentation of this file.
1 /* Copyright (c) 2018-2021, 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",
30  .level = -18,
31  .supported = true,
32  .initialize = subsys_process_initialize,
33  .shutdown = subsys_process_shutdown
34 };
void process_free_all(void)
Definition: process.c:153
void process_init(void)
Definition: process.c:141
Header for process.c.
Declare subsystem object for the process module.
const char * name
Definition: subsys.h:43
Types used to declare a subsystem.
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211