VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
Examples
File List
Globals
source
component
mal
driver
mem_mal
vsf_mem_mal.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright(C)2009-2022 by VSF Team *
3
* *
4
* Licensed under the Apache License, Version 2.0 (the "License"); *
5
* you may not use this file except in compliance with the License. *
6
* You may obtain a copy of the License at *
7
* *
8
* http://www.apache.org/licenses/LICENSE-2.0 *
9
* *
10
* Unless required by applicable law or agreed to in writing, software *
11
* distributed under the License is distributed on an "AS IS" BASIS, *
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13
* See the License for the specific language governing permissions and *
14
* limitations under the License. *
15
* *
16
****************************************************************************/
17
18
#ifndef __VSF_MEM_MAL_H__
19
#define __VSF_MEM_MAL_H__
20
21
/*============================ INCLUDES ======================================*/
22
23
#include "
../../vsf_mal_cfg.h
"
24
25
#if VSF_USE_MAL == ENABLED && VSF_MAL_USE_MEM_MAL == ENABLED
26
27
#if defined(__VSF_MEM_MAL_CLASS_IMPLEMENT)
28
# undef __VSF_MEM_MAL_CLASS_IMPLEMENT
29
# define __VSF_CLASS_IMPLEMENT__
30
#endif
31
32
#include "
utilities/ooc_class.h
"
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
38
/*============================ MACROS ========================================*/
39
/*============================ MACROFIED FUNCTIONS ===========================*/
40
/*============================ TYPES =========================================*/
41
42
vsf_class
(
vk_mem_mal_t
) {
43
public_member(
44
implement(
vk_mal_t
)
45
vsf_mem_t mem;
46
uint32_t
blksz;
47
)
48
};
49
50
/*============================ GLOBAL VARIABLES ==============================*/
51
52
extern
const
vk_mal_drv_t
vk_mem_mal_drv
;
53
54
/*============================ PROTOTYPES ====================================*/
55
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
// VSF_USE_MAL && VSF_MAL_USE_MEM_MAL
61
#endif
// __VSF_MEM_MAL_H__
vk_mal_drv_t
mal driver
Definition
vsf_mal.h:104
vk_mal_t
mal class
Definition
vsf_mal.h:168
vk_mem_mal_t
Definition
vsf_mem_mal.h:42
ooc_class.h
vsf_class
#define vsf_class(__name)
Definition
ooc_class.h:52
uint32_t
unsigned uint32_t
Definition
stdint.h:9
vsf_mal_cfg.h
vk_mem_mal_drv
const vk_mal_drv_t vk_mem_mal_drv
Generated from commit:
vsfteam/vsf@5de27dd