Make evloop into a subsystem.

Note that the event base object is _not_ created from the initialize
function, since it is configuration-dependent.  This will wait until
configuration is integrated into subsystems.

Closes ticket 30806.
This commit is contained in:
Nick Mathewson
2019-06-07 20:03:26 -04:00
committed by George Kadianakis
parent ecc5feff38
commit 990b434c4f
10 changed files with 75 additions and 15 deletions
+17
View File
@@ -0,0 +1,17 @@
/* Copyright (c) 2001 Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* @file evloop_sys.h
* @brief Declare subsystem object for the event loop module.
**/
#ifndef TOR_LIB_EVLOOP_EVLOOP_SYS_H
#define TOR_LIB_EVLOOP_EVLOOP_SYS_H
extern const struct subsys_fns_t sys_evloop;
#endif /* !defined(TOR_LIB_EVLOOP_EVLOOP_SYS_H) */