aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitpadding.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-04-17 14:52:51 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-05-16 14:07:25 +0300
commit69a277f635d9f5d6e40d1f1e85110621b5c49169 (patch)
tree6fec1310a48b0f11dda5610e4021aed1373fe10b /src/core/or/circuitpadding.h
parent5791bc9d768df8897bc471dba4def75c812cfcf2 (diff)
downloadtor-69a277f635d9f5d6e40d1f1e85110621b5c49169.tar.gz
tor-69a277f635d9f5d6e40d1f1e85110621b5c49169.zip
Introduce circpad free_all() function.
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r--src/core/or/circuitpadding.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h
index 059896ddf0..c7c5f6c690 100644
--- a/src/core/or/circuitpadding.h
+++ b/src/core/or/circuitpadding.h
@@ -738,7 +738,13 @@ circpad_machine_spec_transition, (circpad_machine_runtime_t *mi,
circpad_decision_t circpad_send_padding_cell_for_callback(
circpad_machine_runtime_t *mi);
+void circpad_free_all(void);
+
#ifdef CIRCUITPADDING_PRIVATE
+STATIC void machine_spec_free_(circpad_machine_spec_t *m);
+#define machine_spec_free(chan) \
+ FREE_AND_NULL(circpad_machine_spec_t,machine_spec_free_, (m))
+
STATIC circpad_delay_t
circpad_machine_sample_delay(circpad_machine_runtime_t *mi);