From 6da0311d2cc71d6d0732c8432eea38cd1819aa86 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 1 Jul 2018 13:43:11 -0400 Subject: Extract various enums and tiny structs from or.h These all have a logical header to go in. --- src/or/networkstatus_st.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/or/networkstatus_st.h') diff --git a/src/or/networkstatus_st.h b/src/or/networkstatus_st.h index 4fc04a5aa7..4a193ad149 100644 --- a/src/or/networkstatus_st.h +++ b/src/or/networkstatus_st.h @@ -9,6 +9,13 @@ #include "or/networkstatus_sr_info_st.h" +/** Enumerates the possible seriousness values of a networkstatus document. */ +typedef enum networkstatus_type_t { + NS_TYPE_VOTE, + NS_TYPE_CONSENSUS, + NS_TYPE_OPINION, +} networkstatus_type_t; + /** A common structure to hold a v3 network status vote, or a v3 network * status consensus. */ struct networkstatus_t { @@ -92,4 +99,3 @@ struct networkstatus_t { }; #endif - -- cgit v1.2.3-54-g00ecf