diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-04 22:33:06 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-04 22:33:06 +0000 |
commit | 19868fe96820f22601fd3fdac24dfeabc4e6a8c4 (patch) | |
tree | 2e5f75d8124d92e8cc25220f4b3145c94b8eb7b4 /src/or/or.h | |
parent | 1b49198081e8c364e78fc84773974d2481dba94b (diff) | |
download | tor-19868fe96820f22601fd3fdac24dfeabc4e6a8c4.tar.gz tor-19868fe96820f22601fd3fdac24dfeabc4e6a8c4.zip |
Move accounting code into hibernate; start adding logic to track bandwidth-per-seconds-active
svn:r2680
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/or.h b/src/or/or.h index ab78ac40c3..db20f75e36 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1097,6 +1097,8 @@ void exit_policy_free(struct exit_policy_t *p); const char *get_data_directory(or_options_t *options); struct config_line_t *config_get_assigned_option(or_options_t *options, const char *key); +struct config_line_t *config_line_prepend(struct config_line_t *front, + const char *key, const char *val); /********************************* connection.c ***************************/ @@ -1301,6 +1303,9 @@ int dns_resolve(connection_t *exitconn); /********************************* hibernate.c **********************/ +void configure_accounting(time_t now); +void accounting_run_housekeeping(time_t now); +void accounting_add_bytes(size_t n_read, size_t n_written, int seconds); void hibernate_begin_shutdown(void); int we_are_hibernating(void); void consider_hibernation(time_t now); @@ -1332,11 +1337,6 @@ int proxy_mode(void); void handle_signals(int is_parent); void tor_cleanup(void); -int accounting_hard_limit_reached(void); -int accounting_soft_limit_reached(void); -time_t accounting_get_wakeup_time(void); -int accounting_should_hibernate(void); - int tor_main(int argc, char *argv[]); /********************************* onion.c ***************************/ |