Moved torrent::Tracker to torrent::tracker::Tracker.

This commit is contained in:
rakshasa
2025-02-27 18:05:08 +01:00
committed by Jari Sundell
parent 80ef2e076d
commit 37a5b7bccb
15 changed files with 74 additions and 384 deletions
+2 -7
View File
@@ -3,6 +3,7 @@
#include <cstdint>
#include <functional>
#include <torrent/common.h>
#include "rpc/command.h"
#include "rpc/jsonrpc.h"
@@ -12,12 +13,6 @@ namespace core {
class Download;
}
namespace torrent {
class File;
class Object;
class Tracker;
} // namespace torrent
namespace rpc {
class rpc_error : public torrent::base_error {
@@ -38,7 +33,7 @@ class RpcManager {
public:
using slot_download = std::function<core::Download*(const char*)>;
using slot_file = std::function<torrent::File*(core::Download*, uint32_t)>;
using slot_tracker = std::function<torrent::Tracker*(core::Download*, uint32_t)>;
using slot_tracker = std::function<torrent::tracker::Tracker*(core::Download*, uint32_t)>;
using slot_peer = std::function<torrent::Peer*(core::Download*, const torrent::HashString&)>;
using slot_response_callback = std::function<bool(const char*, uint32_t)>;