From e6e7fc961dc81e8112ecee2610519dfa95cfe508 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 31 Oct 2019 12:04:29 +0000 Subject: [PATCH] Fix function in wrong doc section. --- lib/mosquitto.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/mosquitto.h b/lib/mosquitto.h index 62243f66..089d02b3 100644 --- a/lib/mosquitto.h +++ b/lib/mosquitto.h @@ -2458,6 +2458,24 @@ libmosq_EXPORT int mosquitto_sub_topic_check(const char *topic); libmosq_EXPORT int mosquitto_sub_topic_check2(const char *topic, size_t topiclen); +/* + * Function: mosquitto_validate_utf8 + * + * Helper function to validate whether a UTF-8 string is valid, according to + * the UTF-8 spec and the MQTT additions. + * + * Parameters: + * str - a string to check + * len - the length of the string in bytes + * + * Returns: + * MOSQ_ERR_SUCCESS - on success + * MOSQ_ERR_INVAL - if str is NULL or len<0 or len>65536 + * MOSQ_ERR_MALFORMED_UTF8 - if str is not valid UTF-8 + */ +libmosq_EXPORT int mosquitto_validate_utf8(const char *str, int len); + + /* ============================================================================= * * Section: One line client helper functions @@ -2595,24 +2613,6 @@ libmosq_EXPORT int mosquitto_subscribe_callback( const struct libmosquitto_tls *tls); -/* - * Function: mosquitto_validate_utf8 - * - * Helper function to validate whether a UTF-8 string is valid, according to - * the UTF-8 spec and the MQTT additions. - * - * Parameters: - * str - a string to check - * len - the length of the string in bytes - * - * Returns: - * MOSQ_ERR_SUCCESS - on success - * MOSQ_ERR_INVAL - if str is NULL or len<0 or len>65536 - * MOSQ_ERR_MALFORMED_UTF8 - if str is not valid UTF-8 - */ -libmosq_EXPORT int mosquitto_validate_utf8(const char *str, int len); - - /* ============================================================================= * * Section: Properties