Azure IoT / azure_c_shared_utility

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Committer:
Azure.IoT Build
Date:
Fri Apr 08 12:01:36 2016 -0700
Revision:
0:fa2de1b79154
Child:
2:20b88da3e604
1.0.4

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Azure.IoT Build 0:fa2de1b79154 1 // Copyright (c) Microsoft. All rights reserved.
Azure.IoT Build 0:fa2de1b79154 2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
Azure.IoT Build 0:fa2de1b79154 3
Azure.IoT Build 0:fa2de1b79154 4 #ifndef STRINGS_H
Azure.IoT Build 0:fa2de1b79154 5 #define STRINGS_H
Azure.IoT Build 0:fa2de1b79154 6
Azure.IoT Build 0:fa2de1b79154 7 #ifdef __cplusplus
Azure.IoT Build 0:fa2de1b79154 8 #include <cstddef>
Azure.IoT Build 0:fa2de1b79154 9 extern "C"
Azure.IoT Build 0:fa2de1b79154 10 {
Azure.IoT Build 0:fa2de1b79154 11 #else
Azure.IoT Build 0:fa2de1b79154 12 #include <stddef.h>
Azure.IoT Build 0:fa2de1b79154 13 #endif
Azure.IoT Build 0:fa2de1b79154 14
Azure.IoT Build 0:fa2de1b79154 15 typedef struct STRING_TAG* STRING_HANDLE;
Azure.IoT Build 0:fa2de1b79154 16
Azure.IoT Build 0:fa2de1b79154 17 extern STRING_HANDLE STRING_new(void);
Azure.IoT Build 0:fa2de1b79154 18 extern STRING_HANDLE STRING_clone(STRING_HANDLE handle);
Azure.IoT Build 0:fa2de1b79154 19 extern STRING_HANDLE STRING_construct(const char* psz);
Azure.IoT Build 0:fa2de1b79154 20 extern STRING_HANDLE STRING_construct_n(const char* psz, size_t n);
Azure.IoT Build 0:fa2de1b79154 21 extern STRING_HANDLE STRING_new_with_memory(const char* memory);
Azure.IoT Build 0:fa2de1b79154 22 extern STRING_HANDLE STRING_new_quoted(const char* source);
Azure.IoT Build 0:fa2de1b79154 23 extern STRING_HANDLE STRING_new_JSON(const char* source);
Azure.IoT Build 0:fa2de1b79154 24 extern void STRING_delete(STRING_HANDLE handle);
Azure.IoT Build 0:fa2de1b79154 25 extern int STRING_concat(STRING_HANDLE handle, const char* s2);
Azure.IoT Build 0:fa2de1b79154 26 extern int STRING_concat_with_STRING(STRING_HANDLE s1, STRING_HANDLE s2);
Azure.IoT Build 0:fa2de1b79154 27 extern int STRING_quote(STRING_HANDLE handle);
Azure.IoT Build 0:fa2de1b79154 28 extern int STRING_copy(STRING_HANDLE s1, const char* s2);
Azure.IoT Build 0:fa2de1b79154 29 extern int STRING_copy_n(STRING_HANDLE s1, const char* s2, size_t n);
Azure.IoT Build 0:fa2de1b79154 30 extern const char* STRING_c_str(STRING_HANDLE handle);
Azure.IoT Build 0:fa2de1b79154 31 extern int STRING_empty(STRING_HANDLE handle);
Azure.IoT Build 0:fa2de1b79154 32 extern size_t STRING_length(STRING_HANDLE handle);
Azure.IoT Build 0:fa2de1b79154 33 extern int STRING_compare(STRING_HANDLE s1, STRING_HANDLE s2);
Azure.IoT Build 0:fa2de1b79154 34
Azure.IoT Build 0:fa2de1b79154 35
Azure.IoT Build 0:fa2de1b79154 36 #ifdef __cplusplus
Azure.IoT Build 0:fa2de1b79154 37 }
Azure.IoT Build 0:fa2de1b79154 38 #else
Azure.IoT Build 0:fa2de1b79154 39 #endif
Azure.IoT Build 0:fa2de1b79154 40
Azure.IoT Build 0:fa2de1b79154 41 #endif /*STRINGS_H*/