Changeset 7331 for trunk/daemon/remote.c


Ignore:
Timestamp:
Dec 9, 2008, 5:01:49 PM (12 years ago)
Author:
charles
Message:

(daemon) #1510: kysucix's patch to give an option to delete local data via RPC when removing a torrent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r7202 r7331  
    100100    { 'r', "remove",               "Remove the current torrent(s)",
    101101      "r",  0, NULL                  },
     102    { 'R', "remove-and-delete",    "Remove the current torrent(s) and delete local data",
     103      NULL, 0, NULL                  },
    102104    { 's', "start",                "Start the current torrent(s)",
    103105      "s",  0, NULL                  },
     
    413415                tr_bencDictAddStr( &top, "method", "torrent-remove" );
    414416                addIdArg( args, id );
     417                break;
     418
     419            case 'R':
     420                tr_bencDictAddStr( &top, "method", "torrent-remove" );
     421                addIdArg( args, id );
     422                tr_bencDictAddInt( args, "delete-local-data", 1 );
    415423                break;
    416424
Note: See TracChangeset for help on using the changeset viewer.