FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiBlkResources.c @ 92:c0052fe355d3
src/ui/bmi/*.[ch]: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 08 Nov 2020 06:39:16 +0000 |
parents | 67bfe9f274f6 |
children | 67b91d34f75e |
comparison
equal
deleted
inserted
replaced
91:c3d28a37caad | 92:c0052fe355d3 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 | 2 |
3 CONDAT (UK) | 3 CONDAT (UK) |
4 | 4 |
5 ******************************************************************************** | 5 ******************************************************************************** |
6 | 6 |
7 This software product is the property of Condat (UK) Ltd and may not be | 7 This software product is the property of Condat (UK) Ltd and may not be |
8 disclosed to any third party without the express permission of the owner. | 8 disclosed to any third party without the express permission of the owner. |
9 | 9 |
10 ******************************************************************************** | 10 ******************************************************************************** |
11 | 11 |
12 $Project name: Basic MMI | 12 $Project name: Basic MMI |
13 $Project code: BMI (6349) | 13 $Project code: BMI (6349) |
14 $Module: PhoneBook | 14 $Module: PhoneBook |
15 $File: MmiBlkResources.c | 15 $File: MmiBlkResources.c |
16 $Revision: 1.0 | 16 $Revision: 1.0 |
17 | 17 |
18 $Author: Condat(UK) | 18 $Author: Condat(UK) |
19 $Date: 25/10/00 | 19 $Date: 25/10/00 |
20 | 20 |
21 ******************************************************************************** | 21 ******************************************************************************** |
22 | 22 |
23 Description: | 23 Description: |
24 | 24 |
25 This modules provides, in conjunction with the MmiBlkManager module, | 25 This modules provides, in conjunction with the MmiBlkManager module, |
26 the resource management facilities for the MMI. | 26 the resource management facilities for the MMI. |
27 | 27 |
28 ******************************************************************************** | 28 ******************************************************************************** |
29 | 29 |
30 $History: MmiBlkResources.c | 30 $History: MmiBlkResources.c |
31 | 31 |
32 25/10/00 Original Condat(UK) BMI version. | 32 25/10/00 Original Condat(UK) BMI version. |
33 | 33 |
34 $End | 34 $End |
35 | 35 |
36 *******************************************************************************/ | 36 *******************************************************************************/ |
37 | 37 |
38 | 38 |
39 /******************************************************************************* | 39 /******************************************************************************* |
40 | 40 |
41 Include Files | 41 Include Files |
42 | 42 |
43 *******************************************************************************/ | 43 *******************************************************************************/ |
44 | 44 |
45 #define ENTITY_MFW | 45 #define ENTITY_MFW |
46 | 46 |
47 /* includes */ | 47 /* includes */ |
68 // #include <malloc.h> | 68 // #include <malloc.h> |
69 | 69 |
70 #include "MmiBlkResources.h" | 70 #include "MmiBlkResources.h" |
71 | 71 |
72 /******************************************************************************* | 72 /******************************************************************************* |
73 | 73 |
74 Local Structures | 74 Local Structures |
75 | 75 |
76 *******************************************************************************/ | 76 *******************************************************************************/ |
77 | 77 |
78 /* Define the control structures used to implement the block resource | 78 /* Define the control structures used to implement the block resource |
79 manager | 79 manager |
80 */ | 80 */ |
97 tBlkHandle BlkMaxAddress; | 97 tBlkHandle BlkMaxAddress; |
98 } tBlkControl, *pBlkControl; | 98 } tBlkControl, *pBlkControl; |
99 | 99 |
100 | 100 |
101 /******************************************************************************* | 101 /******************************************************************************* |
102 | 102 |
103 Private Routines | 103 Private Routines |
104 | 104 |
105 *******************************************************************************/ | 105 *******************************************************************************/ |
106 | 106 |
107 /******************************************************************************* | 107 /******************************************************************************* |
108 | 108 |
109 $Function: ValidBlockResource | 109 $Function: ValidBlockResource |
112 resource. | 112 resource. |
113 | 113 |
114 $Returns: 0 If invalid, non-zero if valid. | 114 $Returns: 0 If invalid, non-zero if valid. |
115 | 115 |
116 $Arguments: BlkRsrc, handle of resource | 116 $Arguments: BlkRsrc, handle of resource |
117 | 117 |
118 *******************************************************************************/ | 118 *******************************************************************************/ |
119 | 119 |
120 | 120 |
121 static int ValidBlockResource( tBlkHandle BlkRsrc ) | 121 static int ValidBlockResource( tBlkHandle BlkRsrc ) |
122 { | 122 { |
132 return ( BlkControl->BlkKey == RESOURCE_MANAGER_KEY ); | 132 return ( BlkControl->BlkKey == RESOURCE_MANAGER_KEY ); |
133 } | 133 } |
134 | 134 |
135 | 135 |
136 /******************************************************************************* | 136 /******************************************************************************* |
137 | 137 |
138 Public Routines | 138 Public Routines |
139 | 139 |
140 *******************************************************************************/ | 140 *******************************************************************************/ |
141 | 141 |
142 /******************************************************************************* | 142 /******************************************************************************* |
143 | 143 |
144 $Function: mmibr_Initialise | 144 $Function: mmibr_Initialise |
155 $Returns: Handle to a resource block, NULL if unsuccessful | 155 $Returns: Handle to a resource block, NULL if unsuccessful |
156 | 156 |
157 $Arguments: BlkBase, Base address of the block of data relating | 157 $Arguments: BlkBase, Base address of the block of data relating |
158 to the resource | 158 to the resource |
159 NumEntries, number of entries associated with the resource | 159 NumEntries, number of entries associated with the resource |
160 | 160 |
161 *******************************************************************************/ | 161 *******************************************************************************/ |
162 | 162 |
163 tBlkHandle mmibr_Initialise( tBlkHandle BlkBase, int NumEntries ) | 163 tBlkHandle mmibr_Initialise( tBlkHandle BlkBase, int NumEntries ) |
164 { | 164 { |
165 pBlkControl Blk; | 165 pBlkControl Blk; |
207 needs to be restarted. | 207 needs to be restarted. |
208 | 208 |
209 $Returns: none. | 209 $Returns: none. |
210 | 210 |
211 $Arguments: Pointer to a block resource handle (ie ptr to ptr) | 211 $Arguments: Pointer to a block resource handle (ie ptr to ptr) |
212 | 212 |
213 *******************************************************************************/ | 213 *******************************************************************************/ |
214 | 214 |
215 void mmibr_ShutDown( tBlkHandle *BlkRsrc ) | 215 void mmibr_ShutDown( tBlkHandle *BlkRsrc ) |
216 { | 216 { |
217 /* Only allow the resource manager to be shutdown if the provided | 217 /* Only allow the resource manager to be shutdown if the provided |
238 | 238 |
239 $Returns: pointer to resource, NULL if unsuccessful | 239 $Returns: pointer to resource, NULL if unsuccessful |
240 | 240 |
241 $Arguments: BlkRsrc, resource handle created by mmibr_Initialise | 241 $Arguments: BlkRsrc, resource handle created by mmibr_Initialise |
242 Id, identifier of the resource to be returned | 242 Id, identifier of the resource to be returned |
243 | 243 |
244 *******************************************************************************/ | 244 *******************************************************************************/ |
245 | 245 |
246 tBlkHandle mmibr_Fetch( tBlkHandle BlkRsrc, tBlkId Id ) | 246 tBlkHandle mmibr_Fetch( tBlkHandle BlkRsrc, tBlkId Id ) |
247 { | 247 { |
248 int Start, End, Search; | 248 int Start, End, Search; |
315 | 315 |
316 return SearchPtr; | 316 return SearchPtr; |
317 } | 317 } |
318 | 318 |
319 /******************************************************************************* | 319 /******************************************************************************* |
320 | 320 |
321 End of File | 321 End of File |
322 | 322 |
323 *******************************************************************************/ | 323 *******************************************************************************/ |
324 | 324 |