Sistema l'errore da me commesso in fase di conversione...
[bertos.git] / dt / dtag.h
1 /**
2  * \file
3  * <!--
4  * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
5  * -->
6  *
7  * \version $Id$
8  *
9  * \brief Tags interface.
10  * This module contains the base message definitions and the list of all available tags.
11  *
12  * \version $Id$
13  * \author Bernardo Innocenti <bernie@develer.com>
14  * \author Francesco Sacchi <batt@develer.com>
15  */
16
17 /*#*
18  *#* $Log$
19  *#* Revision 1.2  2006/07/19 12:56:26  bernie
20  *#* Convert to new Doxygen style.
21  *#*
22  *#* Revision 1.1  2005/11/04 18:26:38  bernie
23  *#* Import into DevLib.
24  *#*
25  *#* Revision 1.8  2005/06/07 15:22:29  batt
26  *#* Add const_dval_t.
27  *#*
28  *#* Revision 1.7  2005/06/06 17:42:23  batt
29  *#* Add error tag TAG_ERROR.
30  *#*
31  *#* Revision 1.6  2005/06/06 12:45:33  batt
32  *#* Add TAG_NONE tag.
33  *#*
34  *#* Revision 1.5  2005/06/06 11:04:12  batt
35  *#* Add some comments.
36  *#*
37  *#* Revision 1.4  2005/05/31 11:09:52  batt
38  *#* Add some tags.
39  *#*
40  *#* Revision 1.3  2005/05/26 14:55:12  batt
41  *#* Add form_processTime; change form_kbdProcess to form_processKey.
42  *#*
43  *#* Revision 1.2  2005/05/26 14:43:33  batt
44  *#* Add new message filter interface.
45  *#*
46  *#* Revision 1.1  2005/05/26 08:32:53  batt
47  *#* Add new Develer widget system :)
48  *#*
49  *#*/
50
51 #ifndef DT_DTAG_H
52 #define DT_DTAG_H
53
54 #include <cfg/macros.h>
55
56 /** Type for values associated with tags. */
57 typedef iptr_t dval_t;
58
59 /** Type for constant values associated with tags. */
60 typedef const_iptr_t const_dval_t;
61
62 /** Type for tag */
63 typedef enum dtag_t
64 {
65         TAG_END = 0,
66         TAG_NONE,
67         TAG_ANY,
68         TAG_SETVALUE,
69         TAG_UP,
70         TAG_DOWN,
71         TAG_START,
72         TAG_STOP,
73         TAG_TOGGLE,
74         TAG_KEY,
75         TAG_TIME,
76         TAG_ERROR,
77 } dtag_t;
78
79 /** This is the basic message structure used by all dnotifiers. */
80 typedef struct DTagItem
81 {
82         dtag_t tag;
83         dval_t val;
84 } DTagItem;
85
86 /** Marker to indicate the end of a map for message filtering/translating */
87 #define TAG_END_MARKER {{TAG_END, 0}, {TAG_END, 0}}
88 #endif