cpuworker.h 753 B

12345678910111213141516171819202122232425
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2012, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file cpuworker.h
  8. * \brief Header file for cpuworker.c.
  9. **/
  10. #ifndef _TOR_CPUWORKER_H
  11. #define _TOR_CPUWORKER_H
  12. void cpu_init(void);
  13. void cpuworkers_rotate(void);
  14. int connection_cpu_finished_flushing(connection_t *conn);
  15. int connection_cpu_reached_eof(connection_t *conn);
  16. int connection_cpu_process_inbuf(connection_t *conn);
  17. int assign_onionskin_to_cpuworker(connection_t *cpuworker,
  18. or_circuit_t *circ,
  19. char *onionskin);
  20. #endif