fix announce_entry python binding

This commit is contained in:
arvidn 2016-06-14 20:10:18 -04:00
parent 38f4765ebc
commit f01ac8f86c
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
1.1.1 release 1.1.1 release
* fix bug in python binding of announce_entry
* fixed bug related to flag_merge_resume_http_seeds flag in add_torrent_params * fixed bug related to flag_merge_resume_http_seeds flag in add_torrent_params
* fixed inverted priority of incoming piece suggestions * fixed inverted priority of incoming piece suggestions
* optimize allow-fast logic * optimize allow-fast logic

View File

@ -113,10 +113,10 @@ namespace
int get_tier(announce_entry const& ae) { return ae.tier; } int get_tier(announce_entry const& ae) { return ae.tier; }
void set_tier(announce_entry& ae, int v) { ae.tier = v; } void set_tier(announce_entry& ae, int v) { ae.tier = v; }
bool get_fail_limit(announce_entry const& ae) { return ae.fail_limit; } int get_fail_limit(announce_entry const& ae) { return ae.fail_limit; }
void set_fail_limit(announce_entry& ae, int l) { ae.fail_limit = l; } void set_fail_limit(announce_entry& ae, int l) { ae.fail_limit = l; }
bool get_fails(announce_entry const& ae) { return ae.fails; } int get_fails(announce_entry const& ae) { return ae.fails; }
bool get_source(announce_entry const& ae) { return ae.source; } int get_source(announce_entry const& ae) { return ae.source; }
bool get_verified(announce_entry const& ae) { return ae.verified; } bool get_verified(announce_entry const& ae) { return ae.verified; }
bool get_updating(announce_entry const& ae) { return ae.updating; } bool get_updating(announce_entry const& ae) { return ae.updating; }
bool get_start_sent(announce_entry const& ae) { return ae.start_sent; } bool get_start_sent(announce_entry const& ae) { return ae.start_sent; }