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

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

(trunk) restore copyright year as suggested in email by rms

  • Property svn:keywords set to Date Rev Author Id
File size: 1.0 KB
RevLine 
[8637]1/*
[14224]2 * This file Copyright (C) 2010-2014 Mnemosyne LLC
[1403]3 *
[11599]4 * This file is licensed by the GPL version 2. Works owned by the
[13625]5 * Transmission project are granted a special exemption to clause 2 (b)
[8637]6 * so that the bulk of its code can remain under the MIT license.
7 * This exemption does not extend to derived works not owned by
8 * the Transmission project.
[1403]9 *
[8637]10 * $Id: port-forwarding.h 14224 2014-01-18 20:56:57Z jordan $
11 */
[1403]12
[7151]13#ifndef __TRANSMISSION__
14#error only libtransmission should #include this header.
15#endif
16
[1403]17#ifndef SHARED_H
18#define SHARED_H 1
19
20#include "transmission.h"
21
[8903]22/**
[8561]23 * @addtogroup port_forwarding Port Forwarding
24 * @{
25 */
26
[8398]27struct tr_bindsockets;
28
[3105]29typedef struct tr_shared tr_shared;
[2555]30
[13625]31tr_shared* tr_sharedInit (tr_session*);
[1403]32
[13625]33void       tr_sharedClose (tr_session *);
[6795]34
[13625]35void       tr_sharedPortChanged (tr_session *);
[6795]36
[13625]37void       tr_sharedTraversalEnable (tr_shared *, bool isEnabled);
[6795]38
[13625]39tr_port    tr_sharedGetPeerPort (const tr_shared * s);
[6795]40
[13625]41bool       tr_sharedTraversalIsEnabled (const tr_shared * s);
[6795]42
[13625]43int        tr_sharedTraversalStatus (const tr_shared *);
[6795]44
[8561]45/** @} */
[1403]46#endif
Note: See TracBrowser for help on using the repository browser.