transmission: update from 2.13 to 2.22
[tomato.git] / release / src / router / transmission / libtransmission / metainfo.h
blobc1ffc423ed2cc25ba3aa344948cb4bb055dd8938
1 /*
2 * This file Copyright (C) Mnemosyne LLC
4 * This file is licensed by the GPL version 2. Works owned by the
5 * Transmission project are granted a special exemption to clause 2(b)
6 * so that the bulk of its code can remain under the MIT license.
7 * This exemption does not extend to derived works not owned by
8 * the Transmission project.
10 * $Id: metainfo.h 11709 2011-01-19 13:48:47Z jordan $
13 #ifndef __TRANSMISSION__
14 #error only libtransmission should #include this header.
15 #endif
17 #ifndef TR_METAINFO_H
18 #define TR_METAINFO_H 1
20 #include "transmission.h"
22 struct tr_benc;
24 tr_bool tr_metainfoParse( const tr_session * session,
25 const struct tr_benc * benc,
26 tr_info * setmeInfo,
27 tr_bool * setmeHasInfoDict,
28 int * setmeInfoDictLength );
30 void tr_metainfoRemoveSaved( const tr_session * session,
31 const tr_info * info );
33 void tr_metainfoMigrate( tr_session * session,
34 tr_info * inf );
36 char* tr_metainfoGetBasename( const tr_info * );
39 #endif