Changeset 10083


Ignore:
Timestamp:
Feb 2, 2010, 6:27:57 PM (12 years ago)
Author:
charles
Message:

(trunk daemon) #2751 "display-remote -si should show config directory" -- implemented for 1.90

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r10043 r10083  
    10541054        printf( "\n" );
    10551055
    1056         printf( "TRANSFER\n" );
     1056        printf( "CONFIG\n" );
     1057        if( tr_bencDictFindStr( args, "config-dir", &str ) )
     1058            printf( "  Configuration directory: %s\n", str );
    10571059        if( tr_bencDictFindStr( args,  TR_PREFS_KEY_DOWNLOAD_DIR, &str ) )
    10581060            printf( "  Download directory: %s\n", str );
  • trunk/doc/rpc-spec.txt

    r10078 r10083  
    431431   Method name: "session-set"
    432432   Request arguments: one or more of 4.1's arguments, except: "blocklist-size",
    433                       "rpc-version", "rpc-version-minimum", and "version"
     433                      "config-dir", "rpc-version", "rpc-version-minimum",
     434                      and "version"
    434435   Response arguments: none
    435436
     
    578579   8     | 1.90    | yes       | session-set    | new arg "rename-partial-files"
    579580         |         | yes       | session-get    | new arg "rename-partial-files"
     581         |         | yes       | session-get    | new arg "config-dir"
    580582         |         | yes       | torrent-add    | new arg "bandwidthPriority"
  • trunk/libtransmission/rpcimpl.c

    r10078 r10083  
    12831283    tr_bencDictAddBool( d, TR_PREFS_KEY_BLOCKLIST_ENABLED, tr_blocklistIsEnabled( s ) );
    12841284    tr_bencDictAddInt ( d, "blocklist-size", tr_blocklistGetRuleCount( s ) );
     1285    tr_bencDictAddStr ( d, "config-dir", tr_sessionGetConfigDir( s ) );
    12851286    tr_bencDictAddStr ( d, TR_PREFS_KEY_DOWNLOAD_DIR, tr_sessionGetDownloadDir( s ) );
    12861287    tr_bencDictAddInt ( d, TR_PREFS_KEY_PEER_LIMIT_GLOBAL, tr_sessionGetPeerLimit( s ) );
Note: See TracChangeset for help on using the changeset viewer.