(trunk) first draft of changing the FreeSpace API to behave as https://trac.transmissionbt.com/ticket/4076#comment:25 -- libT, rpc, qt, and gtk implementations.

This commit is contained in:
Jordan Lee
2013-02-09 04:05:03 +00:00
parent 794a0c1d80
commit cd09204a6e
31 changed files with 552 additions and 190 deletions

View File

@@ -291,10 +291,10 @@ void tr_sessionSetDownloadDir (tr_session * session, const char * downloadDir);
const char * tr_sessionGetDownloadDir (const tr_session * session);
/**
* @brief Get available disk space (in bytes) for the default download folder.
* @brief Get available disk space (in bytes) for the specified directory.
* @return zero or positive integer on success, -1 in case of error.
*/
int64_t tr_sessionGetDownloadDirFreeSpace (tr_session * session);
int64_t tr_sessionGetDirFreeSpace (tr_session * session, const char * dir);
/**
* @brief Set the torrent's bandwidth priority.