Skip to content

Commit

Permalink
fix-protypes: Fix mqtt_agent_task.h prototypes
Browse files Browse the repository at this point in the history
The only public function declared in `mqtt_agent_task.c` is
`vStartMqttAgentTask` as other functions were extracted to separate
files in previous work.
The prototypes for these other functions were left behind in
`mqtt_agent_task.h`. This commit removes them.

Also change `ota_agent_task.c` to include `events.h`, which is where
these function prototypes were placed in previous work.

Signed-off-by: Reuben Cartwright <[email protected]>
  • Loading branch information
RC-Repositories committed Sep 9, 2024
1 parent 3b1193c commit e3e44d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* FreeRTOS V202012.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2024 Arm Limited and/or its affiliates
* Copyright 2023-2024 Arm Limited and/or its affiliates
* <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down Expand Up @@ -56,9 +56,6 @@ struct MQTTAgentCommandContext
void * pArgs;
};

void vWaitUntilMQTTAgentReady( void );
void vWaitUntilMQTTAgentConnected( void );
bool xIsMqttAgentConnected( void );
void vStartMqttAgentTask( void );

#endif /* MQTT_AGENT_H */
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ target_link_libraries(ota-for-aws-iot-embedded-sdk
coremqtt
coremqtt-agent
freertos-ota-pal-psa
helpers-events
helpers-logging
tinycbor
)
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "app_config.h"

#include "mqtt_agent_task.h"
#include "events.h"

/* includes for TFM */
#include "psa/update.h"
Expand Down

0 comments on commit e3e44d2

Please sign in to comment.