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
amqpalloc.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 AMQP_ALLOC_H 00005 #define AMQP_ALLOC_H 00006 00007 #ifdef __cplusplus 00008 extern "C" { 00009 #include <cstddef> 00010 #include <cstdbool> 00011 #include <cstdlib> 00012 #else 00013 #include <stddef.h> 00014 #include <stdbool.h> 00015 #include <stdlib.h> 00016 #endif /* __cplusplus */ 00017 00018 #ifndef DISABLE_MEMORY_TRACE 00019 extern void* amqpalloc_malloc(size_t size); 00020 extern void amqpalloc_free(void* ptr); 00021 extern void* amqpalloc_calloc(size_t nmemb, size_t size); 00022 extern void* amqpalloc_realloc(void* ptr, size_t size); 00023 #else 00024 #define amqpalloc_malloc malloc 00025 #define amqpalloc_free free 00026 #define amqpalloc_calloc calloc 00027 #define amqpalloc_realloc realloc 00028 #endif 00029 00030 extern size_t amqpalloc_get_maximum_memory_used(void); 00031 extern size_t amqpalloc_get_current_memory_used(void); 00032 extern void amqpalloc_set_memory_tracing_enabled(bool memory_tracing_enabled); 00033 00034 #ifdef __cplusplus 00035 } 00036 #endif /* __cplusplus */ 00037 00038 #endif /* AMQP_ALLOC_H */
Generated on Tue Jul 12 2022 12:43:17 by
