diff options
author | David Goulet <dgoulet@torproject.org> | 2019-10-30 11:44:50 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-10-30 16:12:56 -0400 |
commit | cfc60e566cf4100400a8a411faccc9744c07cc8b (patch) | |
tree | 78e3673cd02ab7e39637a4f4e71caefcc3fb8ebd /src/core/or/circuitlist.h | |
parent | 183f9e490ff0aa5100567b1c753456904ca58a45 (diff) | |
download | tor-cfc60e566cf4100400a8a411faccc9744c07cc8b.tar.gz tor-cfc60e566cf4100400a8a411faccc9744c07cc8b.zip |
circ: Add an handle to circuit_t
Closes #32343
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/circuitlist.h')
-rw-r--r-- | src/core/or/circuitlist.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/or/circuitlist.h b/src/core/or/circuitlist.h index 80c1f7ac4e..afbf1ad98f 100644 --- a/src/core/or/circuitlist.h +++ b/src/core/or/circuitlist.h @@ -12,6 +12,7 @@ #ifndef TOR_CIRCUITLIST_H #define TOR_CIRCUITLIST_H +#include "lib/container/handles.h" #include "lib/testsupport/testsupport.h" #include "feature/hs/hs_ident.h" #include "core/or/ocirc_event.h" @@ -242,6 +243,11 @@ MOCK_DECL(void, channel_note_destroy_not_pending, smartlist_t *circuit_find_circuits_to_upgrade_from_guard_wait(void); +/* Declare the handle helpers */ +HANDLE_DECL(circuit, circuit_t, ) +#define circuit_handle_free(h) \ + FREE_AND_NULL(circuit_handle_t, circuit_handle_free_, (h)) + #ifdef CIRCUITLIST_PRIVATE STATIC void circuit_free_(circuit_t *circ); #define circuit_free(circ) FREE_AND_NULL(circuit_t, circuit_free_, (circ)) |