Eo: Improved error reporting with failed constructors.
[profile/ivi/eobj.git] / examples / interface / interface2.c
1 #include "Eo.h"
2 #include "interface.h"
3 #include "interface2.h"
4 #include "simple.h"
5
6 #include "config.h"
7
8 EAPI Eo_Op INTERFACE2_BASE_ID = 0;
9
10 #define MY_CLASS INTERFACE2_CLASS
11
12 static const Eo_Op_Description op_desc[] = {
13      EO_OP_DESCRIPTION_CONST(INTERFACE2_SUB_ID_AB_SUM_GET2, "i", "Print the sum of a and b."),
14      EO_OP_DESCRIPTION_SENTINEL
15 };
16
17 static const Eo_Class_Description class_desc = {
18      "Interface2",
19      EO_CLASS_TYPE_INTERFACE,
20      EO_CLASS_DESCRIPTION_OPS(&INTERFACE2_BASE_ID, op_desc, INTERFACE2_SUB_ID_LAST),
21      NULL,
22      0,
23      NULL,
24      NULL,
25      NULL,
26      NULL
27 };
28
29 EO_DEFINE_CLASS(interface2_class_get, &class_desc, INTERFACE_CLASS, NULL)
30