diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2013-05-24 12:29:42 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2013-05-25 19:51:38 +0200 |
commit | 26b49f525d5b2a4781755d72738491c016dd15a9 (patch) | |
tree | 98fbbb6fe3b79612e2c0adc2a44c5b83480a0720 /src/or/command.h | |
parent | 2f893624abb65a0df4f0f8ca6fbbe0c00fbf216a (diff) | |
download | tor-26b49f525d5b2a4781755d72738491c016dd15a9.tar.gz tor-26b49f525d5b2a4781755d72738491c016dd15a9.zip |
Tweak CELL_STATS event based on comments by nickm.
- Move cell_command_to_string from control.c to command.c.
- Use accessor for global_circuitlist instead of extern.
- Add a struct for cell statistics by command instead of six arrays.
- Split up control_event_circuit_cell_stats by using two helper functions.
- Add TestingEnableCellStatsEvent option.
- Prepare functions for testing.
- Rename a few variables and document a few things better.
Diffstat (limited to 'src/or/command.h')
-rw-r--r-- | src/or/command.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/command.h b/src/or/command.h index 913f46a5cd..adea6adeaa 100644 --- a/src/or/command.h +++ b/src/or/command.h @@ -19,6 +19,8 @@ void command_process_var_cell(channel_t *chan, var_cell_t *cell); void command_setup_channel(channel_t *chan); void command_setup_listener(channel_listener_t *chan_l); +const char *cell_command_to_string(uint8_t command); + extern uint64_t stats_n_padding_cells_processed; extern uint64_t stats_n_create_cells_processed; extern uint64_t stats_n_created_cells_processed; |