transmission 2.83
[tomato.git] / release / src / router / transmission / libtransmission / port-forwarding.h
blobb4f343a942d16cb9f60f55fb9d69b03081d760d7
1 /*
2 * This file Copyright (C) 2008-2014 Mnemosyne LLC
4 * It may be used under the GNU GPL versions 2 or 3
5 * or any future license endorsed by Mnemosyne LLC.
7 * $Id: port-forwarding.h 14241 2014-01-21 03:10:30Z jordan $
8 */
10 #ifndef __TRANSMISSION__
11 #error only libtransmission should #include this header.
12 #endif
14 #ifndef SHARED_H
15 #define SHARED_H 1
17 #include "transmission.h"
19 /**
20 * @addtogroup port_forwarding Port Forwarding
21 * @{
24 struct tr_bindsockets;
26 typedef struct tr_shared tr_shared;
28 tr_shared* tr_sharedInit (tr_session*);
30 void tr_sharedClose (tr_session *);
32 void tr_sharedPortChanged (tr_session *);
34 void tr_sharedTraversalEnable (tr_shared *, bool isEnabled);
36 tr_port tr_sharedGetPeerPort (const tr_shared * s);
38 bool tr_sharedTraversalIsEnabled (const tr_shared * s);
40 int tr_sharedTraversalStatus (const tr_shared *);
42 /** @} */
43 #endif