comparison src/aci2/bmi/MmiBlkResources.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 #ifndef _MMI_BlkResources_H_
2 #define _MMI_BlkResources_H_
3
4 #define ALLOC_MEMORY mfwAlloc
5 #define FREE_MEMORY mfwFree
6
7 /*******************************************************************************
8
9 CONDAT (UK)
10
11 ********************************************************************************
12
13 This software product is the property of Condat (UK) Ltd and may not be
14 disclosed to any third party without the express permission of the owner.
15
16 ********************************************************************************
17
18 $Project name: Basic MMI
19 $Project code: BMI (6349)
20 $Module: PhoneBook
21 $File: MmiBlkResources.h
22 $Revision: 1.0
23
24 $Author: Condat(UK)
25 $Date: 25/10/00
26
27 ********************************************************************************
28
29 Description:
30
31 The block resource manager handles a list of blocks of information,
32 passing back pointers to the block of data on request. It provides
33 a mechanism for mapping identifiers to strings, bitmaps, melodies
34 or any other block of information.
35
36 ********************************************************************************
37
38 $History: MmiBlkResources.h
39
40 25/10/00 Original Condat(UK) BMI version.
41
42 $End
43
44 *******************************************************************************/
45
46
47 /* Define the prototypes for the basic routines
48 */
49 typedef void *tBlkHandle;
50 typedef long int tBlkId;
51
52 /* The initialisation routine must be called as part of the startup
53 phase of the system, it will allocate working space for the block
54 handler if required, and will initialise any structures required
55 to maintain the correct operation of the functions. This routine
56 must be called prior to invocation of any other block resource
57 function
58 */
59 tBlkHandle mmibr_Initialise( tBlkHandle BlkBase, int NumEntries );
60
61 /* The shutdown function can be called to free any allocations set up
62 by the Initialise routine. In a running system this is unlikely to
63 be called unless a catastrophic error has occurred and the system
64 needs to be restarted.
65 */
66 void mmibr_ShutDown( tBlkHandle *BlkRsrc );
67
68 /* We will adopt a mechanism where each block of data being provided
69 will need to be returned to the block resource manager when it
70 is no longer being used, this will provide an orthogonal approach
71 when dealing with data coming from either ROM or dynamically
72 allocated memory
73 */
74 tBlkHandle mmibr_Fetch( tBlkHandle BlkRsrc, tBlkId Id );
75
76
77 /*******************************************************************************
78
79 End of File
80
81 *******************************************************************************/
82
83 #endif