Eobj: Use xref.
[profile/ivi/eobj.git] / tests / class_simple.h
1 #ifndef SIMPLE_H
2 #define SIMPLE_H
3
4 #include "Eobj.h"
5
6 extern EAPI Eobj_Op SIMPLE_BASE_ID;
7
8 enum {
9      SIMPLE_SUB_ID_A_SET,
10      SIMPLE_SUB_ID_A_PRINT,
11      SIMPLE_SUB_ID_LAST
12 };
13
14 typedef struct
15 {
16    int a;
17 } Simple_Public_Data;
18
19 #define SIMPLE_ID(sub_id) (SIMPLE_BASE_ID + sub_id)
20
21 #define SIMPLE_A_SET(a) SIMPLE_ID(SIMPLE_SUB_ID_A_SET), EOBJ_TYPECHECK(int, a)
22 #define SIMPLE_A_PRINT() SIMPLE_ID(SIMPLE_SUB_ID_A_PRINT)
23
24 extern const Eobj_Event_Description _SIG_A_CHANGED;
25 #define SIG_A_CHANGED (&(_SIG_A_CHANGED))
26
27 #define SIMPLE_CLASS simple_class_get()
28 const Eobj_Class *simple_class_get(void) EINA_CONST;
29
30 #endif