2009-11-20 04:38:19 +00:00
|
|
|
/*
|
2011-01-19 13:48:47 +00:00
|
|
|
* This file Copyright (C) Mnemosyne LLC
|
2009-11-20 04:38:19 +00:00
|
|
|
*
|
2010-12-27 19:18:17 +00:00
|
|
|
* This file is licensed by the GPL version 2. Works owned by the
|
2012-12-05 17:29:46 +00:00
|
|
|
* Transmission project are granted a special exemption to clause 2 (b)
|
2009-11-20 04:38:19 +00:00
|
|
|
* so that the bulk of its code can remain under the MIT license.
|
|
|
|
* This exemption does not extend to derived works not owned by
|
|
|
|
* the Transmission project.
|
|
|
|
*
|
2010-10-01 13:33:39 +00:00
|
|
|
* $Id$
|
2009-11-20 04:38:19 +00:00
|
|
|
*/
|
|
|
|
|
2010-01-14 14:20:49 +00:00
|
|
|
#ifndef __TRANSMISSION__
|
|
|
|
#error only libtransmission should #include this header.
|
|
|
|
#endif
|
|
|
|
|
2009-11-20 04:38:19 +00:00
|
|
|
#ifndef TR_MAGNET_H
|
|
|
|
#define TR_MAGNET_H 1
|
|
|
|
|
|
|
|
#include "transmission.h"
|
2012-12-14 04:34:42 +00:00
|
|
|
#include "variant.h"
|
2009-11-20 04:38:19 +00:00
|
|
|
|
2009-11-22 03:57:36 +00:00
|
|
|
typedef struct tr_magnet_info
|
2009-11-20 04:38:19 +00:00
|
|
|
{
|
2012-12-05 17:29:46 +00:00
|
|
|
uint8_t hash[20];
|
2009-11-29 17:49:58 +00:00
|
|
|
|
2012-12-05 17:29:46 +00:00
|
|
|
char * displayName;
|
2009-11-29 17:49:58 +00:00
|
|
|
|
2012-12-05 17:29:46 +00:00
|
|
|
int trackerCount;
|
|
|
|
char ** trackers;
|
2009-11-29 17:49:58 +00:00
|
|
|
|
2012-12-05 17:29:46 +00:00
|
|
|
int webseedCount;
|
|
|
|
char ** webseeds;
|
2009-11-20 04:38:19 +00:00
|
|
|
}
|
|
|
|
tr_magnet_info;
|
|
|
|
|
2012-12-05 17:29:46 +00:00
|
|
|
tr_magnet_info * tr_magnetParse (const char * uri);
|
2009-11-20 04:38:19 +00:00
|
|
|
|
2012-12-14 04:34:42 +00:00
|
|
|
struct tr_variant;
|
2010-02-02 22:45:22 +00:00
|
|
|
|
2012-12-14 04:34:42 +00:00
|
|
|
void tr_magnetCreateMetainfo (const tr_magnet_info *, tr_variant *);
|
2010-02-02 22:45:22 +00:00
|
|
|
|
2012-12-05 17:29:46 +00:00
|
|
|
void tr_magnetFree (tr_magnet_info * info);
|
2009-11-20 04:38:19 +00:00
|
|
|
|
|
|
|
#endif
|