fallbackdir: Update list generated on August 30, 2023
[tor.git] / src / core / or / destroy_cell_queue_st.h
blob224c82ad9ddaef87ae02f158a79946bc1b8d3298
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-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
7 /**
8 * @file destroy_cell_queue_st.h
9 * @brief Destroy-cell queue structures
10 **/
12 #ifndef DESTROY_CELL_QUEUE_ST_H
13 #define DESTROY_CELL_QUEUE_ST_H
15 #include "core/or/cell_queue_st.h"
17 /** A single queued destroy cell. */
18 struct destroy_cell_t {
19 TOR_SIMPLEQ_ENTRY(destroy_cell_t) next;
20 circid_t circid;
21 uint32_t inserted_timestamp; /**< Time (in timestamp units) when this cell
22 * was inserted */
23 uint8_t reason;
26 /** A queue of destroy cells on a channel. */
27 struct destroy_cell_queue_t {
28 /** Linked list of packed_cell_t */
29 TOR_SIMPLEQ_HEAD(dcell_simpleq_t, destroy_cell_t) head;
30 int n; /**< The number of cells in the queue. */
33 #endif /* !defined(DESTROY_CELL_QUEUE_ST_H) */