summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-07-15 07:42:42 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-07-15 07:42:42 (GMT)
commit562e37bca8ec283a382964e29ccb0ec0e4ba9d0f (patch)
tree1bbeaf3c935be8baa86fac3ef8f54e4dadc948f7 /Swiften/Network/NATPMPInterface.h
parent7a591138e89ad71ee1dd9825d7705c94f9bb50d2 (diff)
downloadswift-562e37bca8ec283a382964e29ccb0ec0e4ba9d0f.zip
swift-562e37bca8ec283a382964e29ccb0ec0e4ba9d0f.tar.bz2
Hide libminiupnp and libnatpmp.
Diffstat (limited to 'Swiften/Network/NATPMPInterface.h')
-rw-r--r--Swiften/Network/NATPMPInterface.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/Swiften/Network/NATPMPInterface.h b/Swiften/Network/NATPMPInterface.h
index 6e7fb73..7073bd2 100644
--- a/Swiften/Network/NATPMPInterface.h
+++ b/Swiften/Network/NATPMPInterface.h
@@ -7,15 +7,13 @@
#pragma once
#include <boost/optional.hpp>
+#include <boost/shared_ptr.hpp>
+#include <boost/noncopyable.hpp>
#include <Swiften/Network/NATPortMapping.h>
#include <Swiften/Network/NATTraversalInterface.h>
-// This has to be included after the previous headers, because of WIN32 macro
-// being defined somewhere.
-#include <natpmp.h>
-
namespace Swift {
- class NATPMPInterface : public NATTraversalInterface {
+ class NATPMPInterface : public NATTraversalInterface, boost::noncopyable {
public:
NATPMPInterface();
~NATPMPInterface();
@@ -27,6 +25,7 @@ namespace Swift {
virtual bool removePortForward(const NATPortMapping&);
private:
- natpmp_t natpmp;
+ class Private;
+ boost::shared_ptr<Private> p;
};
}