diff options
author | Andrea Shepard <andrea@torproject.org> | 2012-09-27 12:20:05 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2012-10-10 00:44:45 -0700 |
commit | eade7a37cdc9c128d66d2c2c74d7056516fde364 (patch) | |
tree | 2b7e0152fc4a701d3bc333900f50eb522f474a52 /src/or/circuitmux.h | |
parent | 930e3d611a7983dc0d5558b21b79e81f72cb7158 (diff) | |
download | tor-eade7a37cdc9c128d66d2c2c74d7056516fde364.tar.gz tor-eade7a37cdc9c128d66d2c2c74d7056516fde364.zip |
Add cmux policy notify_set_n_cells() and notify_xmit_cells() callbacks
Diffstat (limited to 'src/or/circuitmux.h')
-rw-r--r-- | src/or/circuitmux.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/or/circuitmux.h b/src/or/circuitmux.h index e344b6ed91..dcacb8e15d 100644 --- a/src/or/circuitmux.h +++ b/src/or/circuitmux.h @@ -42,6 +42,17 @@ struct circuitmux_policy_s { circuitmux_policy_data_t *pol_data, circuit_t *circ, circuitmux_policy_circ_data_t *pol_circ_data); + /* Notify of arriving/transmitted cells on a circuit */ + void (*notify_set_n_cells)(circuitmux_t *cmux, + circuitmux_policy_data_t *pol_data, + circuit_t *circ, + circuitmux_policy_circ_data_t *pol_circ_data, + unsigned int n_cells); + void (*notify_xmit_cells)(circuitmux_t *cmux, + circuitmux_policy_data_t *pol_data, + circuit_t *circ, + circuitmux_policy_circ_data_t *pol_circ_data, + unsigned int n_cells); }; /* |