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 */
8 * @file destroy_cell_queue_st.h
9 * @brief Destroy-cell queue structures
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
;
21 uint32_t inserted_timestamp
; /**< Time (in timestamp units) when this cell
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) */