2010-07-22 10:08:32 +02:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2012-06-05 02:58:17 +02:00
|
|
|
* Copyright (c) 2007-2012, The Tor Project, Inc. */
|
2010-07-22 10:08:32 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file command.h
|
|
|
|
* \brief Header file for command.c.
|
|
|
|
**/
|
|
|
|
|
2012-10-12 18:13:10 +02:00
|
|
|
#ifndef TOR_COMMAND_H
|
|
|
|
#define TOR_COMMAND_H
|
2010-07-22 10:08:32 +02:00
|
|
|
|
2012-08-24 04:30:49 +02:00
|
|
|
#include "channel.h"
|
|
|
|
|
|
|
|
void command_process_cell(channel_t *chan, cell_t *cell);
|
|
|
|
void command_process_var_cell(channel_t *chan, var_cell_t *cell);
|
|
|
|
void command_setup_channel(channel_t *chan);
|
2012-10-09 09:51:33 +02:00
|
|
|
void command_setup_listener(channel_listener_t *chan_l);
|
2010-07-22 10:08:32 +02:00
|
|
|
|
|
|
|
extern uint64_t stats_n_padding_cells_processed;
|
|
|
|
extern uint64_t stats_n_create_cells_processed;
|
|
|
|
extern uint64_t stats_n_created_cells_processed;
|
|
|
|
extern uint64_t stats_n_relay_cells_processed;
|
|
|
|
extern uint64_t stats_n_destroy_cells_processed;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|