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 $
10 #ifndef __TRANSMISSION__
11 #error only libtransmission should #include this header.
17 #include "transmission.h"
20 * @addtogroup port_forwarding Port Forwarding
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
*);