source: trunk/libtransmission/port-forwarding.h @ 14225

Last change on this file since 14225 was 14225, checked in by jordan, 8 years ago

Licensing changes:

  1. add the option the code to be used under GPLv2 or GPLv3; previously only GPLv2 was allowed
  1. add the "proxy option" as described in GPLv3 so we can add future licenses without having to bulk-edit everything again :)
  1. remove the awkward "exception for MIT code in Mac client" clause; it was unnecessary and confusing.
  • Property svn:keywords set to Date Rev Author Id
File size: 863 bytes
Line 
1/*
2 * This file Copyright (C) 2008-2014 Mnemosyne LLC
3 *
4 * It may be used under the GNU Public License v2 or v3 licenses,
5 * or any future license endorsed by Mnemosyne LLC.
6 *
7 * $Id: port-forwarding.h 14225 2014-01-19 01:09:44Z jordan $
8 */
9
10#ifndef __TRANSMISSION__
11#error only libtransmission should #include this header.
12#endif
13
14#ifndef SHARED_H
15#define SHARED_H 1
16
17#include "transmission.h"
18
19/**
20 * @addtogroup port_forwarding Port Forwarding
21 * @{
22 */
23
24struct tr_bindsockets;
25
26typedef struct tr_shared tr_shared;
27
28tr_shared* tr_sharedInit (tr_session*);
29
30void       tr_sharedClose (tr_session *);
31
32void       tr_sharedPortChanged (tr_session *);
33
34void       tr_sharedTraversalEnable (tr_shared *, bool isEnabled);
35
36tr_port    tr_sharedGetPeerPort (const tr_shared * s);
37
38bool       tr_sharedTraversalIsEnabled (const tr_shared * s);
39
40int        tr_sharedTraversalStatus (const tr_shared *);
41
42/** @} */
43#endif
Note: See TracBrowser for help on using the repository browser.