Move the "is the network disabled?" functions out of router.c
commit3ff58e47d211d8649202c093f00934011effed1b
authorNick Mathewson <nickm@torproject.org>
Tue, 25 Sep 2018 21:22:14 +0000 (25 17:22 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 25 Sep 2018 21:22:14 +0000 (25 17:22 -0400)
tree1243e4e4107a17a793c24a0b20691a10000d1a9d
parentb8df2318e9531a17938392cd0cbea0b901f50245
Move the "is the network disabled?" functions out of router.c

Since this is completely core functionality, I'm putting it in
core/mainloop, even though it depends on feature/hibernate. We'll
have to sort that out in the future.
src/core/include.am
src/core/mainloop/netstatus.c [new file with mode: 0644]
src/core/mainloop/netstatus.h [new file with mode: 0644]
src/feature/relay/router.c
src/feature/relay/router.h