Method name: "session-set"
Request arguments: one or more of 4.1's arguments, except: "blocklist-size",
- "config-dir", "rpc-version", "rpc-version-minimum", and
- "version"
+ "config-dir", "rpc-version", "rpc-version-minimum",
+ "version", and "session-id"
Response arguments: none
4.1.2. Accessors
| | yes | torrent-add | new return arg "torrent-duplicate"
------+---------+-----------+----------------------+-------------------------------
16 | 3.00 | yes | session-get | new request arg "fields"
+ | | yes | session-get | new arg "session-id"
5.1. Upcoming Breakage
{ "seederCount", 11 },
{ "seeding-time-seconds", 20 },
{ "session-count", 13 },
+ { "session-id", 10 },
{ "sessionCount", 12 },
{ "show-backup-trackers", 20 },
{ "show-extra-peer-details", 23 },
TR_KEY_seederCount,
TR_KEY_seeding_time_seconds,
TR_KEY_session_count,
+ TR_KEY_session_id,
TR_KEY_sessionCount,
TR_KEY_show_backup_trackers,
TR_KEY_show_extra_peer_details,
#include "platform-quota.h" /* tr_device_info_get_free_space() */
#include "rpcimpl.h"
#include "session.h"
+#include "session-id.h"
#include "torrent.h"
#include "utils.h"
#include "variant.h"
tr_variantDictAddStr (d, key, str);
break;
}
+
+ case TR_KEY_session_id:
+ tr_variantDictAddStr (d, key, tr_session_id_get_current (s->session_id));
+ break;
}
}