interfaces/inc/c_pal/gballoc_ll.h (29 lines of code) (raw):

// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #ifndef GBALLOC_LL_H #define GBALLOC_LL_H #ifdef __cplusplus #include <cstddef> #else #include <stddef.h> #endif #include "umock_c/umock_c_prod.h" #ifdef __cplusplus extern "C" { #endif MOCKABLE_FUNCTION(, int, gballoc_ll_init, void*, params); MOCKABLE_FUNCTION(, void, gballoc_ll_deinit); MOCKABLE_FUNCTION(, void*, gballoc_ll_malloc, size_t, size); MOCKABLE_FUNCTION(, void*, gballoc_ll_malloc_2, size_t, nmemb, size_t, size); MOCKABLE_FUNCTION(, void*, gballoc_ll_malloc_flex, size_t, base, size_t, nmemb, size_t, size); MOCKABLE_FUNCTION(, void, gballoc_ll_free, void*, ptr); MOCKABLE_FUNCTION(, void*, gballoc_ll_calloc, size_t, nmemb, size_t, size); MOCKABLE_FUNCTION(, void*, gballoc_ll_realloc, void*, ptr, size_t, size); MOCKABLE_FUNCTION(, void*, gballoc_ll_realloc_2, void*, ptr, size_t, nmemb, size_t, size); MOCKABLE_FUNCTION(, void*, gballoc_ll_realloc_flex, void*, ptr, size_t, base, size_t, nmemb, size_t, size); MOCKABLE_FUNCTION(, size_t, gballoc_ll_size, void*, ptr); MOCKABLE_FUNCTION(, void, gballoc_ll_print_stats); MOCKABLE_FUNCTION(, int, gballoc_ll_set_option, const char*, option_name, void*, option_value); #ifdef __cplusplus } #endif #endif /* GBALLOC_LL_H */