Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface NTPClient iothub_amqp_transport iothub_client mbed-rtos mbed
Fork of iothub_client_sample_amqp by
strings.h
00001 // Copyright (c) Microsoft. All rights reserved. 00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information. 00003 00004 #ifndef STRINGS_H 00005 #define STRINGS_H 00006 00007 #ifdef __cplusplus 00008 #include <cstddef> 00009 extern "C" 00010 { 00011 #else 00012 #include <stddef.h> 00013 #endif 00014 00015 #include "azure_c_shared_utility/umock_c_prod.h" 00016 00017 typedef struct STRING_TAG* STRING_HANDLE; 00018 00019 MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new); 00020 MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_clone, STRING_HANDLE, handle); 00021 MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_construct, const char*, psz); 00022 MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_construct_n, const char*, psz, size_t, n); 00023 MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_with_memory, const char*, memory); 00024 MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_quoted, const char*, source); 00025 MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_JSON, const char*, source); 00026 MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_from_byte_array, const unsigned char*, source, size_t, size); 00027 MOCKABLE_FUNCTION(, void, STRING_delete, STRING_HANDLE, handle); 00028 MOCKABLE_FUNCTION(, int, STRING_concat, STRING_HANDLE, handle, const char*, s2); 00029 MOCKABLE_FUNCTION(, int, STRING_concat_with_STRING, STRING_HANDLE, s1, STRING_HANDLE, s2); 00030 MOCKABLE_FUNCTION(, int, STRING_quote, STRING_HANDLE, handle); 00031 MOCKABLE_FUNCTION(, int, STRING_copy, STRING_HANDLE, s1, const char*, s2); 00032 MOCKABLE_FUNCTION(, int, STRING_copy_n, STRING_HANDLE, s1, const char*, s2, size_t, n); 00033 MOCKABLE_FUNCTION(, const char*, STRING_c_str, STRING_HANDLE, handle); 00034 MOCKABLE_FUNCTION(, int, STRING_empty, STRING_HANDLE, handle); 00035 MOCKABLE_FUNCTION(, size_t, STRING_length, STRING_HANDLE, handle); 00036 MOCKABLE_FUNCTION(, int, STRING_compare, STRING_HANDLE, s1, STRING_HANDLE, s2); 00037 00038 extern STRING_HANDLE STRING_construct_sprintf(const char* format, ...); 00039 extern int STRING_sprintf(STRING_HANDLE s1, const char* format, ...); 00040 00041 #ifdef __cplusplus 00042 } 00043 #endif 00044 00045 #endif /*STRINGS_H*/
Generated on Tue Jul 12 2022 12:43:24 by
