mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 15:42:34 +01:00
25 lines
750 B
C
25 lines
750 B
C
/* Copyright 2018-2019, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
/**
|
|
* \file nss_countbytes.h
|
|
* \brief Header for nss_countbytes.c, which lets us count the number of
|
|
* bytes actually written on a PRFileDesc.
|
|
**/
|
|
|
|
#ifndef TOR_NSS_COUNTBYTES_H
|
|
#define TOR_NSS_COUNTBYTES_H
|
|
|
|
#include "lib/cc/torint.h"
|
|
|
|
void tor_nss_countbytes_init(void);
|
|
|
|
struct PRFileDesc;
|
|
struct PRFileDesc *tor_wrap_prfiledesc_with_byte_counter(
|
|
struct PRFileDesc *stack);
|
|
|
|
int tor_get_prfiledesc_byte_counts(struct PRFileDesc *fd,
|
|
uint64_t *n_read_out,
|
|
uint64_t *n_written_out);
|
|
|
|
#endif /* !defined(TOR_NSS_COUNTBYTES_H) */
|