From 99c586b1526f77b87a04a30e84e7abff84fbd173 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 22 Mar 2007 23:37:24 +0000 Subject: [PATCH] accessor to the extension info from the info dictionary in a torrent file. --- include/libtorrent/torrent_info.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/libtorrent/torrent_info.hpp b/include/libtorrent/torrent_info.hpp index 4e6e20d9e..c7eebf7b1 100755 --- a/include/libtorrent/torrent_info.hpp +++ b/include/libtorrent/torrent_info.hpp @@ -173,6 +173,9 @@ namespace libtorrent void parse_info_section(entry const& e); + entry extra(char const* key) const + { return m_extra_info[key]; } + private: void read_torrent_info(const entry& libtorrent);