33 * SPDX-License-Identifier: Apache-2.0.
44 */
55
6- #ifndef AWS_MQTT_IOT_SDK_METRICS_H
7- #define AWS_MQTT_IOT_SDK_METRICS_H
6+ #ifndef AWS_MQTT_IOT_METRICS_H
7+ #define AWS_MQTT_IOT_METRICS_H
88
99#include <aws/mqtt/mqtt.h>
1010
11- /* Storage for `aws_mqtt_iot_sdk_metrics `. */
12- struct aws_mqtt_iot_sdk_metrics_storage {
11+ /* Storage for `aws_mqtt_iot_metrics `. */
12+ struct aws_mqtt_iot_metrics_storage {
1313 struct aws_allocator * allocator ;
1414
15- struct aws_mqtt_iot_sdk_metrics storage_view ;
16-
17- struct aws_array_list metadata_entries ;
15+ struct aws_mqtt_iot_metrics storage_view ;
1816
1917 struct aws_byte_cursor library_name ;
2018
2119 struct aws_byte_buf storage ;
2220};
2321
24- AWS_MQTT_API struct aws_mqtt_iot_sdk_metrics_storage * aws_mqtt_iot_sdk_metrics_storage_new (
22+ AWS_MQTT_API struct aws_mqtt_iot_metrics_storage * aws_mqtt_iot_metrics_storage_new (
2523 struct aws_allocator * allocator ,
26- const struct aws_mqtt_iot_sdk_metrics * metrics_options );
24+ const struct aws_mqtt_iot_metrics * metrics_options );
2725
28- AWS_MQTT_API void aws_mqtt_iot_sdk_metrics_storage_destroy (struct aws_mqtt_iot_sdk_metrics_storage * metrics_storage );
26+ AWS_MQTT_API void aws_mqtt_iot_metrics_storage_destroy (struct aws_mqtt_iot_metrics_storage * metrics_storage );
2927
3028/**
3129 * Builds a new username by appending SDK metrics to the original username.
@@ -43,17 +41,17 @@ AWS_MQTT_API
4341int aws_mqtt_append_sdk_metrics_to_username (
4442 struct aws_allocator * allocator ,
4543 const struct aws_byte_cursor * original_username ,
46- const struct aws_mqtt_iot_sdk_metrics * metrics ,
44+ const struct aws_mqtt_iot_metrics * metrics ,
4745 struct aws_byte_buf * output_username ,
4846 size_t * out_full_username_size );
4947
5048/**
51- * Validates all string fields in aws_mqtt_iot_sdk_metrics
49+ * Validates all string fields in aws_mqtt_iot_metrics
5250 *
5351 * @param metrics The metrics structure to validate
5452 * @return AWS_OP_SUCCESS if metrics is not null and all metrics value are valid, AWS_OP_ERR otherwise
5553 */
5654AWS_MQTT_API
57- int aws_mqtt_validate_iot_sdk_metrics (const struct aws_mqtt_iot_sdk_metrics * metrics );
55+ int aws_mqtt_validate_iot_metrics (const struct aws_mqtt_iot_metrics * metrics );
5856
59- #endif /* AWS_MQTT_IOT_SDK_METRICS_H */
57+ #endif /* AWS_MQTT_IOT_METRICS_H */
0 commit comments