aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-14 02:36:29 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-14 02:36:29 +0000
commit7c6679d8dc260f6fb6f183c83b0d058b3ba0852c (patch)
tree5efc4885c13c0177f05fa750f280b89ad855bd99 /src/or/or.h
parent93be26a74a843e0aa671f04f0f62b2b3590f6e11 (diff)
downloadtor-7c6679d8dc260f6fb6f183c83b0d058b3ba0852c.tar
tor-7c6679d8dc260f6fb6f183c83b0d058b3ba0852c.tar.gz
Add new config.c function to set options that can fail, and roll back if they do. This should solve the setconf-an-impossible-port bug.
svn:r5046
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 3fd661a2b..a2ac06ece 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1439,7 +1439,7 @@ extern unsigned long stats_n_destroy_cells_processed;
/********************************* config.c ***************************/
or_options_t *get_options(void);
-void set_options(or_options_t *new_val);
+int set_options(or_options_t *new_val);
void config_free_all(void);
const char *safe_str(const char *address);
@@ -1492,7 +1492,8 @@ void _connection_mark_for_close(connection_t *conn,int line, const char *file);
void connection_expire_held_open(void);
int connection_connect(connection_t *conn, char *address, uint32_t addr, uint16_t port);
-int retry_all_listeners(int force);
+int retry_all_listeners(int force, smartlist_t *replaced_conns,
+ smartlist_t *new_conns);
void connection_bucket_init(void);
void connection_bucket_refill(struct timeval *now);