mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Extract the non-stats part of geoip into a new src/lib/geoip.
This commit is contained in:
@@ -117,7 +117,6 @@ LIBTOR_APP_A_SOURCES = \
|
||||
src/feature/rend/rendcommon.c \
|
||||
src/feature/rend/rendmid.c \
|
||||
src/feature/rend/rendservice.c \
|
||||
src/feature/stats/geoip.c \
|
||||
src/feature/stats/geoip_stats.c \
|
||||
src/feature/stats/rephist.c \
|
||||
src/feature/stats/predict_ports.c
|
||||
@@ -350,7 +349,6 @@ noinst_HEADERS += \
|
||||
src/feature/rend/rendcommon.h \
|
||||
src/feature/rend/rendmid.h \
|
||||
src/feature/rend/rendservice.h \
|
||||
src/feature/stats/geoip.h \
|
||||
src/feature/stats/geoip_stats.h \
|
||||
src/feature/stats/rephist.h \
|
||||
src/feature/stats/predict_ports.h
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
#include "feature/relay/routermode.h"
|
||||
#include "feature/rend/rendclient.h"
|
||||
#include "feature/rend/rendcommon.h"
|
||||
#include "feature/stats/geoip.h"
|
||||
#include "lib/geoip/geoip.h"
|
||||
#include "feature/stats/rephist.h"
|
||||
#include "lib/crypt_ops/crypto_util.h"
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "lib/crypt_ops/crypto_util.h"
|
||||
#include "feature/dirauth/reachability.h"
|
||||
#include "feature/client/entrynodes.h"
|
||||
#include "feature/stats/geoip.h"
|
||||
#include "lib/geoip/geoip.h"
|
||||
#include "core/mainloop/mainloop.h"
|
||||
#include "trunnel/link_handshake.h"
|
||||
#include "feature/nodelist/microdesc.h"
|
||||
|
||||
+1
-3
@@ -41,6 +41,7 @@
|
||||
#include "lib/fs/mmap.h"
|
||||
#include "lib/fs/path.h"
|
||||
#include "lib/fs/userdb.h"
|
||||
#include "lib/geoip/country.h"
|
||||
#include "lib/intmath/addsub.h"
|
||||
#include "lib/intmath/bits.h"
|
||||
#include "lib/intmath/cmp.h"
|
||||
@@ -798,9 +799,6 @@ typedef struct download_status_t download_status_t;
|
||||
|
||||
typedef struct signed_descriptor_t signed_descriptor_t;
|
||||
|
||||
/** A signed integer representing a country code. */
|
||||
typedef int16_t country_t;
|
||||
|
||||
/** Flags used to summarize the declared protocol versions of a relay,
|
||||
* so we don't need to parse them again and again. */
|
||||
typedef struct protover_summary_flags_t {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "feature/relay/router.h"
|
||||
#include "feature/relay/routermode.h"
|
||||
#include "feature/nodelist/routerparse.h"
|
||||
#include "feature/stats/geoip.h"
|
||||
#include "lib/geoip/geoip.h"
|
||||
#include "ht.h"
|
||||
#include "lib/encoding/confline.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user