Ticket #5218: 01_set_location.patch

File 01_set_location.patch, 1.3 KB (added by rb07, 8 years ago)
  • qt/session.cc

     
    485499{
    486500  tr_variant top;
    487501  tr_variantInitDict (&top, 2);
    488   tr_variantDictAddQuark (&top, TR_KEY_method, TR_KEY_torrent_set);
     502  tr_variantDictAddQuark (&top, TR_KEY_method, TR_KEY_torrent_set_location);
    489503  tr_variant * args (tr_variantDictAddDict(&top, TR_KEY_arguments, 3));
    490504  addOptionalIds (args, ids);
    491505  tr_variantDictAddStr (args, TR_KEY_location, location.toUtf8().constData());
  • libtransmission/quark.h

     
    356365  TR_KEY_torrent_complete_sound_enabled,
    357366  TR_KEY_torrent_get,
    358367  TR_KEY_torrent_set,
     368  TR_KEY_torrent_set_location,
    359369  TR_KEY_torrentCount,
    360370  TR_KEY_torrentFile,
    361371  TR_KEY_torrents,
  • libtransmission/quark.c

     
    346355  { "torrent-complete-sound-enabled", 30 },
    347356  { "torrent-get", 11 },
    348357  { "torrent-set", 11 },
     358  { "torrent-set-location", 20 },
    349359  { "torrentCount", 12 },
    350360  { "torrentFile", 11 },
    351361  { "torrents", 8 },