diff options
author | Andrea Shepard <andrea@torproject.org> | 2012-10-01 01:54:42 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2012-10-10 00:44:46 -0700 |
commit | bbb2c31d26f2eb1ad46433bcfd321d960a6c7862 (patch) | |
tree | db899a09d8bedc2d7715b40def4069734d638eb9 /src/or/circuitmux_ewma.h | |
parent | 0af2eab9a2698e6a50aec4238fc529f152b77a89 (diff) | |
download | tor-bbb2c31d26f2eb1ad46433bcfd321d960a6c7862.tar.gz tor-bbb2c31d26f2eb1ad46433bcfd321d960a6c7862.zip |
Move all EWMA code into circuitmux.c and implement circuitmux_policy_t methods using it
Diffstat (limited to 'src/or/circuitmux_ewma.h')
-rw-r--r-- | src/or/circuitmux_ewma.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/or/circuitmux_ewma.h b/src/or/circuitmux_ewma.h index fcbe29836f..0968461c99 100644 --- a/src/or/circuitmux_ewma.h +++ b/src/or/circuitmux_ewma.h @@ -12,7 +12,17 @@ #include "or.h" #include "circuitmux.h" -/* TODO */ +/* Everything but circuitmux_ewma.c should see this extern */ +#ifndef _TOR_CIRCUITMUX_EWMA_C + +extern circuitmux_policy_t ewma_policy; + +#endif /* !(_TOR_CIRCUITMUX_EWMA_C) */ + +/* 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); #endif /* _TOR_CIRCUITMUX_EWMA_H */ |