Tor 0.4.9.0-alpha-dev
status.h
Go to the documentation of this file.
1/* Copyright (c) 2010-2021, 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
14void note_connection(bool inbound, const connection_t *conn);
15void note_circ_closed_for_unrecognized_cells(time_t n_seconds,
16 uint32_t n_cells);
17
18int log_heartbeat(time_t now);
19
20#ifdef STATUS_PRIVATE
21STATIC int count_circuits(void);
22STATIC char *secs_to_uptime(long secs);
23STATIC char *bytes_to_usage(uint64_t bytes);
24#endif
25
26#endif /* !defined(TOR_STATUS_H) */
STATIC int count_circuits(void)
Definition: status.c:45
STATIC char * bytes_to_usage(uint64_t bytes)
Definition: status.c:80
STATIC char * secs_to_uptime(long secs)
Definition: status.c:53
void note_circ_closed_for_unrecognized_cells(time_t n_seconds, uint32_t n_cells)
Definition: status.c:171
void note_connection(bool inbound, const connection_t *conn)
Definition: status.c:134
int log_heartbeat(time_t now)
Definition: status.c:183
Macros to implement mocking and selective exposure for the test code.
#define STATIC
Definition: testsupport.h:32