comparison src/ui/bmi/mmiUserData.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 8f6e2ae69a6b
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: MMI 14 $Module: MMI
15 $File: MmiUserData.c 15 $File: MmiUserData.c
16 $Revision: 1.0 16 $Revision: 1.0
17 17
18 $Author: Condat(UK) 18 $Author: Condat(UK)
19 $Date: 22/02/01 19 $Date: 22/02/01
20 20
21 ******************************************************************************** 21 ********************************************************************************
22 22
23 Description: 23 Description:
24 24
25 25
26 26
27 ******************************************************************************** 27 ********************************************************************************
28 28
29 $History: MmiUserData.c 29 $History: MmiUserData.c
30 30
31 25/10/00 Original Condat(UK) BMI version. 31 25/10/00 Original Condat(UK) BMI version.
32 32
33 $End 33 $End
34 34
35 *******************************************************************************/ 35 *******************************************************************************/
36 36
37 #define ENTITY_MFW 37 #define ENTITY_MFW
111 * element could not be created. 111 * element could not be created.
112 */ 112 */
113 void *userDataHndSet( MfwHnd window, UserKey key, void *data) 113 void *userDataHndSet( MfwHnd window, UserKey key, void *data)
114 { 114 {
115 if( window == NULL ) { return NULL; } 115 if( window == NULL ) { return NULL; }
116 116
117 return userDataWinSet( (MfwWin *)((MfwHdr *)window)->data, key, data); 117 return userDataWinSet( (MfwWin *)((MfwHdr *)window)->data, key, data);
118 } 118 }
119 119
120 120
121 void *userDataWinSet( MfwWin *window, UserKey key, void *data) 121 void *userDataWinSet( MfwWin *window, UserKey key, void *data)
160 * with <key> existed. 160 * with <key> existed.
161 */ 161 */
162 void *userDataHndGet( MfwHnd window, UserKey key) 162 void *userDataHndGet( MfwHnd window, UserKey key)
163 { 163 {
164 if( window == NULL ) { return NULL; } 164 if( window == NULL ) { return NULL; }
165 165
166 return userDataWinGet( (MfwWin *)((MfwHdr *)window)->data, key); 166 return userDataWinGet( (MfwWin *)((MfwHdr *)window)->data, key);
167 } 167 }
168 168
169 169
170 void *userDataWinGet( MfwWin *window, UserKey key) 170 void *userDataWinGet( MfwWin *window, UserKey key)
171 { 171 {
172 UserDataLink thisOne; 172 UserDataLink thisOne;
173 173
174 if( window == NULL ) { return NULL; } 174 if( window == NULL ) { return NULL; }
175 175
176 thisOne = userDataFind( (UserDataLink)window->user, key); 176 thisOne = userDataFind( (UserDataLink)window->user, key);
177 177
178 if( thisOne == NULL ) { return NULL; } 178 if( thisOne == NULL ) { return NULL; }
179 179
180 return thisOne->data; 180 return thisOne->data;
181 } 181 }
182 182
183 183
184 /* 184 /*
188 * with <key> existed. 188 * with <key> existed.
189 */ 189 */
190 void *userDataHndDelete( MfwHnd window, UserKey key) 190 void *userDataHndDelete( MfwHnd window, UserKey key)
191 { 191 {
192 if( window == NULL ) { return NULL; } 192 if( window == NULL ) { return NULL; }
193 193
194 return userDataWinDelete( (MfwWin *)((MfwHdr *)window)->data, key); 194 return userDataWinDelete( (MfwWin *)((MfwHdr *)window)->data, key);
195 } 195 }
196 196
197 197
198 void *userDataWinDelete( MfwWin *window, UserKey key) 198 void *userDataWinDelete( MfwWin *window, UserKey key)