mirror of
https://github.com/transmission/transmission
synced 2025-01-04 22:11:23 +00:00
d7930984ef
There're places where manual intervention is still required as uncrustify is not ideal (unfortunately), but at least one may rely on it to do the right thing most of the time (e.g. when sending in a patch). The style itself is quite different from what we had before but making it uniform across all the codebase is the key. I also hope that it'll make the code more readable (YMMV) and less sensitive to further changes.
20 lines
574 B
C
20 lines
574 B
C
/*
|
|
* This file Copyright (C) 2007-2014 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU GPL versions 2 or 3
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
*/
|
|
|
|
#ifndef __TRANSMISSION__
|
|
#error only libtransmission should #include this header.
|
|
#endif
|
|
|
|
#pragma once
|
|
|
|
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);
|