diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-12-08 04:39:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-12-08 04:39:13 +0000 |
commit | cf04e1e6e75373ab28f7f27413bf62ad71881fb3 (patch) | |
tree | 66092a5d56f00e53dc561a7beaa396ac199b2335 /src/or/circuitbuild.c | |
parent | 1567e13dc853bcba4b75789d25a318ada9f81fab (diff) | |
download | tor-cf04e1e6e75373ab28f7f27413bf62ad71881fb3.tar.gz tor-cf04e1e6e75373ab28f7f27413bf62ad71881fb3.zip |
r11479@Kushana: nickm | 2006-12-07 23:38:54 -0500
Refactor GETINFO into a table-driven dispatch, as suggested by arma. My brain hurts.
svn:r9052
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 958894d724..cf50d71aad 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -2447,8 +2447,11 @@ entry_guards_update_state(or_state_t *state) * For backward compatibility, we also handle the string "helper-nodes". * */ int -entry_guards_getinfo(int use_long_names, const char *question, char **answer) +getinfo_helper_entry_guards(control_connection_t *conn, + const char *question, char **answer) { + int use_long_names = conn->use_long_names; + if (!strcmp(question,"entry-guards") || !strcmp(question,"helper-nodes")) { smartlist_t *sl = smartlist_create(); |