Skip to content

Commit

Permalink
Updated codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Ambrose committed Mar 10, 2025
1 parent 3bfee21 commit 25358b0
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 29 deletions.
6 changes: 3 additions & 3 deletions identity/include/aws/iotidentity/IotIdentityClientV2.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool CreateCertificateFromCsr(
const CreateCertificateFromCsrRequest &request,
Expand All @@ -127,7 +127,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool CreateKeysAndCertificate(
const CreateKeysAndCertificateRequest &request,
Expand All @@ -143,7 +143,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool RegisterThing(
const RegisterThingRequest &request,
Expand Down
3 changes: 1 addition & 2 deletions identity/tests/v2ClientTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ static std::shared_ptr<Aws::Crt::Mqtt::MqttConnection> s_createProtocolClient311
connection = client.NewConnection(aws_string_c_str(host), 8883, socketOptions, tlsContext, false);

connection->OnConnectionSuccess =
[&connected, &lock, &signal](
Aws::Crt::Mqtt::MqttConnection &, Aws::Crt::Mqtt::OnConnectionSuccessData *)
[&connected, &lock, &signal](Aws::Crt::Mqtt::MqttConnection &, Aws::Crt::Mqtt::OnConnectionSuccessData *)
{
{
std::lock_guard<std::mutex> guard(lock);
Expand Down
1 change: 0 additions & 1 deletion jobs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ if (BUILD_DEPS)
endif()

aws_add_sanitizers(IotJobs-cpp)

target_link_libraries(IotJobs-cpp PUBLIC ${DEP_AWS_LIBS})

install(FILES ${AWS_IOTJOBS_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/iotjobs/" COMPONENT Development)
Expand Down
12 changes: 6 additions & 6 deletions jobs/include/aws/iotjobs/IotJobsClientV2.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool DescribeJobExecution(
const DescribeJobExecutionRequest &request,
Expand All @@ -132,7 +132,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool GetPendingJobExecutions(
const GetPendingJobExecutionsRequest &request,
Expand All @@ -148,7 +148,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool StartNextPendingJobExecution(
const StartNextPendingJobExecutionRequest &request,
Expand All @@ -166,7 +166,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool UpdateJobExecution(
const UpdateJobExecutionRequest &request,
Expand All @@ -182,7 +182,7 @@ namespace Aws
* @param request modeled streaming operation subscription configuration
* @param options
*
* @returns a streaming operation which will emit a modeled event every time a message is received on the
* @return a streaming operation which will emit a modeled event every time a message is received on the
* associated MQTT topic
*/
virtual std::shared_ptr<Aws::Iot::RequestResponse::IStreamingOperation> CreateJobExecutionsChangedStream(
Expand All @@ -199,7 +199,7 @@ namespace Aws
* @param request modeled streaming operation subscription configuration
* @param options
*
* @returns a streaming operation which will emit a modeled event every time a message is received on the
* @return a streaming operation which will emit a modeled event every time a message is received on the
* associated MQTT topic
*/
virtual std::shared_ptr<Aws::Iot::RequestResponse::IStreamingOperation> CreateNextJobExecutionChangedStream(
Expand Down
5 changes: 2 additions & 3 deletions jobs/tests/v2ClientTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static std::shared_ptr<Aws::Crt::Mqtt5::Mqtt5Client> s_createProtocolClient5(Aws
mqtt5Options.WithHostName(Aws::Crt::String(aws_string_c_str(host)));
mqtt5Options.WithPort(8883);
mqtt5Options.WithTlsConnectionOptions(tlsContext.NewConnectionOptions());

mqtt5Options.WithClientConnectionSuccessCallback(
[&lock, &signal, &connected](const Aws::Crt::Mqtt5::OnConnectionSuccessEventData &)
{
Expand Down Expand Up @@ -126,8 +126,7 @@ static std::shared_ptr<Aws::Crt::Mqtt::MqttConnection> s_createProtocolClient311
connection = client.NewConnection(aws_string_c_str(host), 8883, socketOptions, tlsContext, false);

connection->OnConnectionSuccess =
[&connected, &lock, &signal](
Aws::Crt::Mqtt::MqttConnection &, Aws::Crt::Mqtt::OnConnectionSuccessData *)
[&connected, &lock, &signal](Aws::Crt::Mqtt::MqttConnection &, Aws::Crt::Mqtt::OnConnectionSuccessData *)
{
{
std::lock_guard<std::mutex> guard(lock);
Expand Down
3 changes: 1 addition & 2 deletions shadow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ if (BUILD_DEPS)
endif()
endif()

aws_add_sanitizers(${PROJECT_NAME})

aws_add_sanitizers(IotShadow-cpp)
target_link_libraries(IotShadow-cpp PUBLIC ${DEP_AWS_LIBS})

install(FILES ${AWS_IOTSHADOW_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/iotshadow/" COMPONENT Development)
Expand Down
20 changes: 10 additions & 10 deletions shadow/include/aws/iotshadow/IotShadowClientV2.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool DeleteNamedShadow(
const DeleteNamedShadowRequest &request,
Expand All @@ -143,7 +143,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool DeleteShadow(const DeleteShadowRequest &request, const DeleteShadowResultHandler &handler) = 0;

Expand All @@ -157,7 +157,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool GetNamedShadow(
const GetNamedShadowRequest &request,
Expand All @@ -173,7 +173,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool GetShadow(const GetShadowRequest &request, const GetShadowResultHandler &handler) = 0;

Expand All @@ -187,7 +187,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool UpdateNamedShadow(
const UpdateNamedShadowRequest &request,
Expand All @@ -203,7 +203,7 @@ namespace Aws
* @param request operation to perform
* @param handler function object to invoke upon operation completion
*
* @returns success/failure
* @return success/failure
*/
virtual bool UpdateShadow(const UpdateShadowRequest &request, const UpdateShadowResultHandler &handler) = 0;

Expand All @@ -217,7 +217,7 @@ namespace Aws
* @param request modeled streaming operation subscription configuration
* @param options
*
* @returns a streaming operation which will emit a modeled event every time a message is received on the
* @return a streaming operation which will emit a modeled event every time a message is received on the
* associated MQTT topic
*/
virtual std::shared_ptr<Aws::Iot::RequestResponse::IStreamingOperation> CreateNamedShadowDeltaUpdatedStream(
Expand All @@ -234,7 +234,7 @@ namespace Aws
* @param request modeled streaming operation subscription configuration
* @param options
*
* @returns a streaming operation which will emit a modeled event every time a message is received on the
* @return a streaming operation which will emit a modeled event every time a message is received on the
* associated MQTT topic
*/
virtual std::shared_ptr<Aws::Iot::RequestResponse::IStreamingOperation> CreateNamedShadowUpdatedStream(
Expand All @@ -251,7 +251,7 @@ namespace Aws
* @param request modeled streaming operation subscription configuration
* @param options
*
* @returns a streaming operation which will emit a modeled event every time a message is received on the
* @return a streaming operation which will emit a modeled event every time a message is received on the
* associated MQTT topic
*/
virtual std::shared_ptr<Aws::Iot::RequestResponse::IStreamingOperation> CreateShadowDeltaUpdatedStream(
Expand All @@ -268,7 +268,7 @@ namespace Aws
* @param request modeled streaming operation subscription configuration
* @param options
*
* @returns a streaming operation which will emit a modeled event every time a message is received on the
* @return a streaming operation which will emit a modeled event every time a message is received on the
* associated MQTT topic
*/
virtual std::shared_ptr<Aws::Iot::RequestResponse::IStreamingOperation> CreateShadowUpdatedStream(
Expand Down
3 changes: 1 addition & 2 deletions shadow/tests/v2ClientTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ static std::shared_ptr<Aws::Crt::Mqtt::MqttConnection> s_createProtocolClient311
connection = client.NewConnection(aws_string_c_str(host), 8883, socketOptions, tlsContext, false);

connection->OnConnectionSuccess =
[&connected, &lock, &signal](
Aws::Crt::Mqtt::MqttConnection &, Aws::Crt::Mqtt::OnConnectionSuccessData *)
[&connected, &lock, &signal](Aws::Crt::Mqtt::MqttConnection &, Aws::Crt::Mqtt::OnConnectionSuccessData *)
{
{
std::lock_guard<std::mutex> guard(lock);
Expand Down

0 comments on commit 25358b0

Please sign in to comment.