diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-21 12:44:46 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-11-22 15:46:15 -0500 |
commit | 6d1ea7766b4fa6265744523fb3797cf8cf40d691 (patch) | |
tree | d9c7f06efe1d75055f9e1c0c025a8b153356477a /src/or/channel.h | |
parent | e1c29a769cfc6258a8a63e00b30285aacad9124d (diff) | |
download | tor-6d1ea7766b4fa6265744523fb3797cf8cf40d691.tar.gz tor-6d1ea7766b4fa6265744523fb3797cf8cf40d691.zip |
channel: Remove unused write cell functions
The channel_write_cell() and channel_write_var_cell() can't be possibly called
nor are used by tor. We only write on the connection outbuf packed cell coming
from the scheduler that takes them from the circuit queue.
This makes channel_write_packed_cell() the only usable function. It is
simplify and now returns a code value. The reason for this is that in the next
commit(s), we'll re-queue the cell onto the circuit queue if the write fails.
Finally, channel unit tests are being removed with this commit because they do
not match the new semantic. They will be re-written in future commits.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/channel.h')
-rw-r--r-- | src/or/channel.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/channel.h b/src/or/channel.h index d72f232bc8..e4d34d4fc7 100644 --- a/src/or/channel.h +++ b/src/or/channel.h @@ -406,9 +406,7 @@ channel_listener_state_to_string(channel_listener_state_t state); /* Abstract channel operations */ void channel_mark_for_close(channel_t *chan); -void channel_write_cell(channel_t *chan, cell_t *cell); -void channel_write_packed_cell(channel_t *chan, packed_cell_t *cell); -void channel_write_var_cell(channel_t *chan, var_cell_t *cell); +int channel_write_packed_cell(channel_t *chan, packed_cell_t *cell); void channel_listener_mark_for_close(channel_listener_t *chan_l); |