summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-09-02 18:57:09 +0000
committerNick Mathewson <nickm@torproject.org>2004-09-02 18:57:09 +0000
commitd6e47bec460501b5d05903e90d6cf8188cd47de6 (patch)
treecbf3d3beb47226a2b111756ff646ca3d463554a1 /src/or/or.h
parentbda41ba3fdcedf1bf9564e9b57d656bb6565f076 (diff)
downloadtor-d6e47bec460501b5d05903e90d6cf8188cd47de6.tar.gz
tor-d6e47bec460501b5d05903e90d6cf8188cd47de6.zip
Keep a deflated version of each directory so we can deliver it when requested
svn:r2328
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index a5cac7bce2..ab5ed36bb0 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -116,6 +116,7 @@
#include "../common/tortls.h"
#include "../common/log.h"
#include "../common/util.h"
+#include "../common/torgzip.h"
/** Upper bound on maximum simultaneous connections; can be lowered by
* config file. */
@@ -1185,7 +1186,7 @@ void dirserv_remove_old_servers(int age);
int dirserv_dump_directory_to_string(char *s, unsigned int maxlen,
crypto_pk_env_t *private_key);
void directory_set_dirty(void);
-size_t dirserv_get_directory(const char **cp);
+size_t dirserv_get_directory(const char **cp, int deflate);
size_t dirserv_get_runningrouters(const char **rr);
void dirserv_set_cached_directory(const char *directory, time_t when);