comparison src/ui/mfw/mfw_tim.h @ 3:67bfe9f274f6

src/ui: import of src/ui3 from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:33:10 +0000
parents
children 92abb46dc1ba
comparison
equal deleted inserted replaced
2:3a14ee9a9843 3:67bfe9f274f6
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_tim.h $|
4 | $Author:: Es $ CONDAT GmbH $Revision:: 8 $|
5 | CREATED: 21.09.98 $Modtime:: 2.03.00 11:50 $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 MODULE : MFW_TIM
10
11 PURPOSE : Timer types & constants
12
13 EXPORT :
14
15 TO DO :
16
17 $History:: mfw_tim.h $
18 *
19 * ***************** Version 8 *****************
20 * User: Es Date: 3.03.00 Time: 12:10
21 * Updated in $/GSM/Condat/MS/SRC/MFW
22 * timStart(), timSignal() etc.: safer handling of simultaneous
23 * timeouts; additional chain in timer control block.
24 *
25 * ***************** Version 7 *****************
26 * User: Nm Date: 18.02.00 Time: 12:34
27 * Updated in $/GSM/Condat/MS/SRC/MFW
28 * change the name timSetup to
29 * timSetTime
30 *
31 * ***************** Version 6 *****************
32 * User: Nm Date: 18.02.00 Time: 12:21
33 * Updated in $/GSM/Condat/MS/SRC/MFW
34 * add timSetup()
35 *
36 * ***************** Version 5 *****************
37 * User: Es Date: 14.06.99 Time: 12:14
38 * Updated in $/GSM/DEV/MS/SRC/MFW
39 *
40 * ***************** Version 4 *****************
41 * User: Es Date: 17.02.99 Time: 19:11
42 * Updated in $/GSM/DEV/MS/SRC/MFW
43 *
44 * ***************** Version 3 *****************
45 * User: Es Date: 14.01.99 Time: 17:19
46 * Updated in $/GSM/DEV/MS/SRC/MFW
47 *
48 * ***************** Version 2 *****************
49 * User: Es Date: 23.12.98 Time: 16:19
50 * Updated in $/GSM/DEV/MS/SRC/MFW
51 */
52
53 #ifndef _DEF_MFW_TIM_H_
54 #define _DEF_MFW_TIM_H_
55
56 typedef struct MfwTimTag /* TIMER CONTROL BLOCK */
57 {
58 S32 time; /* timeout time */
59 S32 left; /* time left before timeout */
60 MfwCb handler; /* event handler */
61 struct MfwTimTag *next; /* next in active chain */
62 struct MfwTimTag *next2; /* next in timeout chain */
63 // PATCH LE 06.06.00
64 // add pointer to MFW header element
65 MfwHdr * mfwHeader; /* Associated header. SPR#1597 - SH - Change mfw_header to mfwHeader */
66 // END PATCH LE 06.06.00
67 } MfwTim;
68
69 /* PROTOTYPES */
70 MfwRes timInit (void);
71 MfwRes timExit (void);
72 MfwHnd timCreate (MfwHnd w, S32 t, MfwCb f);
73 MfwRes timDelete (MfwHnd h);
74 MfwRes timStart (MfwHnd tim);
75 MfwRes timStop (MfwHnd tim);
76 MfwRes timSetTime (MfwHnd tim, S32 t);
77 S32 timTime (MfwHnd h);
78 void timSignal (void);
79
80 /* Added to remove warning */
81 EXTERN UBYTE dspl_Enable (UBYTE in_Enable);
82
83 #endif
84