@@ -437,8 +437,8 @@ void bind_torrent_handle()
437
437
bool (torrent_handle::*super_seeding0)() const = &torrent_handle::super_seeding;
438
438
void (torrent_handle::*super_seeding1)(bool ) const = &torrent_handle::super_seeding;
439
439
#endif
440
- void (torrent_handle::*set_flags0)(boost:: uint64_t ) const = &torrent_handle::set_flags;
441
- void (torrent_handle::*set_flags1)(boost:: uint64_t , boost:: uint64_t ) const = &torrent_handle::set_flags;
440
+ void (torrent_handle::*set_flags0)(torrent_flags_t ) const = &torrent_handle::set_flags;
441
+ void (torrent_handle::*set_flags1)(torrent_flags_t , torrent_flags_t ) const = &torrent_handle::set_flags;
442
442
443
443
int (torrent_handle::*piece_priority0)(piece_index_t ) const = &torrent_handle::piece_priority;
444
444
void (torrent_handle::*piece_priority1)(piece_index_t , int ) const = &torrent_handle::piece_priority;
@@ -491,39 +491,13 @@ void bind_torrent_handle()
491
491
.def (" is_valid" , _ (&torrent_handle::is_valid))
492
492
.def (" pause" , _ (&torrent_handle::pause ), arg (" flags" ) = 0 )
493
493
.def (" resume" , _ (&torrent_handle::resume))
494
- #ifndef TORRENT_NO_DEPRECATE
495
- .def (" stop_when_ready" , _ (&torrent_handle::stop_when_ready))
496
- #endif
497
494
.def (" clear_error" , _ (&torrent_handle::clear_error))
498
- #ifndef TORRENT_NO_DEPRECATE
499
- .def (" super_seeding" , super_seeding1)
500
-
501
- .def (" auto_managed" , _ (&torrent_handle::auto_managed))
502
- #endif
503
495
.def (" queue_position" , _ (&torrent_handle::queue_position))
504
496
.def (" queue_position_up" , _ (&torrent_handle::queue_position_up))
505
497
.def (" queue_position_down" , _ (&torrent_handle::queue_position_down))
506
498
.def (" queue_position_top" , _ (&torrent_handle::queue_position_top))
507
499
.def (" queue_position_bottom" , _ (&torrent_handle::queue_position_bottom))
508
500
509
- // deprecated
510
- #ifndef TORRENT_NO_DEPRECATE
511
- .def (" set_priority" , _ (&torrent_handle::set_priority))
512
- .def (" get_torrent_info" , &get_torrent_info)
513
- #ifndef TORRENT_NO_DEPRECATE
514
- .def (" super_seeding" , super_seeding0)
515
- #endif
516
- .def (" write_resume_data" , _ (&torrent_handle::write_resume_data))
517
- .def (" is_seed" , _ (&torrent_handle::is_seed))
518
- .def (" is_finished" , _ (&torrent_handle::is_finished))
519
- #ifndef TORRENT_NO_DEPRECATE
520
- .def (" is_paused" , _ (&torrent_handle::is_paused))
521
- .def (" is_auto_managed" , _ (&torrent_handle::is_auto_managed))
522
- #endif
523
- .def (" has_metadata" , _ (&torrent_handle::has_metadata))
524
- .def (" use_interface" , &torrent_handle::use_interface)
525
- .def (" name" , _ (&torrent_handle::name))
526
- #endif
527
501
.def (" add_piece" , add_piece)
528
502
.def (" read_piece" , _ (&torrent_handle::read_piece))
529
503
.def (" have_piece" , _ (&torrent_handle::have_piece))
@@ -549,46 +523,53 @@ void bind_torrent_handle()
549
523
.def (" force_dht_announce" , _ (&torrent_handle::force_dht_announce))
550
524
#endif
551
525
.def (" scrape_tracker" , _ (&torrent_handle::scrape_tracker), arg (" index" ) = -1 )
552
- #ifndef TORRENT_NO_DEPRECATE
553
- .def (" set_upload_mode" , _ (&torrent_handle::set_upload_mode))
554
- .def (" set_share_mode" , _ (&torrent_handle::set_share_mode))
555
- #endif
556
526
.def (" flush_cache" , &torrent_handle::flush_cache)
557
- #ifndef TORRENT_NO_DEPRECATE
558
- .def (" apply_ip_filter" , &torrent_handle::apply_ip_filter)
559
- #endif
560
527
.def (" set_upload_limit" , _ (&torrent_handle::set_upload_limit))
561
528
.def (" upload_limit" , _ (&torrent_handle::upload_limit))
562
529
.def (" set_download_limit" , _ (&torrent_handle::set_download_limit))
563
530
.def (" download_limit" , _ (&torrent_handle::download_limit))
564
- #ifndef TORRENT_NO_DEPRECATE
565
- .def (" set_sequential_download" , _ (&torrent_handle::set_sequential_download))
566
- .def (" set_peer_upload_limit" , &torrent_handle::set_peer_upload_limit)
567
- .def (" set_peer_download_limit" , &torrent_handle::set_peer_download_limit)
568
- .def (" set_ratio" , _ (&torrent_handle::set_ratio))
569
- .def (" save_path" , _ (&torrent_handle::save_path))
570
- #endif
571
531
.def (" connect_peer" , &torrent_handle::connect_peer, (arg (" endpoint" ), arg (" source" )=0 , arg (" flags" )=0xd ))
572
532
.def (" set_max_uploads" , &torrent_handle::set_max_uploads)
573
533
.def (" max_uploads" , _ (&torrent_handle::max_uploads))
574
534
.def (" set_max_connections" , &torrent_handle::set_max_connections)
575
535
.def (" max_connections" , _ (&torrent_handle::max_connections))
576
- #ifndef TORRENT_NO_DEPRECATE
577
- .def (" set_tracker_login" , &torrent_handle::set_tracker_login)
578
- #endif
579
536
.def (" move_storage" , _ (move_storage0), (arg (" path" ), arg (" flags" ) = move_flags_t ::always_replace_files))
580
537
.def (" info_hash" , _ (&torrent_handle::info_hash))
581
538
.def (" force_recheck" , _ (&torrent_handle::force_recheck))
582
539
.def (" rename_file" , _ (rename_file0))
583
540
.def (" set_ssl_certificate" , &torrent_handle::set_ssl_certificate, (arg (" cert" ), arg (" private_key" ), arg (" dh_params" ), arg (" passphrase" )=" " ))
584
- #if !defined TORRENT_NO_DEPRECATE
585
- .def (" move_storage" , _ (move_storage1), (arg (" path" ), arg (" flags" ) = always_replace_files))
586
- .def (" rename_file" , _ (rename_file1))
587
- #endif
588
541
.def (" flags" , _ (&torrent_handle::flags))
589
542
.def (" set_flags" , _ (set_flags0))
590
543
.def (" set_flags" , _ (set_flags1))
591
544
.def (" unset_flags" , _ (&torrent_handle::unset_flags))
545
+ // deprecated
546
+ #ifndef TORRENT_NO_DEPRECATE
547
+ .def (" stop_when_ready" , _ (&torrent_handle::stop_when_ready))
548
+ .def (" super_seeding" , super_seeding1)
549
+ .def (" auto_managed" , _ (&torrent_handle::auto_managed))
550
+ .def (" set_priority" , _ (&torrent_handle::set_priority))
551
+ .def (" get_torrent_info" , &get_torrent_info)
552
+ .def (" super_seeding" , super_seeding0)
553
+ .def (" write_resume_data" , _ (&torrent_handle::write_resume_data))
554
+ .def (" is_seed" , _ (&torrent_handle::is_seed))
555
+ .def (" is_finished" , _ (&torrent_handle::is_finished))
556
+ .def (" has_metadata" , _ (&torrent_handle::has_metadata))
557
+ .def (" use_interface" , &torrent_handle::use_interface)
558
+ .def (" name" , _ (&torrent_handle::name))
559
+ .def (" is_paused" , _ (&torrent_handle::is_paused))
560
+ .def (" is_auto_managed" , _ (&torrent_handle::is_auto_managed))
561
+ .def (" set_upload_mode" , _ (&torrent_handle::set_upload_mode))
562
+ .def (" set_share_mode" , _ (&torrent_handle::set_share_mode))
563
+ .def (" apply_ip_filter" , &torrent_handle::apply_ip_filter)
564
+ .def (" set_sequential_download" , _ (&torrent_handle::set_sequential_download))
565
+ .def (" set_peer_upload_limit" , &torrent_handle::set_peer_upload_limit)
566
+ .def (" set_peer_download_limit" , &torrent_handle::set_peer_download_limit)
567
+ .def (" set_ratio" , _ (&torrent_handle::set_ratio))
568
+ .def (" save_path" , _ (&torrent_handle::save_path))
569
+ .def (" set_tracker_login" , &torrent_handle::set_tracker_login)
570
+ .def (" move_storage" , _ (move_storage1), (arg (" path" ), arg (" flags" ) = always_replace_files))
571
+ .def (" rename_file" , _ (rename_file1))
572
+ #endif
592
573
;
593
574
594
575
class_<open_file_state>(" open_file_state" )
0 commit comments