onion_queue.h 674 B

1234567891011121314151617181920212223
  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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file onion_queue.h
  8. * \brief Header file for onion_queue.c.
  9. **/
  10. #ifndef TOR_ONION_QUEUE_H
  11. #define TOR_ONION_QUEUE_H
  12. struct create_cell_t;
  13. int onion_pending_add(or_circuit_t *circ, struct create_cell_t *onionskin);
  14. or_circuit_t *onion_next_task(struct create_cell_t **onionskin_out);
  15. int onion_num_pending(uint16_t handshake_type);
  16. void onion_pending_remove(or_circuit_t *circ);
  17. void clear_pending_onions(void);
  18. #endif