Merge branch 'maint-0.4.8'
[tor.git] / src / core / or / status.h
blob55492d24da91cec325eb3397296c47bf03aeef41
1 /* Copyright (c) 2010-2021, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
4 /**
5 * @file status.h
6 * @brief Header for status.c
7 **/
9 #ifndef TOR_STATUS_H
10 #define TOR_STATUS_H
12 #include "lib/testsupport/testsupport.h"
14 void note_connection(bool inbound, const connection_t *conn);
15 void note_circ_closed_for_unrecognized_cells(time_t n_seconds,
16 uint32_t n_cells);
18 int log_heartbeat(time_t now);
20 #ifdef STATUS_PRIVATE
21 STATIC int count_circuits(void);
22 STATIC char *secs_to_uptime(long secs);
23 STATIC char *bytes_to_usage(uint64_t bytes);
24 #endif
26 #endif /* !defined(TOR_STATUS_H) */