2023-11-01 21:11:11 +00:00
|
|
|
// This file Copyright © Mnemosyne LLC.
|
2022-08-08 18:05:39 +00:00
|
|
|
// It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
|
2022-01-20 18:27:56 +00:00
|
|
|
// or any future license endorsed by Mnemosyne LLC.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2006-09-25 18:37:45 +00:00
|
|
|
|
2017-11-14 20:21:28 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-09-30 13:59:10 +00:00
|
|
|
#ifndef LIBTRANSMISSION_PORT_FORWARDING_MODULE
|
|
|
|
#error only the libtransmission port forwarding module should #include this header.
|
2008-11-24 20:17:36 +00:00
|
|
|
#endif
|
|
|
|
|
2009-08-12 14:40:32 +00:00
|
|
|
/**
|
2009-05-29 19:17:12 +00:00
|
|
|
* @addtogroup port_forwarding Port Forwarding
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2022-07-10 01:03:40 +00:00
|
|
|
#include <string>
|
|
|
|
|
2023-07-08 15:24:03 +00:00
|
|
|
#include "libtransmission/transmission.h"
|
2022-04-25 01:49:52 +00:00
|
|
|
|
2023-07-08 15:24:03 +00:00
|
|
|
class tr_port;
|
2021-10-06 14:26:07 +00:00
|
|
|
struct tr_upnp;
|
2006-09-25 18:37:45 +00:00
|
|
|
|
2023-01-28 23:58:20 +00:00
|
|
|
tr_upnp* tr_upnpInit();
|
2008-09-23 19:11:04 +00:00
|
|
|
|
2023-01-28 23:58:20 +00:00
|
|
|
void tr_upnpClose(tr_upnp* handle);
|
2017-04-19 12:04:45 +00:00
|
|
|
|
2023-01-28 23:58:20 +00:00
|
|
|
tr_port_forwarding_state tr_upnpPulse(tr_upnp*, tr_port port, bool is_enabled, bool do_port_check, std::string bindaddr);
|
2008-09-23 19:11:04 +00:00
|
|
|
|
2009-05-29 19:17:12 +00:00
|
|
|
/* @} */
|