Tor  0.4.6.0-alpha-dev
status.h
Go to the documentation of this file.
1 /* Copyright (c) 2010-2020, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
4 /**
5  * @file status.h
6  * @brief Header for status.c
7  **/
8 
9 #ifndef TOR_STATUS_H
10 #define TOR_STATUS_H
11 
13 
14 void note_connection(bool inbound, int family);
15 int log_heartbeat(time_t now);
16 
17 #ifdef STATUS_PRIVATE
18 STATIC int count_circuits(void);
19 STATIC char *secs_to_uptime(long secs);
20 STATIC char *bytes_to_usage(uint64_t bytes);
21 #endif
22 
23 #endif /* !defined(TOR_STATUS_H) */
bytes_to_usage
STATIC char * bytes_to_usage(uint64_t bytes)
Definition: status.c:79
count_circuits
STATIC int count_circuits(void)
Definition: status.c:44
log_heartbeat
int log_heartbeat(time_t now)
Definition: status.c:155
secs_to_uptime
STATIC char * secs_to_uptime(long secs)
Definition: status.c:52
note_connection
void note_connection(bool inbound, int family)
Definition: status.c:134
testsupport.h
Macros to implement mocking and selective exposure for the test code.
STATIC
#define STATIC
Definition: testsupport.h:32