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 $
10 #ifndef __TRANSMISSION__
11 #error only libtransmission should #include this header.
14 #ifndef TR_PLATFORM_QUOTA_H
15 #define TR_PLATFORM_QUOTA_H
18 * @addtogroup tr_session Session
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
);