tor  0.4.2.0-alpha-dev
mainloop_sys.c
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 #include "core/or/or.h"
8 #include "core/mainloop/mainloop_sys.h"
10 
11 #include "lib/subsys/subsys.h"
12 
13 static int
14 subsys_mainloop_initialize(void)
15 {
17  return 0;
18 }
19 
20 static void
21 subsys_mainloop_shutdown(void)
22 {
23  tor_mainloop_free_all();
24 }
25 
26 const struct subsys_fns_t sys_mainloop = {
27  .name = "mainloop",
28  .supported = true,
29  .level = 5,
30  .initialize = subsys_mainloop_initialize,
31  .shutdown = subsys_mainloop_shutdown,
32 };
void initialize_periodic_events(void)
Definition: mainloop.c:1506
Header file for mainloop.c.
Master header file for Tor-specific functionality.
const char * name
Definition: subsys.h:28