From 80b5931fa7bc143f17914431b9c35b10a2877061 Mon Sep 17 00:00:00 2001 From: Dakshit Babbar Date: Tue, 1 Oct 2024 10:28:51 +0530 Subject: [PATCH] Resolve formating issues --- source/core_mqtt.c | 8 ++++---- source/include/core_mqtt.h | 38 +++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/source/core_mqtt.c b/source/core_mqtt.c index 468e7600..ac60c029 100644 --- a/source/core_mqtt.c +++ b/source/core_mqtt.c @@ -2204,9 +2204,9 @@ static MQTTStatus_t sendPublishWithoutCopy( MQTTContext_t * pContext, totalMessageLength += pPublishInfo->payloadLength; } - /* if not already set, set the dup flag before storing a copy of the publish - * this is because on retrieving back this copy we will get it in the form of an - * array of TransportOutVector_t that holds the data in a const pointer which cannot be + /* if not already set, set the dup flag before storing a copy of the publish + * this is because on retrieving back this copy we will get it in the form of an + * array of TransportOutVector_t that holds the data in a const pointer which cannot be * changed after retrieving.*/ if( pPublishInfo->dup != true ) { @@ -2550,7 +2550,7 @@ static MQTTStatus_t handleUncleanSessionResumption( MQTTContext_t * pContext ) status = MQTTPublishRetrieveFailed; } - /* Resend all the PUBLISH for which PUBACK/PUBREC is not received + /* Resend all the PUBLISH for which PUBACK/PUBREC is not received * after session is reestablished. */ while( ( packetId != MQTT_PACKET_ID_INVALID ) && ( status == MQTTSuccess ) ) diff --git a/source/include/core_mqtt.h b/source/include/core_mqtt.h index 839d11c8..f97e2490 100644 --- a/source/include/core_mqtt.h +++ b/source/include/core_mqtt.h @@ -102,7 +102,7 @@ typedef void (* MQTTEventCallback_t )( struct MQTTContext * pContext, struct MQTTDeserializedInfo * pDeserializedInfo ); /** - * @brief User defined callback used to store outgoing publishes. Used to track any publish + * @brief User defined callback used to store outgoing publishes. Used to track any publish * retransmit on an unclean session connection. * * @param[in] pContext Initialised MQTT Context. @@ -114,13 +114,13 @@ typedef void (* MQTTEventCallback_t )( struct MQTTContext * pContext, */ /* @[define_mqtt_retransmitstorepacket] */ typedef bool ( * MQTTStorePacketForRetransmit)( struct MQTTContext * pContext, - uint16_t packetId, - TransportOutVector_t * pIoVec, - size_t ioVecCount ); + uint16_t packetId, + TransportOutVector_t * pIoVec, + size_t ioVecCount ); /* @[define_mqtt_retransmitstorepacket] */ /** - * @brief User defined callback used to retreive a copied publish for resend operation. Used to + * @brief User defined callback used to retreive a copied publish for resend operation. Used to * track any publish retransmit on an unclean session connection. * * @param[in] pContext Initialised MQTT Context. @@ -132,13 +132,13 @@ typedef bool ( * MQTTStorePacketForRetransmit)( struct MQTTContext * pContext, */ /* @[define_mqtt_retransmitretrievepacket] */ typedef bool ( * MQTTRetrievePacketForRetransmit)( struct MQTTContext * pContext, - uint16_t packetId, - TransportOutVector_t ** pIoVec, - size_t * ioVecCount ); + uint16_t packetId, + TransportOutVector_t ** pIoVec, + size_t * ioVecCount ); /* @[define_mqtt_retransmitretrievepacket] */ /** - * @brief User defined callback used to clear a particular copied publish packet. Used to + * @brief User defined callback used to clear a particular copied publish packet. Used to * track any publish retransmit on an unclean session connection. * * @param[in] pContext Initialised MQTT Context. @@ -147,12 +147,12 @@ typedef bool ( * MQTTRetrievePacketForRetransmit)( struct MQTTContext * pContext * @return True if the clear is successful else false. */ /* @[define_mqtt_retransmitclearpacket] */ -typedef bool (*MQTTClearPacketForRetransmit)( struct MQTTContext * pContext, - uint16_t packetId ); +typedef bool (* MQTTClearPacketForRetransmit)( struct MQTTContext * pContext, + uint16_t packetId ); /* @[define_mqtt_retransmitclearpacket] */ /** - * @brief User defined callback used to clear all copied publish packets. Used to + * @brief User defined callback used to clear all copied publish packets. Used to * when connecting with a clean session. * * @param[in] pContext Initialised MQTT Context. @@ -160,7 +160,7 @@ typedef bool (*MQTTClearPacketForRetransmit)( struct MQTTContext * pContext, * @return True if the clear all is successful else false. */ /* @[define_mqtt_retransmitclearallpackets] */ -typedef bool (*MQTTClearAllPacketsForRetransmit)( struct MQTTContext * pContext ); +typedef bool (* MQTTClearAllPacketsForRetransmit)( struct MQTTContext * pContext ); /* @[define_mqtt_retransmitclearallpackets] */ /** @@ -323,7 +323,7 @@ typedef struct MQTTContext /** * @brief User defined API used to clear a particular copied publish packet. */ - MQTTClearPacketForRetransmit clearFunction; + MQTTClearPacketForRetransmit clearFunction; /** * @brief User defined API used to clear all copied publish packets. @@ -510,7 +510,7 @@ MQTTStatus_t MQTT_InitStatefulQoS( MQTTContext_t * pContext, * * @return #MQTTBadParameter if invalid parameters are passed; * #MQTTSuccess otherwise. - * + * * Example * @code{c} * @@ -571,12 +571,12 @@ MQTTStatus_t MQTT_InitStatefulQoS( MQTTContext_t * pContext, * * // Now QoS1 and/or QoS2 publishes can be sent with this context. * } - * + * * if( status == MQTTSuccess ) * { - * status = MQTT_InitRetransmits( &mqttContext, publishStoreCallback, - * publishRetrieveCallback, - * publishClearCallback, + * status = MQTT_InitRetransmits( &mqttContext, publishStoreCallback, + * publishRetrieveCallback, + * publishClearCallback, * publishClearAllCallback ); * * // Now unacked Publishes can be resent on an unclean session resumption.