mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Add total disk space to free-space RPC request (#1682)
* Add total space to free-space endpoint * Update docs
This commit is contained in:
@@ -27,6 +27,8 @@ struct timeval;
|
||||
|
||||
struct tr_error;
|
||||
|
||||
struct tr_disk_space;
|
||||
|
||||
/**
|
||||
* @addtogroup utils Utilities
|
||||
* @{
|
||||
@@ -79,10 +81,10 @@ uint8_t* tr_loadFile(char const* filename, size_t* size, struct tr_error** error
|
||||
char* tr_buildPath(char const* first_element, ...) TR_GNUC_NULL_TERMINATED TR_GNUC_MALLOC;
|
||||
|
||||
/**
|
||||
* @brief Get available disk space (in bytes) for the specified folder.
|
||||
* @return zero or positive integer on success, -1 in case of error.
|
||||
* @brief Get disk capacity and free disk space (in bytes) for the specified folder.
|
||||
* @return struct with free and total as zero or positive integer on success, -1 in case of error.
|
||||
*/
|
||||
int64_t tr_getDirFreeSpace(char const* path);
|
||||
struct tr_disk_space tr_getDirSpace(char const* path);
|
||||
|
||||
/**
|
||||
* @brief Convenience wrapper around timer_add() to have a timer wake up in a number of seconds and microseconds
|
||||
|
||||
Reference in New Issue
Block a user