LexLeo
0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
osal_mem_fake_provider.c
Go to the documentation of this file.
1
// src/foundation/osal/osal_mem/tests/support/fake_provider/src/osal_mem_fake_provider.c
2
3
#include "
osal/mem/test/osal_mem_fake_provider.h
"
4
5
#include "
osal/mem/osal_mem.h
"
6
7
static
const
osal_mem_ops_t
OSAL_MEM_FAKE_OPS
= {
8
.
malloc
= fake_malloc,
9
.free = fake_free,
10
.calloc = fake_calloc,
11
.realloc = fake_realloc,
12
.strdup = fake_strdup,
13
};
14
15
const
osal_mem_ops_t
*
osal_mem_test_fake_ops
(
void
) {
16
return
&
OSAL_MEM_FAKE_OPS
;
17
}
osal_mem.h
OSAL_MEM_FAKE_OPS
static const osal_mem_ops_t OSAL_MEM_FAKE_OPS
Definition
osal_mem_fake_provider.c:7
osal_mem_test_fake_ops
const osal_mem_ops_t * osal_mem_test_fake_ops(void)
Definition
osal_mem_fake_provider.c:15
osal_mem_fake_provider.h
osal_mem_ops_t
Definition
osal_mem_ops.h:12
osal_mem_ops_t::malloc
void *(* malloc)(size_t size)
Definition
osal_mem_ops.h:13
src
foundation
osal
osal_mem
tests
support
fake_provider
src
osal_mem_fake_provider.c
Generated by
1.9.8