1 | /** |
---|
2 | * @file rtems/itron/vmempool.inl |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * COPYRIGHT (c) 1989-1999. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef _RTEMS_ITRON_VMEMPOOL_INL |
---|
17 | #define _RTEMS_ITRON_VMEMPOOL_INL |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | /* |
---|
24 | * _ITRON_Variable_memory_pool_Allocate |
---|
25 | */ |
---|
26 | |
---|
27 | #define _ITRON_Variable_memory_pool_Allocate( _mplid ) \ |
---|
28 | (ITRON_Variable_memory_pool_Control *)_ITRON_Objects_Allocate_by_index( \ |
---|
29 | &_ITRON_Variable_memory_pool_Information, \ |
---|
30 | (_mplid), \ |
---|
31 | sizeof(ITRON_Variable_memory_pool_Control) \ |
---|
32 | ) |
---|
33 | |
---|
34 | /* |
---|
35 | * _ITRON_Variable_memory_pool_Clarify_allocation_id_error |
---|
36 | */ |
---|
37 | |
---|
38 | #define _ITRON_Variable_memory_pool_Clarify_allocation_id_error( _id ) \ |
---|
39 | _ITRON_Objects_Clarify_allocation_id_error( \ |
---|
40 | &_ITRON_Variable_memory_pool_Information, (_id) ) |
---|
41 | |
---|
42 | /* |
---|
43 | * _ITRON_Variable_memory_pool_Clarify_get_id_error |
---|
44 | */ |
---|
45 | |
---|
46 | #define _ITRON_Variable_memory_pool_Clarify_get_id_error( _id ) \ |
---|
47 | _ITRON_Objects_Clarify_get_id_error( &_ITRON_Variable_memory_pool_Information, (_id) ) |
---|
48 | |
---|
49 | /* |
---|
50 | * _ITRON_Variable_memory_pool_Free |
---|
51 | */ |
---|
52 | |
---|
53 | #define _ITRON_Variable_memory_pool_Free( _the_variable_memory_pool ) \ |
---|
54 | _ITRON_Objects_Free( \ |
---|
55 | &_ITRON_Variable_memory_pool_Information, \ |
---|
56 | &(_the_variable_memory_pool)->Object \ |
---|
57 | ) |
---|
58 | |
---|
59 | /*PAGE |
---|
60 | * |
---|
61 | * _ITRON_Variable_memory_pool_Get |
---|
62 | */ |
---|
63 | |
---|
64 | #define _ITRON_Variable_memory_pool_Get( _id, _location ) \ |
---|
65 | (ITRON_Variable_memory_pool_Control *) _ITRON_Objects_Get( \ |
---|
66 | &_ITRON_Variable_memory_pool_Information, \ |
---|
67 | (_id), \ |
---|
68 | (_location) \ |
---|
69 | ) |
---|
70 | |
---|
71 | /*PAGE |
---|
72 | * |
---|
73 | * _ITRON_Variable_memory_pool_Is_null |
---|
74 | */ |
---|
75 | |
---|
76 | #define _ITRON_Variable_memory_pool_Is_null( _the_variable_memory_pool ) \ |
---|
77 | ( (_the_variable_memory_pool) == NULL ) |
---|
78 | |
---|
79 | #ifdef __cplusplus |
---|
80 | } |
---|
81 | #endif |
---|
82 | |
---|
83 | #endif |
---|
84 | /* end of include file */ |
---|
85 | |
---|