2007-12-08 19:34:15 +00:00
|
|
|
/*
|
2014-01-19 01:09:44 +00:00
|
|
|
* This file Copyright (C) 2007-2014 Mnemosyne LLC
|
2006-09-25 18:37:45 +00:00
|
|
|
*
|
2014-01-21 03:10:30 +00:00
|
|
|
* It may be used under the GNU GPL versions 2 or 3
|
2014-01-19 01:09:44 +00:00
|
|
|
* or any future license endorsed by Mnemosyne LLC.
|
2006-09-25 18:37:45 +00:00
|
|
|
*
|
2007-12-08 19:34:15 +00:00
|
|
|
*/
|
2006-09-25 18:37:45 +00:00
|
|
|
|
2008-11-24 20:17:36 +00:00
|
|
|
#ifndef __TRANSMISSION__
|
2017-04-19 12:04:45 +00:00
|
|
|
#error only libtransmission should #include this header.
|
2008-11-24 20:17:36 +00:00
|
|
|
#endif
|
|
|
|
|
2016-03-29 16:37:21 +00:00
|
|
|
#pragma once
|
2006-09-25 18:37:45 +00:00
|
|
|
|
2009-08-12 14:40:32 +00:00
|
|
|
/**
|
2009-05-29 19:17:12 +00:00
|
|
|
* @addtogroup port_forwarding Port Forwarding
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2008-09-23 19:11:04 +00:00
|
|
|
typedef struct tr_upnp tr_upnp;
|
2006-09-25 18:37:45 +00:00
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
tr_upnp* tr_upnpInit(void);
|
2008-09-23 19:11:04 +00:00
|
|
|
|
2017-04-19 12:04:45 +00:00
|
|
|
void tr_upnpClose(tr_upnp*);
|
|
|
|
|
2017-04-30 16:25:26 +00:00
|
|
|
int tr_upnpPulse(tr_upnp*, int port, bool isEnabled, bool doPortCheck);
|
2008-09-23 19:11:04 +00:00
|
|
|
|
2009-05-29 19:17:12 +00:00
|
|
|
/* @} */
|