From bf920e363d1bb7be5089ace1795a142207466171 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 14 Apr 2010 14:40:08 +0000 Subject: Tidy up unnecessary includes in ConnectionSettings and fix consequences git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933971 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/client/Connection.h | 2 ++ cpp/include/qpid/client/ConnectionSettings.h | 14 +++++--------- cpp/src/qpid/agent/ManagementAgentImpl.cpp | 2 +- cpp/src/qpid/client/ConnectionSettings.cpp | 1 + cpp/src/qpid/client/SaslFactory.cpp | 1 + cpp/src/qpid/cluster/RetractClient.h | 1 + cpp/src/tests/echotest.cpp | 1 + cpp/src/tests/qrsh_server.cpp | 3 +++ 8 files changed, 15 insertions(+), 10 deletions(-) (limited to 'cpp') diff --git a/cpp/include/qpid/client/Connection.h b/cpp/include/qpid/client/Connection.h index 4d92d4b804..6ed0d98bc0 100644 --- a/cpp/include/qpid/client/Connection.h +++ b/cpp/include/qpid/client/Connection.h @@ -28,6 +28,8 @@ #include "qpid/client/ConnectionSettings.h" #include "qpid/framing/ProtocolVersion.h" +#include "boost/function.hpp" + namespace qpid { struct Url; diff --git a/cpp/include/qpid/client/ConnectionSettings.h b/cpp/include/qpid/client/ConnectionSettings.h index 46053e1fa8..bf060e73bb 100644 --- a/cpp/include/qpid/client/ConnectionSettings.h +++ b/cpp/include/qpid/client/ConnectionSettings.h @@ -22,13 +22,9 @@ * */ -#include "qpid/Options.h" -#include "qpid/log/Options.h" -#include "qpid/Url.h" #include "qpid/client/ClientImportExport.h" - -#include -#include +#include "qpid/sys/IntegerTypes.h" +#include namespace qpid { @@ -107,7 +103,7 @@ struct ConnectionSettings { * Limit the size of the connections send buffer . The buffer * is limited to bounds * maxFrameSize. */ - uint bounds; + unsigned int bounds; /** * If true, TCP_NODELAY will be set for the connection. */ @@ -120,12 +116,12 @@ struct ConnectionSettings { * Minimum acceptable strength of any SASL negotiated security * layer. 0 means no security layer required. */ - uint minSsf; + unsigned int minSsf; /** * Maximum acceptable strength of any SASL negotiated security * layer. 0 means no security layer allowed. */ - uint maxSsf; + unsigned int maxSsf; }; }} // namespace qpid::client diff --git a/cpp/src/qpid/agent/ManagementAgentImpl.cpp b/cpp/src/qpid/agent/ManagementAgentImpl.cpp index bade1d2826..076a34d1bf 100644 --- a/cpp/src/qpid/agent/ManagementAgentImpl.cpp +++ b/cpp/src/qpid/agent/ManagementAgentImpl.cpp @@ -29,7 +29,7 @@ #include #include #include - +#include using namespace qpid::client; using namespace qpid::framing; diff --git a/cpp/src/qpid/client/ConnectionSettings.cpp b/cpp/src/qpid/client/ConnectionSettings.cpp index 3ae4ee010a..b0c9477223 100644 --- a/cpp/src/qpid/client/ConnectionSettings.cpp +++ b/cpp/src/qpid/client/ConnectionSettings.cpp @@ -22,6 +22,7 @@ #include "qpid/log/Logger.h" #include "qpid/sys/Socket.h" +#include "qpid/Url.h" #include "qpid/Version.h" namespace qpid { diff --git a/cpp/src/qpid/client/SaslFactory.cpp b/cpp/src/qpid/client/SaslFactory.cpp index ec5680c8d8..5175c7735c 100644 --- a/cpp/src/qpid/client/SaslFactory.cpp +++ b/cpp/src/qpid/client/SaslFactory.cpp @@ -21,6 +21,7 @@ #include "qpid/client/SaslFactory.h" #include "qpid/client/ConnectionSettings.h" #include +#include #ifdef HAVE_CONFIG_H # include "config.h" diff --git a/cpp/src/qpid/cluster/RetractClient.h b/cpp/src/qpid/cluster/RetractClient.h index fb896197cc..533fc3f7ef 100644 --- a/cpp/src/qpid/cluster/RetractClient.h +++ b/cpp/src/qpid/cluster/RetractClient.h @@ -24,6 +24,7 @@ #include "qpid/client/ConnectionSettings.h" #include "qpid/sys/Runnable.h" +#include "qpid/Url.h" namespace qpid { diff --git a/cpp/src/tests/echotest.cpp b/cpp/src/tests/echotest.cpp index ab26dcf3fd..dcb1869e4d 100644 --- a/cpp/src/tests/echotest.cpp +++ b/cpp/src/tests/echotest.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include diff --git a/cpp/src/tests/qrsh_server.cpp b/cpp/src/tests/qrsh_server.cpp index f1163ba479..782f1e6c7c 100644 --- a/cpp/src/tests/qrsh_server.cpp +++ b/cpp/src/tests/qrsh_server.cpp @@ -20,6 +20,9 @@ */ #include +#include +#include +#include #include #include #include -- cgit v1.2.1