2022-01-20 18:27:56 +00:00
|
|
|
// This file Copyright 2007-2022 Mnemosyne LLC.
|
|
|
|
// It may be used under GPLv2 (SPDX: GPL-2.0), GPLv3 (SPDX: GPL-3.0),
|
|
|
|
// or any future license endorsed by Mnemosyne LLC.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2007-11-21 20:03:53 +00:00
|
|
|
|
2017-11-14 20:21:28 +00:00
|
|
|
#pragma once
|
|
|
|
|
2008-11-24 20:17:36 +00:00
|
|
|
#ifndef __TRANSMISSION__
|
2017-04-19 12:04:45 +00:00
|
|
|
#error only libtransmission should #include this header.
|
2008-11-24 20:17:36 +00:00
|
|
|
#endif
|
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
void tr_statsInit(tr_session* session);
|
|
|
|
void tr_statsClose(tr_session* session);
|
|
|
|
void tr_statsSaveDirty(tr_session* session);
|
|
|
|
void tr_statsAddUploaded(tr_session* session, uint32_t bytes);
|
|
|
|
void tr_statsAddDownloaded(tr_session* session, uint32_t bytes);
|
|
|
|
void tr_statsFileCreated(tr_session* session);
|