comparison src/ui3/bmi/mmiBlkResources.h @ 421:6a4d9f47793e

src/ui3/bmi: file renames to make the case consistent
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 Jan 2018 03:28:53 +0000
parents src/ui3/bmi/MmiBlkResources.h@e8ddbb0837ed
children
comparison
equal deleted inserted replaced
420:e8ddbb0837ed 421:6a4d9f47793e
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 /* Added to remove warning Aug - 11 */
77 EXTERN U8 *mfwAlloc (U32 size);
78 /* End - Remove warning */
79
80 /*******************************************************************************
81
82 End of File
83
84 *******************************************************************************/
85
86 #endif