Change torrent so it can be built with libtorrent 1.2.5
authorHilko Bengen <bengen@debian.org>
Fri, 28 Aug 2020 16:00:22 +0000 (18:00 +0200)
committerHilko Bengen <bengen@debian.org>
Tue, 19 Apr 2022 11:35:02 +0000 (12:35 +0100)
Gbp-Pq: Name 0005-Change-torrent-so-it-can-be-built-with-libtorrent-1..patch

plugins/torrent/torrent.cpp

index 9d109fc93531da693e84def15e623eea66e75e06..ff8d44a14595b08b93f448e9800fc7812eebf6e9 100644 (file)
@@ -104,10 +104,10 @@ static struct setting settings[] = {
 static const size_t nr_settings = sizeof settings / sizeof settings[0];
 
 static libtorrent::alert_category_t alerts =
-    libtorrent::alert_category::error
-  | libtorrent::alert_category::piece_progress
-  | libtorrent::alert_category::status
-  | libtorrent::alert_category::storage
+    libtorrent::alert::error_notification
+  | libtorrent::alert::piece_progress_notification
+  | libtorrent::alert::status_notification
+  | libtorrent::alert::storage_notification
   ;
 
 /* This condition is used to signal the plugin when a piece has been