transmission 2.83
[tomato.git] / release / src / router / transmission / libtransmission / platform-quota.h
bloba6acfc254187312cfa2b3cacfa9d1c08846776a8
1 /*
2 * This file Copyright (C) 2013-2014 Mnemosyne LLC
4 * It may be used under the GNU GPL versions 2 or 3
5 * or any future license endorsed by Mnemosyne LLC.
7 * $Id: platform-quota.h 14241 2014-01-21 03:10:30Z jordan $
8 */
10 #ifndef __TRANSMISSION__
11 #error only libtransmission should #include this header.
12 #endif
14 #ifndef TR_PLATFORM_QUOTA_H
15 #define TR_PLATFORM_QUOTA_H
17 /**
18 * @addtogroup tr_session Session
19 * @{
22 struct tr_device_info
24 char * path;
25 char * device;
26 char * fstype;
29 struct tr_device_info * tr_device_info_create (const char * path);
31 /** If the disk quota is enabled and readable, this returns how much is available in the quota.
32 Otherwise, it returns how much is available on the disk, or -1 on error. */
33 int64_t tr_device_info_get_free_space (const struct tr_device_info * info);
35 void tr_device_info_free (struct tr_device_info * info);
37 /** @} */
39 #endif