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

Last change on this file since 12918 was 12224, checked in by jordan, 11 years ago

(trunk libT) copyediting: clean up the "#include <event2/*>" directives in libtransmission's header files

  • Property svn:keywords set to Date Rev Author Id
File size: 1.0 KB
RevLine 
[8637]1/*
[11709]2 * This file Copyright (C) Mnemosyne LLC
[1403]3 *
[11599]4 * This file is licensed by the GPL version 2. Works owned by the
[8637]5 * Transmission project are granted a special exemption to clause 2(b)
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 12224 2011-03-24 22:45:04Z 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
[9387]31tr_shared* tr_sharedInit( tr_session* );
[1403]32
[8398]33void       tr_sharedClose( tr_session * );
[6795]34
[8398]35void       tr_sharedPortChanged( tr_session * );
[6795]36
[12204]37void       tr_sharedTraversalEnable( tr_shared *, bool isEnabled );
[6795]38
[7385]39tr_port    tr_sharedGetPeerPort( const tr_shared * s );
[6795]40
[12204]41bool       tr_sharedTraversalIsEnabled( const tr_shared * s );
[6795]42
43int        tr_sharedTraversalStatus( const tr_shared * );
44
[8561]45/** @} */
[1403]46#endif
Note: See TracBrowser for help on using the repository browser.