mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Split main.c into main.c and mainloop.c
The main.c code is responsible for initialization and shutdown; the mainloop.c code is responsible for running the main loop of Tor. Splitting the "generic event loop" part of mainloop.c from the event-loop-specific part is not done as part of this patch.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* \brief Common pieces to implement unit tests.
|
||||
**/
|
||||
|
||||
#define MAIN_PRIVATE
|
||||
#define MAINLOOP_PRIVATE
|
||||
#include "orconfig.h"
|
||||
#include "core/or/or.h"
|
||||
#include "feature/control/control.h"
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "lib/err/backtrace.h"
|
||||
#include "test/test.h"
|
||||
#include "core/or/channelpadding.h"
|
||||
#include "core/mainloop/main.h"
|
||||
#include "core/mainloop/mainloop.h"
|
||||
#include "lib/compress/compress.h"
|
||||
#include "lib/evloop/compat_libevent.h"
|
||||
#include "lib/crypt_ops/crypto_init.h"
|
||||
|
||||
Reference in New Issue
Block a user