diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-07-22 11:40:39 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-07-27 07:58:15 +0200 |
commit | 98d1314c7eb1ef13e298703fa50f0b6b62c35bd3 (patch) | |
tree | d278101829b8078eb8bac6012cefeaa27b780949 /src/or/cpuworker.h | |
parent | 0bfa34e1f6dd97b9860083101479969a94ee2662 (diff) | |
download | tor-98d1314c7eb1ef13e298703fa50f0b6b62c35bd3.tar.gz tor-98d1314c7eb1ef13e298703fa50f0b6b62c35bd3.zip |
Create cpuworker.h
Diffstat (limited to 'src/or/cpuworker.h')
-rw-r--r-- | src/or/cpuworker.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/or/cpuworker.h b/src/or/cpuworker.h new file mode 100644 index 0000000000..e09703f217 --- /dev/null +++ b/src/or/cpuworker.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2010, The Tor Project, Inc. */ +/* 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 + |