aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitpadding.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-03-20 17:41:10 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-05-16 14:05:58 +0300
commit39c52d14a619c9944321f404c74c9129a5e664cb (patch)
tree3fbedb188ac7be8a0e8a7d9cc86d1e278377cf15 /src/core/or/circuitpadding.h
parenta014e01b686cbe84bcfc9907d0a98ac71be91e3e (diff)
downloadtor-39c52d14a619c9944321f404c74c9129a5e664cb.tar.gz
tor-39c52d14a619c9944321f404c74c9129a5e664cb.zip
Make register_padding_machine part of the public API.
We are gonna use this function to register our new machine.
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r--src/core/or/circuitpadding.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h
index 277a78001e..059896ddf0 100644
--- a/src/core/or/circuitpadding.h
+++ b/src/core/or/circuitpadding.h
@@ -698,6 +698,8 @@ circpad_machine_event_circ_has_no_relay_early(struct origin_circuit_t *circ);
void circpad_machines_init(void);
void circpad_machines_free(void);
+void circpad_register_padding_machine(circpad_machine_spec_t *machine,
+ smartlist_t *machine_list);
void circpad_machine_states_init(circpad_machine_spec_t *machine,
circpad_statenum_t num_states);
@@ -781,9 +783,6 @@ histogram_get_bin_upper_bound(const circpad_machine_runtime_t *mi,
extern smartlist_t *origin_padding_machines;
extern smartlist_t *relay_padding_machines;
-STATIC void
-register_padding_machine(circpad_machine_spec_t *machine,
- smartlist_t *machine_list);
#endif
#endif