Move measured_bw_line_t into dirserv.h

This commit is contained in:
Nick Mathewson
2018-06-15 12:54:55 -04:00
parent c9e4ebf96a
commit e13f59416c
2 changed files with 8 additions and 9 deletions
+8
View File
@@ -87,6 +87,14 @@ typedef struct spooled_resource_t {
off_t cached_dir_offset;
} spooled_resource_t;
#ifdef DIRSERV_PRIVATE
typedef struct measured_bw_line_t {
char node_id[DIGEST_LEN];
char node_hex[MAX_HEX_NICKNAME_LEN+1];
long int bw_kb;
} measured_bw_line_t;
#endif /* defined(DIRSERV_PRIVATE) */
int connection_dirserv_flushed_some(dir_connection_t *conn);
int dirserv_add_own_fingerprint(crypto_pk_t *pk);
-9
View File
@@ -3894,15 +3894,6 @@ typedef enum {
NS_V3_CONSENSUS_MICRODESC
} routerstatus_format_type_t;
#ifdef DIRSERV_PRIVATE
typedef struct measured_bw_line_t {
char node_id[DIGEST_LEN];
char node_hex[MAX_HEX_NICKNAME_LEN+1];
long int bw_kb;
} measured_bw_line_t;
#endif /* defined(DIRSERV_PRIVATE) */
/********************************* dirvote.c ************************/
typedef struct vote_timing_t vote_timing_t;