source: trunk/libtransmission/port-forwarding.h

Last change on this file was 14724, checked in by jordan, 5 years ago

use '#pragma once' instead of #ifndef..#define..#endif guards

  • Property svn:keywords set to Date Rev Author Id
File size: 820 bytes
Line 
1/*
2 * This file Copyright (C) 2008-2014 Mnemosyne LLC
3 *
4 * It may be used under the GNU GPL versions 2 or 3
5 * or any future license endorsed by Mnemosyne LLC.
6 *
7 * $Id: port-forwarding.h 14724 2016-03-29 16:37:21Z mikedld $
8 */
9
10#ifndef __TRANSMISSION__
11 #error only libtransmission should #include this header.
12#endif
13
14#pragma once
15
16#include "transmission.h"
17
18/**
19 * @addtogroup port_forwarding Port Forwarding
20 * @{
21 */
22
23struct tr_bindsockets;
24
25typedef struct tr_shared tr_shared;
26
27tr_shared* tr_sharedInit (tr_session*);
28
29void       tr_sharedClose (tr_session *);
30
31void       tr_sharedPortChanged (tr_session *);
32
33void       tr_sharedTraversalEnable (tr_shared *, bool isEnabled);
34
35tr_port    tr_sharedGetPeerPort (const tr_shared * s);
36
37bool       tr_sharedTraversalIsEnabled (const tr_shared * s);
38
39int        tr_sharedTraversalStatus (const tr_shared *);
40
41/** @} */
Note: See TracBrowser for help on using the repository browser.