circuitmux_ewma.h 700 B

12345678910111213141516171819202122232425262728
  1. /* * Copyright (c) 2012, 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. unsigned int cell_ewma_get_tick(void);
  17. void cell_ewma_set_scale_factor(const or_options_t *options,
  18. const networkstatus_t *consensus);
  19. #endif /* _TOR_CIRCUITMUX_EWMA_H */