Revert "transmission: update from 2.13 to 2.22"
[tomato.git] / release / src / router / transmission / libtransmission / magnet.h
blobcca256e07ee13ec5d414aa4cf7edfc1e44ccdc1e
1 /*
2 * This file Copyright (C) 2009-2010 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: magnet.h 11280 2010-10-01 13:33:39Z charles $
13 #ifndef __TRANSMISSION__
14 #error only libtransmission should #include this header.
15 #endif
17 #ifndef TR_MAGNET_H
18 #define TR_MAGNET_H 1
20 #include "transmission.h"
22 typedef struct tr_magnet_info
24 uint8_t hash[20];
26 char * displayName;
28 int trackerCount;
29 char ** trackers;
31 int webseedCount;
32 char ** webseeds;
34 tr_magnet_info;
36 tr_magnet_info * tr_magnetParse( const char * uri );
38 struct tr_benc;
40 void tr_magnetCreateMetainfo( const tr_magnet_info *, struct tr_benc * );
42 void tr_magnetFree( tr_magnet_info * info );
44 #endif