Move fp_pair_t declaration to fp_pair.h.

This commit is contained in:
Nick Mathewson 2018-06-15 12:52:22 -04:00
parent f8794b0b36
commit c9e4ebf96a
4 changed files with 8 additions and 8 deletions

View File

@ -23,6 +23,7 @@
#include "directory.h" #include "directory.h"
#include "dirserv.h" #include "dirserv.h"
#include "entrynodes.h" #include "entrynodes.h"
#include "fp_pair.h"
#include "geoip.h" #include "geoip.h"
#include "hs_cache.h" #include "hs_cache.h"
#include "hs_common.h" #include "hs_common.h"

View File

@ -9,6 +9,12 @@
#ifndef _TOR_FP_PAIR_H #ifndef _TOR_FP_PAIR_H
#define _TOR_FP_PAIR_H #define _TOR_FP_PAIR_H
/** A pair of digests created by dir_split_resource_info_fingerprint_pairs() */
typedef struct {
char first[DIGEST_LEN];
char second[DIGEST_LEN];
} fp_pair_t;
/* /*
* Declare fp_pair_map_t functions and structs * Declare fp_pair_map_t functions and structs
*/ */

View File

@ -3877,14 +3877,6 @@ typedef enum {
BOOTSTRAP_STATUS_DONE=100 BOOTSTRAP_STATUS_DONE=100
} bootstrap_status_t; } bootstrap_status_t;
/********************************* directory.c ***************************/
/** A pair of digests created by dir_split_resource_info_fingerprint_pairs() */
typedef struct {
char first[DIGEST_LEN];
char second[DIGEST_LEN];
} fp_pair_t;
/********************************* dirserv.c ***************************/ /********************************* dirserv.c ***************************/
/** An enum to describe what format we're generating a routerstatus line in. /** An enum to describe what format we're generating a routerstatus line in.

View File

@ -28,6 +28,7 @@
#include "dirserv.h" #include "dirserv.h"
#include "dirauth/dirvote.h" #include "dirauth/dirvote.h"
#include "entrynodes.h" #include "entrynodes.h"
#include "fp_pair.h"
#include "hibernate.h" #include "hibernate.h"
#include "memarea.h" #include "memarea.h"
#include "networkstatus.h" #include "networkstatus.h"