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
vector.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 VECTOR_H 00005 #define VECTOR_H 00006 00007 #include "azure_c_shared_utility/crt_abstractions.h" 00008 #include "azure_c_shared_utility/umock_c_prod.h" 00009 00010 #ifdef __cplusplus 00011 #include <cstddef> 00012 #include <cstdbool> 00013 extern "C" 00014 { 00015 #else 00016 #include <stddef.h> 00017 #include <stdbool.h> 00018 #endif 00019 00020 typedef struct VECTOR_TAG* VECTOR_HANDLE; 00021 00022 typedef bool(*PREDICATE_FUNCTION)(const void* element, const void* value); 00023 00024 /* creation */ 00025 MOCKABLE_FUNCTION(, VECTOR_HANDLE, VECTOR_create, size_t, elementSize); 00026 MOCKABLE_FUNCTION(, void, VECTOR_destroy, VECTOR_HANDLE, handle); 00027 00028 /* insertion */ 00029 MOCKABLE_FUNCTION(, int, VECTOR_push_back, VECTOR_HANDLE, handle, const void*, elements, size_t, numElements); 00030 00031 /* removal */ 00032 MOCKABLE_FUNCTION(, void, VECTOR_erase, VECTOR_HANDLE, handle, void*, elements, size_t, numElements); 00033 MOCKABLE_FUNCTION(, void, VECTOR_clear, VECTOR_HANDLE, handle); 00034 00035 /* access */ 00036 MOCKABLE_FUNCTION(, void*, VECTOR_element, const VECTOR_HANDLE, handle, size_t, index); 00037 MOCKABLE_FUNCTION(, void*, VECTOR_front, const VECTOR_HANDLE, handle); 00038 MOCKABLE_FUNCTION(, void*, VECTOR_back, const VECTOR_HANDLE, handle); 00039 MOCKABLE_FUNCTION(, void*, VECTOR_find_if, const VECTOR_HANDLE, handle, PREDICATE_FUNCTION, pred, const void*, value); 00040 00041 /* capacity */ 00042 MOCKABLE_FUNCTION(, size_t, VECTOR_size, const VECTOR_HANDLE, handle); 00043 00044 #ifdef __cplusplus 00045 } 00046 #else 00047 #endif 00048 00049 #endif /* VECTOR_H */
Generated on Tue Jul 12 2022 12:43:25 by
