Skip to content

Commit 6bbd4eb

Browse files
bretambroseBret Ambrose
andauthored
Request response workspace (awslabs#664)
Co-authored-by: Bret Ambrose <[email protected]>
1 parent 281a7ca commit 6bbd4eb

File tree

13 files changed

+2204
-5
lines changed

13 files changed

+2204
-5
lines changed

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-*,modernize-*,bugprone-*,misc-*,google-runtime-int,llvm-header-guard,fuchsia-restrict-system-includes,-clang-analyzer-valist.Uninitialized,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-alpha.*,-readability-magic-numbers,-readability-non-const-parameter'
2+
Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-*,modernize-*,bugprone-*,misc-*,google-runtime-int,llvm-header-guard,fuchsia-restrict-system-includes,-clang-analyzer-valist.Uninitialized,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-alpha.*,-readability-magic-numbers,-readability-non-const-parameter,-modernize-use-trailing-return-type'
33
WarningsAsErrors: '*'
44
HeaderFilterRegex: '.*(?<!cJSON.cpp)$'
55
FormatStyle: 'file'

include/aws/crt/Variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ namespace Aws
404404
{
405405
template <typename AlternativeT> void operator()(AlternativeT &&value) const
406406
{
407+
(void)value;
407408
using PlaintT = typename std::remove_reference<AlternativeT>::type;
408409
value.~PlaintT();
409410
}

include/aws/crt/mqtt/Mqtt5Client.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ namespace Aws
435435

436436
virtual ~Mqtt5Client();
437437

438+
struct aws_mqtt5_client *GetUnderlyingHandle() const noexcept;
439+
438440
private:
439441
Mqtt5Client(const Mqtt5ClientOptions &options, Allocator *allocator = ApiAllocator()) noexcept;
440442

include/aws/crt/mqtt/MqttConnection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ namespace Aws
263263
bool Disconnect() noexcept;
264264

265265
/// @private
266-
aws_mqtt_client_connection *GetUnderlyingConnection() noexcept;
266+
aws_mqtt_client_connection *GetUnderlyingConnection() const noexcept;
267267

268268
/**
269269
* Subscribes to topicFilter. OnMessageReceivedHandler will be invoked from an event-loop

include/aws/crt/mqtt/private/Mqtt5ClientCore.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ namespace Aws
109109

110110
virtual ~Mqtt5ClientCore();
111111

112+
struct aws_mqtt5_client *GetUnderlyingHandle() const noexcept { return m_client; }
113+
112114
private:
113115
Mqtt5ClientCore(const Mqtt5ClientOptions &options, Allocator *allocator = ApiAllocator()) noexcept;
114116

include/aws/crt/mqtt/private/MqttConnectionCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ namespace Aws
151151
bool Disconnect() noexcept;
152152

153153
/// @private
154-
aws_mqtt_client_connection *GetUnderlyingConnection() noexcept;
154+
aws_mqtt_client_connection *GetUnderlyingConnection() const noexcept;
155155

156156
/**
157157
* @internal

0 commit comments

Comments
 (0)