mirror of
https://github.com/transmission/transmission
synced 2025-03-04 02:28:03 +00:00
(trunk daemon) #2751 "display-remote -si should show config directory" -- implemented for 1.90
This commit is contained in:
parent
9da25c26ce
commit
b9e8624b3c
3 changed files with 7 additions and 2 deletions
|
@ -1053,7 +1053,9 @@ printSession( tr_benc * top )
|
|||
printf( " RPC minimum version: %" PRId64 "\n", i );
|
||||
printf( "\n" );
|
||||
|
||||
printf( "TRANSFER\n" );
|
||||
printf( "CONFIG\n" );
|
||||
if( tr_bencDictFindStr( args, "config-dir", &str ) )
|
||||
printf( " Configuration directory: %s\n", str );
|
||||
if( tr_bencDictFindStr( args, TR_PREFS_KEY_DOWNLOAD_DIR, &str ) )
|
||||
printf( " Download directory: %s\n", str );
|
||||
if( tr_bencDictFindInt( args, TR_PREFS_KEY_PEER_PORT, &i ) )
|
||||
|
|
|
@ -430,7 +430,8 @@
|
|||
|
||||
Method name: "session-set"
|
||||
Request arguments: one or more of 4.1's arguments, except: "blocklist-size",
|
||||
"rpc-version", "rpc-version-minimum", and "version"
|
||||
"config-dir", "rpc-version", "rpc-version-minimum",
|
||||
and "version"
|
||||
Response arguments: none
|
||||
|
||||
4.1.2. Accessors
|
||||
|
@ -577,4 +578,5 @@
|
|||
------+---------+-----------+----------------+-------------------------------
|
||||
8 | 1.90 | yes | session-set | new arg "rename-partial-files"
|
||||
| | yes | session-get | new arg "rename-partial-files"
|
||||
| | yes | session-get | new arg "config-dir"
|
||||
| | yes | torrent-add | new arg "bandwidthPriority"
|
||||
|
|
|
@ -1282,6 +1282,7 @@ sessionGet( tr_session * s,
|
|||
tr_bencDictAddBool( d, TR_PREFS_KEY_ALT_SPEED_TIME_ENABLED, tr_sessionUsesAltSpeedTime(s) );
|
||||
tr_bencDictAddBool( d, TR_PREFS_KEY_BLOCKLIST_ENABLED, tr_blocklistIsEnabled( s ) );
|
||||
tr_bencDictAddInt ( d, "blocklist-size", tr_blocklistGetRuleCount( s ) );
|
||||
tr_bencDictAddStr ( d, "config-dir", tr_sessionGetConfigDir( s ) );
|
||||
tr_bencDictAddStr ( d, TR_PREFS_KEY_DOWNLOAD_DIR, tr_sessionGetDownloadDir( s ) );
|
||||
tr_bencDictAddInt ( d, TR_PREFS_KEY_PEER_LIMIT_GLOBAL, tr_sessionGetPeerLimit( s ) );
|
||||
tr_bencDictAddInt ( d, TR_PREFS_KEY_PEER_LIMIT_TORRENT, tr_sessionGetPeerLimitPerTorrent( s ) );
|
||||
|
|
Loading…
Add table
Reference in a new issue