Revision 36 logic/trunk/src/logics/conditions.h

View differences:

conditions.h
4 4
#include "../logics/operators.h"
5 5
#include "../init/devicelist.h"
6 6

  
7
typedef struct condition_list_leaf
8
{
9
    int                         OPERATOR_TYPE;
10
    int                         val;
11
    struct  condition_list_leaf *nxt;
12
    struct  device_d            *dev;
13
}cond_lst_leaf;
14

  
15 7
typedef struct condition_list
16 8
{
17
    int                         OPERATOR_TYPE;
18
    struct condition_list       *sub_lst;
19
    struct condition_list_leaf  *sub_leaf;
9
    int                     OPERATOR_TYPE;
10
    int                     value;
11
    struct  device_d        *dev;
12
    struct condition_list   *nxt_lst;
13
    struct condition_list   *sub_lst;
20 14
}cond_lst;
21

  
15

  
16
int getConditionsResult(cond_lst *cl);
22 17
#endif // CONDITIONS_H_INCLUDED

Also available in: Unified diff