Skip to content
Snippets Groups Projects
Commit e8b1209b authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

misc: fix some build warning and add ut_bootstrap to CMakeLists

Change-Id: I114a876bf6becacac00eec362a4481f3b0de6494
parent 498b6d06
Branches
No related tags found
No related merge requests found
...@@ -701,6 +701,10 @@ else() ...@@ -701,6 +701,10 @@ else()
target_compile_definitions(ut_library PUBLIC ENABLE_VIDEO) target_compile_definitions(ut_library PUBLIC ENABLE_VIDEO)
endif() endif()
add_executable(ut_bootstrap test/unitTest/swarm/bootstrap.cpp)
target_link_libraries(ut_bootstrap ut_library)
add_test(NAME bootstrap COMMAND ut_bootstrap)
add_executable(ut_conversationRepository test/unitTest/conversationRepository/conversationRepository.cpp) add_executable(ut_conversationRepository test/unitTest/conversationRepository/conversationRepository.cpp)
target_link_libraries(ut_conversationRepository ut_library) target_link_libraries(ut_conversationRepository ut_library)
add_test(NAME conversationRepository COMMAND ut_conversationRepository) add_test(NAME conversationRepository COMMAND ut_conversationRepository)
......
...@@ -233,6 +233,24 @@ public: ...@@ -233,6 +233,24 @@ public:
~Config() {} ~Config() {}
std::shared_ptr<dht::DhtRunner> dht_;
const dht::crypto::Identity& id_;
const dht::crypto::Identity& identity() const { return id_; }
/**
* UPnP IGD controller and the mutex to access it
*/
bool upnpEnabled_;
mutable std::mutex upnp_mtx {};
std::shared_ptr<jami::upnp::Controller> upnpCtrl_;
/**
* returns whether or not UPnP is enabled and active
* ie: if it is able to make port mappings
*/
bool getUPnPActive() const;
/** /**
* Determine if STUN public address resolution is required to register this account. In this * Determine if STUN public address resolution is required to register this account. In this
* case a STUN server hostname must be specified. * case a STUN server hostname must be specified.
...@@ -244,13 +262,6 @@ public: ...@@ -244,13 +262,6 @@ public:
* softphone stay behind a NAT. * softphone stay behind a NAT.
*/ */
std::string stunServer_ {}; std::string stunServer_ {};
/**
* Determine if TURN public address resolution is required to register this account. In this
* case a TURN server hostname must be specified.
*/
bool turnEnabled_ {false};
/** /**
* The TURN server hostname (optional), used to provide the public IP address in case the * The TURN server hostname (optional), used to provide the public IP address in case the
* softphone stay behind a NAT. * softphone stay behind a NAT.
...@@ -260,31 +271,19 @@ public: ...@@ -260,31 +271,19 @@ public:
std::string turnServerPwd_; std::string turnServerPwd_;
std::string turnServerRealm_; std::string turnServerRealm_;
/**
* Determine if TURN public address resolution is required to register this account. In this
* case a TURN server hostname must be specified.
*/
bool turnEnabled_ {false};
mutable std::mutex cachedTurnMutex_ {}; mutable std::mutex cachedTurnMutex_ {};
std::unique_ptr<IpAddr> cacheTurnV4_ {}; std::unique_ptr<IpAddr> cacheTurnV4_ {};
std::unique_ptr<IpAddr> cacheTurnV6_ {}; std::unique_ptr<IpAddr> cacheTurnV6_ {};
std::string cachePath {}; std::string cachePath {};
std::shared_ptr<dht::DhtRunner> dht_;
const dht::crypto::Identity& id_;
const dht::crypto::Identity& identity() const { return id_; }
tls::CertificateStore* certStore_; tls::CertificateStore* certStore_;
/**
* UPnP IGD controller and the mutex to access it
*/
bool upnpEnabled_;
mutable std::mutex upnp_mtx {};
std::shared_ptr<jami::upnp::Controller> upnpCtrl_;
/**
* returns whether or not UPnP is enabled and active
* ie: if it is able to make port mappings
*/
bool getUPnPActive() const;
}; };
} // namespace jami } // namespace jami
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment