diff options
author | David Goulet <dgoulet@torproject.org> | 2018-02-15 13:51:34 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-02-15 13:51:34 -0500 |
commit | 9af5b625e8be64ed63ad5b19ae6c4b450e977ce0 (patch) | |
tree | 002b0236d9b9511a575d8678760d2978de8118ab /src/or/circuitmux_ewma.h | |
parent | 6b1dba214db3058b143bbb4d4c4bdfee32d100f1 (diff) | |
download | tor-9af5b625e8be64ed63ad5b19ae6c4b450e977ce0.tar.gz tor-9af5b625e8be64ed63ad5b19ae6c4b450e977ce0.zip |
cmux: Rename cell_ewma_set_scale_factor()
It is rename to something more meaningful that explains what it does exactly
which is sets the EWMA options (currently only one exists). The new name is
cmux_ewma_set_options().
Also, remove a public function from circuitmux_ewma.h that is only used in the
C file. Make it static inline as well.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/circuitmux_ewma.h')
-rw-r--r-- | src/or/circuitmux_ewma.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitmux_ewma.h b/src/or/circuitmux_ewma.h index 4e9e512df9..2ef8c2586d 100644 --- a/src/or/circuitmux_ewma.h +++ b/src/or/circuitmux_ewma.h @@ -12,12 +12,12 @@ #include "or.h" #include "circuitmux.h" +/* The public EWMA policy callbacks object. */ extern circuitmux_policy_t ewma_policy; /* Externally visible EWMA functions */ -unsigned int cell_ewma_get_tick(void); -void cell_ewma_set_scale_factor(const or_options_t *options, - const networkstatus_t *consensus); +void cmux_ewma_set_options(const or_options_t *options, + const networkstatus_t *consensus); #endif /* !defined(TOR_CIRCUITMUX_EWMA_H) */ |