refactor: remove tr_ctorSetBandwidthPriority() from public API (#3730)
it is only used via RPC, so remove it from transmission.h
This commit is contained in:
parent
072bb0322c
commit
0360cfbf72
|
@ -771,6 +771,8 @@ tr_torrent_metainfo tr_ctorStealMetainfo(tr_ctor* ctor);
|
|||
bool tr_ctorSetMetainfoFromFile(tr_ctor* ctor, std::string_view filename, tr_error** error = nullptr);
|
||||
bool tr_ctorSetMetainfoFromMagnetLink(tr_ctor* ctor, std::string_view magnet_link, tr_error** error = nullptr);
|
||||
void tr_ctorSetLabels(tr_ctor* ctor, tr_quark const* labels, size_t n_labels);
|
||||
void tr_ctorSetBandwidthPriority(tr_ctor* ctor, tr_priority_t priority);
|
||||
tr_priority_t tr_ctorGetBandwidthPriority(tr_ctor const* ctor);
|
||||
tr_torrent::labels_t const& tr_ctorGetLabels(tr_ctor const* ctor);
|
||||
|
||||
#define tr_logAddCriticalTor(tor, msg) tr_logAddCritical(msg, (tor)->name())
|
||||
|
|
|
@ -264,16 +264,6 @@ void tr_sessionSetDownloadDir(tr_session* session, char const* downloadDir);
|
|||
*/
|
||||
char const* tr_sessionGetDownloadDir(tr_session const* session);
|
||||
|
||||
/**
|
||||
* @brief Set the torrent's bandwidth priority.
|
||||
*/
|
||||
void tr_ctorSetBandwidthPriority(tr_ctor* ctor, tr_priority_t priority);
|
||||
|
||||
/**
|
||||
* @brief Get the torrent's bandwidth priority.
|
||||
*/
|
||||
tr_priority_t tr_ctorGetBandwidthPriority(tr_ctor const* ctor);
|
||||
|
||||
/**
|
||||
* @brief set the per-session incomplete download folder.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue