circuitmux_ewma.h 731 B

1234567891011121314151617181920212223242526272829
  1. /* * Copyright (c) 2012-2016, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. /**
  4. * \file circuitmux_ewma.h
  5. * \brief Header file for circuitmux_ewma.c
  6. **/
  7. #ifndef TOR_CIRCUITMUX_EWMA_H
  8. #define TOR_CIRCUITMUX_EWMA_H
  9. #include "or.h"
  10. #include "circuitmux.h"
  11. /* Everything but circuitmux_ewma.c should see this extern */
  12. #ifndef TOR_CIRCUITMUX_EWMA_C_
  13. extern circuitmux_policy_t ewma_policy;
  14. #endif /* !(TOR_CIRCUITMUX_EWMA_C_) */
  15. /* Externally visible EWMA functions */
  16. int cell_ewma_enabled(void);
  17. unsigned int cell_ewma_get_tick(void);
  18. void cell_ewma_set_scale_factor(const or_options_t *options,
  19. const networkstatus_t *consensus);
  20. #endif /* TOR_CIRCUITMUX_EWMA_H */