]> git.ipfire.org Git - thirdparty/tor.git/commit
prop250: Add memory and disk state in new files
authorDavid Goulet <dgoulet@torproject.org>
Tue, 3 May 2016 14:18:45 +0000 (10:18 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 20 Jun 2016 19:26:58 +0000 (15:26 -0400)
commitb3b4ffce2e23bfb6a2af374cd8bfa5981628a342
tree69f8d91ec6966e850a789600cfc1eb4e33fbb7c2
parent9744a40f7aa71f874b9f3eeb3c5e7d0899c8d409
prop250: Add memory and disk state in new files

This commit introduces two new files with their header.

"shared_random.c" contains basic functions to initialize the state and allow
commit decoding for the disk state to be able to parse them from disk.

"shared_random_state.c" contains everything that has to do with the state
for both our memory and disk. Lots of helper functions as well as a
mechanism to query the state in a synchronized way.

Signed-off-by: David Goulet <dgoulet@torproject.org>
Signed-off-by: George Kadianakis <desnacked@riseup.net>
src/or/dirvote.c
src/or/dirvote.h
src/or/include.am
src/or/shared_random.c [new file with mode: 0644]
src/or/shared_random.h [new file with mode: 0644]
src/or/shared_random_state.c [new file with mode: 0644]
src/or/shared_random_state.h [new file with mode: 0644]