mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(rpc) #1584: include version in session-get response
This commit is contained in:
@@ -322,11 +322,12 @@
|
||||
"speed-limit-down-enabled" | 'boolean' true means enabled
|
||||
"speed-limit-up" | number max global upload speed (in K/s)
|
||||
"speed-limit-up-enabled" | 'boolean' true means enabled
|
||||
"version" | string long version string "$version ($revision)"
|
||||
|
||||
4.1.1. Mutators
|
||||
|
||||
Method name: "session-set"
|
||||
Request arguments: one or more of 4.1's arguments
|
||||
Request arguments: one or more of 4.1's arguments, except "version"
|
||||
Response arguments: none
|
||||
|
||||
4.1.2. Accessors
|
||||
|
||||
@@ -732,6 +732,7 @@ sessionGet( tr_handle * h,
|
||||
tr_sessionGetSpeedLimit( h, TR_DOWN ) );
|
||||
tr_bencDictAddInt( d, "speed-limit-down-enabled",
|
||||
tr_sessionIsSpeedLimitEnabled( h, TR_DOWN ) );
|
||||
tr_bencDictAddStr( d, "version", LONG_VERSION_STRING );
|
||||
switch( tr_sessionGetEncryption( h ) )
|
||||
{
|
||||
case TR_CLEAR_PREFERRED:
|
||||
|
||||
Reference in New Issue
Block a user