Split main.c into main.c and mainloop.c
commitc7ce6b9821be22e734b79e07e318f2bfba32722d
authorNick Mathewson <nickm@torproject.org>
Thu, 20 Sep 2018 19:19:43 +0000 (20 15:19 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 21 Sep 2018 13:14:06 +0000 (21 09:14 -0400)
tree0582d70285c6fcd33f9804af6684f8de27273c36
parent98ef3e82e48c2d57c09d5f551b72e7d6bfe5347a
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.
55 files changed:
src/app/config/config.c
src/app/config/statefile.c
src/app/main/main.c [new file with mode: 0644]
src/app/main/main.h [new file with mode: 0644]
src/app/main/ntmain.c
src/core/include.am
src/core/mainloop/connection.c
src/core/mainloop/cpuworker.c
src/core/mainloop/mainloop.c [moved from src/core/mainloop/main.c with 67% similarity]
src/core/mainloop/mainloop.h [moved from src/core/mainloop/main.h with 86% similarity]
src/core/mainloop/periodic.c
src/core/or/channel.c
src/core/or/channelpadding.c
src/core/or/circuitbuild.c
src/core/or/circuitlist.c
src/core/or/circuitstats.c
src/core/or/connection_edge.c
src/core/or/connection_or.c
src/core/or/dos.c
src/core/or/relay.c
src/core/or/scheduler.c
src/core/or/status.c
src/feature/client/dnsserv.c
src/feature/client/entrynodes.c
src/feature/control/control.c
src/feature/dirauth/voteflags.c
src/feature/dircache/directory.c
src/feature/hibernate/hibernate.c
src/feature/hs/hs_service.c
src/feature/nodelist/authcert.c
src/feature/nodelist/fmt_routerstatus.c
src/feature/nodelist/networkstatus.c
src/feature/nodelist/nodelist.c
src/feature/nodelist/routerlist.c
src/feature/relay/dns.c
src/feature/relay/ext_orport.c
src/feature/relay/router.c
src/feature/rend/rendclient.c
src/feature/rend/rendservice.c
src/test/test.c
src/test/test_channelpadding.c
src/test/test_config.c
src/test/test_connection.c
src/test/test_extorport.c
src/test/test_helpers.c
src/test/test_hs_client.c
src/test/test_hs_service.c
src/test/test_mainloop.c
src/test/test_oos.c
src/test/test_options.c
src/test/test_periodic_event.c
src/test/test_relaycell.c
src/test/test_router.c
src/test/test_status.c
src/test/testing_common.c