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:
Charles Kerr 2022-08-28 19:04:29 -05:00 committed by GitHub
parent 072bb0322c
commit 0360cfbf72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 10 deletions

View File

@ -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())

View File

@ -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.
*