Skip to content

Commit

Permalink
Request response workspace (#664)
Browse files Browse the repository at this point in the history
Co-authored-by: Bret Ambrose <[email protected]>
  • Loading branch information
bretambrose and Bret Ambrose authored Nov 8, 2024
1 parent 281a7ca commit 6bbd4eb
Show file tree
Hide file tree
Showing 13 changed files with 2,204 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
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'
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'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*(?<!cJSON.cpp)$'
FormatStyle: 'file'
Expand Down
1 change: 1 addition & 0 deletions include/aws/crt/Variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ namespace Aws
{
template <typename AlternativeT> void operator()(AlternativeT &&value) const
{
(void)value;
using PlaintT = typename std::remove_reference<AlternativeT>::type;
value.~PlaintT();
}
Expand Down
2 changes: 2 additions & 0 deletions include/aws/crt/mqtt/Mqtt5Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ namespace Aws

virtual ~Mqtt5Client();

struct aws_mqtt5_client *GetUnderlyingHandle() const noexcept;

private:
Mqtt5Client(const Mqtt5ClientOptions &options, Allocator *allocator = ApiAllocator()) noexcept;

Expand Down
2 changes: 1 addition & 1 deletion include/aws/crt/mqtt/MqttConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ namespace Aws
bool Disconnect() noexcept;

/// @private
aws_mqtt_client_connection *GetUnderlyingConnection() noexcept;
aws_mqtt_client_connection *GetUnderlyingConnection() const noexcept;

/**
* Subscribes to topicFilter. OnMessageReceivedHandler will be invoked from an event-loop
Expand Down
2 changes: 2 additions & 0 deletions include/aws/crt/mqtt/private/Mqtt5ClientCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ namespace Aws

virtual ~Mqtt5ClientCore();

struct aws_mqtt5_client *GetUnderlyingHandle() const noexcept { return m_client; }

private:
Mqtt5ClientCore(const Mqtt5ClientOptions &options, Allocator *allocator = ApiAllocator()) noexcept;

Expand Down
2 changes: 1 addition & 1 deletion include/aws/crt/mqtt/private/MqttConnectionCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace Aws
bool Disconnect() noexcept;

/// @private
aws_mqtt_client_connection *GetUnderlyingConnection() noexcept;
aws_mqtt_client_connection *GetUnderlyingConnection() const noexcept;

/**
* @internal
Expand Down
Loading

0 comments on commit 6bbd4eb

Please sign in to comment.