source: trunk/libtransmission/platform-quota.h

Last change on this file was 14724, checked in by jordan, 5 years ago

use '#pragma once' instead of #ifndef..#define..#endif guards

  • Property svn:keywords set to Date Rev Author Id
File size: 798 bytes
Line 
1/*
2 * This file Copyright (C) 2013-2014 Mnemosyne LLC
3 *
4 * It may be used under the GNU GPL versions 2 or 3
5 * or any future license endorsed by Mnemosyne LLC.
6 *
7 * $Id: platform-quota.h 14724 2016-03-29 16:37:21Z mikedld $
8 */
9
10#ifndef __TRANSMISSION__
11 #error only libtransmission should #include this header.
12#endif
13
14#pragma once
15
16/**
17 * @addtogroup tr_session Session
18 * @{
19 */
20
21struct tr_device_info
22{
23  char * path;
24  char * device;
25  char * fstype;
26};
27
28struct tr_device_info * tr_device_info_create (const char * path);
29
30/** If the disk quota is enabled and readable, this returns how much is available in the quota.
31    Otherwise, it returns how much is available on the disk, or -1 on error. */
32int64_t tr_device_info_get_free_space (const struct tr_device_info * info);
33
34void tr_device_info_free (struct tr_device_info * info);
35
36/** @} */
37
Note: See TracBrowser for help on using the repository browser.