source: trunk/libtransmission/magnet.h

Last change on this file was 14724, checked in by jordan, 5 years ago

use '#pragma once' instead of #ifndef..#define..#endif guards

  • Property svn:keywords set to Date Rev Author Id
File size: 694 bytes
Line 
1/*
2 * This file Copyright (C) 2010-2014 Mnemosyne LLC
3 *
4 * It may be used under the GNU GPL versions 2 or 3
5 * or any future license endorsed by Mnemosyne LLC.
6 *
7 * $Id: magnet.h 14724 2016-03-29 16:37:21Z mikedld $
8 */
9
10#ifndef __TRANSMISSION__
11 #error only libtransmission should #include this header.
12#endif
13
14#pragma once
15
16#include "transmission.h"
17#include "variant.h"
18
19typedef struct tr_magnet_info
20{
21  uint8_t hash[20];
22
23  char * displayName;
24
25  int trackerCount;
26  char ** trackers;
27
28  int webseedCount;
29  char ** webseeds;
30}
31tr_magnet_info;
32
33tr_magnet_info * tr_magnetParse (const char * uri);
34
35struct tr_variant;
36
37void tr_magnetCreateMetainfo (const tr_magnet_info *, tr_variant *);
38
39void tr_magnetFree (tr_magnet_info * info);
40
Note: See TracBrowser for help on using the repository browser.