summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2013-08-05 20:54:54 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2013-08-05 21:05:39 +0300
commit0c4baa016feadd945172022ab91ff11bb0bc2117 (patch)
tree23376050430f99f73c12d9d28f06cd359002198e /src/or
parent00a7d1af9f0b1658f74fca00cff339696d326c4d (diff)
downloadtor-0c4baa016feadd945172022ab91ff11bb0bc2117.tar.gz
tor-0c4baa016feadd945172022ab91ff11bb0bc2117.zip
Also test that server transports get written to Tor's state.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/statefile.c3
-rw-r--r--src/or/statefile.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/src/or/statefile.c b/src/or/statefile.c
index aac8850b16..8736c35a2d 100644
--- a/src/or/statefile.c
+++ b/src/or/statefile.c
@@ -4,6 +4,7 @@
* Copyright (c) 2007-2013, The Tor Project, Inc. */
/* See LICENSE for licensing information */
+#define STATEFILE_PRIVATE
#include "or.h"
#include "circuitstats.h"
#include "config.h"
@@ -449,7 +450,7 @@ or_state_save(time_t now)
/** Return the config line for transport <b>transport</b> in the current state.
* Return NULL if there is no config line for <b>transport</b>. */
-static config_line_t *
+STATIC config_line_t *
get_transport_in_state_by_name(const char *transport)
{
or_state_t *or_state = get_or_state();
diff --git a/src/or/statefile.h b/src/or/statefile.h
index 762b0f5ee1..c1413ff952 100644
--- a/src/or/statefile.h
+++ b/src/or/statefile.h
@@ -18,5 +18,9 @@ int or_state_load(void);
int or_state_loaded(void);
void or_state_free_all(void);
+#ifdef STATEFILE_PRIVATE
+STATIC config_line_t *get_transport_in_state_by_name(const char *transport);
+#endif
+
#endif