@@ -295,13 +295,13 @@ typedef void(aws_mqtt5_publish_completion_fn)(
295295 void * complete_ctx );
296296
297297/**
298- * Signature of callback invoked when a manual PUBACK operation completes.
298+ * Signature of callback invoked when a manual publish acknowledgement operation completes.
299299 *
300- * @param puback_result result of the PUBACK operation
300+ * @param puback_result result of the publish acknowledgement operation
301301 * @param completion_user_data user data passed in with the completion options
302302 */
303- typedef void (aws_mqtt5_manual_puback_completion_fn )(
304- enum aws_mqtt5_manual_puback_result puback_result ,
303+ typedef void (aws_mqtt5_manual_publish_acknowledgement_completion_fn )(
304+ enum aws_mqtt5_manual_publish_acknowledgement_result publish_acknowledgement_result ,
305305 void * completion_user_data );
306306
307307/**
@@ -356,10 +356,10 @@ struct aws_mqtt5_publish_completion_options {
356356};
357357
358358/**
359- * Completion options for the manual puback operation
359+ * Completion options for the manual publish acknowledgement operation
360360 */
361- struct aws_mqtt5_manual_puback_completion_options {
362- aws_mqtt5_manual_puback_completion_fn * completion_callback ;
361+ struct aws_mqtt5_manual_publish_acknowledgement_completion_options {
362+ aws_mqtt5_manual_publish_acknowledgement_completion_fn * completion_callback ;
363363 void * completion_user_data ;
364364};
365365
@@ -757,33 +757,33 @@ int aws_mqtt5_client_publish(
757757 const struct aws_mqtt5_publish_completion_options * completion_options );
758758
759759/**
760- * Takes manual control of PUBACK for the given PUBLISH packet.
760+ * Takes manual control of publish acknowledgement for the given PUBLISH packet.
761761 *
762762 * This MUST only be called from within the publish received callback. A return value of 0 indicates an
763763 * invalid control id.
764764 *
765- * @param client mqtt5 client that received the PUBLISH packet to take manual PUBACK control from.
766- * @param publish_view the view of the PUBLISH packet that PUBACK control is taken from.
767- * @return puback_control_id of the PUBLISH packet. This can be used to schedule a PUBACK for the PUBLISH packet
768- * when used with the aws_mqtt5_client_invoke_puback function call.
765+ * @param client mqtt5 client that received the PUBLISH packet to take manual publish acknowledgement control from.
766+ * @param publish_view the view of the PUBLISH packet that publish acknowledgement control is taken from.
767+ * @return pub_ack_control_id of the PUBLISH packet. This can be used to schedule a publish acknowledgement for the
768+ * PUBLISH packet when used with the aws_mqtt5_client_invoke_publish_acknowledgement function call.
769769 */
770- AWS_MQTT_API uint64_t aws_mqtt5_client_acquire_puback (
770+ AWS_MQTT_API uint64_t aws_mqtt5_client_acquire_publish_acknowledgement (
771771 struct aws_mqtt5_client * client ,
772772 const struct aws_mqtt5_packet_publish_view * publish_view );
773773
774774/**
775- * Send PUBACK for provided control id. Callback in completion_options will be invoked with an
776- * aws_mqtt5_manual_puback_result once a PUBACK operation has been completed.
775+ * Send publish acknowledgement for provided control id. Callback in completion_options will be invoked with an
776+ * aws_mqtt5_manual_publish_acknowledgement_result once a publish acknowledgement operation has been completed.
777777 *
778778 * @param client mqtt5 client to queue a puback for
779- * @param puback_control_id Control ID of aws_mqtt5_manual_puback_entry to send to broker/server
780- * @return success/failure of starting the manual PUBACK operation.
779+ * @param pub_ack_control_id Control ID of aws_mqtt5_manual_pub_ack_entry to send to broker/server
780+ * @return success/failure of starting the manual publish acknowledgement operation.
781781 */
782782AWS_MQTT_API
783- int aws_mqtt5_client_invoke_puback (
783+ int aws_mqtt5_client_invoke_publish_acknowledgement (
784784 struct aws_mqtt5_client * client ,
785- uint64_t puback_control_id ,
786- const struct aws_mqtt5_manual_puback_completion_options * completion_options );
785+ uint64_t pub_ack_control_id ,
786+ const struct aws_mqtt5_manual_publish_acknowledgement_completion_options * completion_options );
787787
788788/**
789789 * Queues a Subscribe operation in an mqtt5 client
0 commit comments