From b22082b77bb1f2e3e76dbf836583a47fd828b312 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 21 Jul 2008 17:04:31 +0000 Subject: [PATCH] add set_priv and priv to create_torrent --- include/libtorrent/create_torrent.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libtorrent/create_torrent.hpp b/include/libtorrent/create_torrent.hpp index 32c7a41f2..573b550a4 100644 --- a/include/libtorrent/create_torrent.hpp +++ b/include/libtorrent/create_torrent.hpp @@ -78,10 +78,12 @@ namespace libtorrent void add_url_seed(std::string const& url); void add_node(std::pair const& node); void add_tracker(std::string const& url, int tier = 0); + void set_priv(bool p) const { return m_private = p; } int num_pieces() const { return m_files.num_pieces(); } int piece_length() const { return m_files.piece_length(); } int piece_size(int i) const { return m_files.piece_size(i); } + bool priv() const { return m_private; } private: