Eo: add autotools tests. I have plenty of errors with the unit tests on Windows
[profile/ivi/eobj.git] / src / tests / eo_suite / class_simple.h
1 #ifndef SIMPLE_H
2 #define SIMPLE_H
3
4 extern EAPI Eo_Op SIMPLE_BASE_ID;
5
6 enum {
7      SIMPLE_SUB_ID_A_SET,
8      SIMPLE_SUB_ID_A_PRINT,
9      SIMPLE_SUB_ID_CLASS_HI_PRINT,
10      SIMPLE_SUB_ID_LAST
11 };
12
13 typedef struct
14 {
15    int a;
16 } Simple_Public_Data;
17
18 #define SIMPLE_ID(sub_id) (SIMPLE_BASE_ID + sub_id)
19
20 #define simple_a_set(a) SIMPLE_ID(SIMPLE_SUB_ID_A_SET), EO_TYPECHECK(int, a)
21 #define simple_a_print() SIMPLE_ID(SIMPLE_SUB_ID_A_PRINT)
22 #define simple_class_hi_print() SIMPLE_ID(SIMPLE_SUB_ID_CLASS_HI_PRINT)
23
24 extern const Eo_Event_Description _SIG_A_CHANGED;
25 #define SIG_A_CHANGED (&(_SIG_A_CHANGED))
26
27 #define SIMPLE_CLASS simple_class_get()
28 const Eo_Class *simple_class_get(void);
29
30 #endif