2012-10-01 06:41:25 +02:00
|
|
|
/* * Copyright (c) 2012, The Tor Project, Inc. */
|
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file circuitmux_ewma.h
|
|
|
|
* \brief Header file for circuitmux_ewma.c
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _TOR_CIRCUITMUX_EWMA_H
|
|
|
|
#define _TOR_CIRCUITMUX_EWMA_H
|
|
|
|
|
|
|
|
#include "or.h"
|
|
|
|
#include "circuitmux.h"
|
|
|
|
|
2012-10-01 10:54:42 +02:00
|
|
|
/* 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 */
|
2012-10-02 05:08:36 +02:00
|
|
|
int cell_ewma_enabled(void);
|
2012-10-01 10:54:42 +02:00
|
|
|
unsigned int cell_ewma_get_tick(void);
|
|
|
|
void cell_ewma_set_scale_factor(const or_options_t *options,
|
|
|
|
const networkstatus_t *consensus);
|
2012-10-01 06:41:25 +02:00
|
|
|
|
|
|
|
#endif /* _TOR_CIRCUITMUX_EWMA_H */
|
|
|
|
|