2010-07-22 11:40:39 +02:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2011-01-03 17:52:09 +01:00
|
|
|
* Copyright (c) 2007-2011, The Tor Project, Inc. */
|
2010-07-22 11:40:39 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file cpuworker.h
|
|
|
|
* \brief Header file for cpuworker.c.
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _TOR_CPUWORKER_H
|
|
|
|
#define _TOR_CPUWORKER_H
|
|
|
|
|
|
|
|
void cpu_init(void);
|
|
|
|
void cpuworkers_rotate(void);
|
|
|
|
int connection_cpu_finished_flushing(connection_t *conn);
|
|
|
|
int connection_cpu_reached_eof(connection_t *conn);
|
|
|
|
int connection_cpu_process_inbuf(connection_t *conn);
|
|
|
|
int assign_onionskin_to_cpuworker(connection_t *cpuworker,
|
|
|
|
or_circuit_t *circ,
|
|
|
|
char *onionskin);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|