diff options
author | David Goulet <dgoulet@ev0ke.net> | 2015-06-25 16:13:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-11 09:34:41 -0400 |
commit | 1070be8217c26c8917323ead944124e2cd14f9f2 (patch) | |
tree | 5f23c56753955ca87927a32f9ca106e946f91a1e /src/or/rendcommon.h | |
parent | d06af95ba3fdcb0c9820dcf34146ba68458d5e46 (diff) | |
download | tor-1070be8217c26c8917323ead944124e2cd14f9f2.tar.gz tor-1070be8217c26c8917323ead944124e2cd14f9f2.zip |
Use an enum for INTRO_POINT_FAILURE_*
Safer, wiser, stronger!
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/rendcommon.h')
-rw-r--r-- | src/or/rendcommon.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/rendcommon.h b/src/or/rendcommon.h index ba5e077642..3b2f86d614 100644 --- a/src/or/rendcommon.h +++ b/src/or/rendcommon.h @@ -12,6 +12,12 @@ #ifndef TOR_RENDCOMMON_H #define TOR_RENDCOMMON_H +typedef enum rend_intro_point_failure_t { + INTRO_POINT_FAILURE_GENERIC = 0, + INTRO_POINT_FAILURE_TIMEOUT = 1, + INTRO_POINT_FAILURE_UNREACHABLE = 2, +} rend_intro_point_failure_t; + /** Free all storage associated with <b>data</b> */ static INLINE void rend_data_free(rend_data_t *data) |