Eo: Removed "type" property from event/op descriptions.
[profile/ivi/eobj.git] / examples / constructors / simple.h
1 #ifndef SIMPLE_H
2 #define SIMPLE_H
3
4 #include "Eo.h"
5
6 extern EAPI Eo_Op SIMPLE_BASE_ID;
7
8 enum {
9      SIMPLE_SUB_ID_A_SET,
10      SIMPLE_SUB_ID_A_GET,
11      SIMPLE_SUB_ID_B_SET,
12      SIMPLE_SUB_ID_B_GET,
13      SIMPLE_SUB_ID_LAST
14 };
15
16 #define SIMPLE_ID(sub_id) (SIMPLE_BASE_ID + sub_id)
17
18 #define simple_a_set(a) SIMPLE_ID(SIMPLE_SUB_ID_A_SET), EO_TYPECHECK(int, a)
19 #define simple_a_get(a) SIMPLE_ID(SIMPLE_SUB_ID_A_GET), EO_TYPECHECK(int *, a)
20 #define simple_b_set(b) SIMPLE_ID(SIMPLE_SUB_ID_B_SET), EO_TYPECHECK(int, b)
21 #define simple_b_get(b) SIMPLE_ID(SIMPLE_SUB_ID_B_GET), EO_TYPECHECK(int *, b)
22
23 #define SIMPLE_CLASS simple_class_get()
24 const Eo_Class *simple_class_get(void) EINA_CONST;
25
26 #endif