summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_exe_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore/ecore_exe_eo.c')
-rw-r--r--src/lib/ecore/ecore_exe_eo.c57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_exe_eo.c b/src/lib/ecore/ecore_exe_eo.c
new file mode 100644
index 0000000..6a1775a
--- /dev/null
+++ b/src/lib/ecore/ecore_exe_eo.c
@@ -0,0 +1,57 @@
1EWAPI const Efl_Event_Description _ECORE_EXE_EVENT_DATA_GET =
2 EFL_EVENT_DESCRIPTION("data,get");
3EWAPI const Efl_Event_Description _ECORE_EXE_EVENT_DATA_ERROR =
4 EFL_EVENT_DESCRIPTION("data,error");
5
6void _ecore_exe_command_set(Eo *obj, Ecore_Exe_Data *pd, const char *exe_cmd, Ecore_Exe_Flags flags);
7
8EOAPI EFL_VOID_FUNC_BODYV(ecore_obj_exe_command_set, EFL_FUNC_CALL(exe_cmd, flags), const char *exe_cmd, Ecore_Exe_Flags flags);
9
10void _ecore_exe_command_get(const Eo *obj, Ecore_Exe_Data *pd, const char **exe_cmd, Ecore_Exe_Flags *flags);
11
12EOAPI EFL_VOID_FUNC_BODYV_CONST(ecore_obj_exe_command_get, EFL_FUNC_CALL(exe_cmd, flags), const char **exe_cmd, Ecore_Exe_Flags *flags);
13
14void _ecore_exe_efl_object_destructor(Eo *obj, Ecore_Exe_Data *pd);
15
16
17Efl_Object *_ecore_exe_efl_object_finalize(Eo *obj, Ecore_Exe_Data *pd);
18
19
20void _ecore_exe_efl_control_suspend_set(Eo *obj, Ecore_Exe_Data *pd, Eina_Bool suspend);
21
22
23static Eina_Bool
24_ecore_exe_class_initializer(Efl_Class *klass)
25{
26 const Efl_Object_Ops *opsp = NULL;
27
28 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
29
30#ifndef ECORE_EXE_EXTRA_OPS
31#define ECORE_EXE_EXTRA_OPS
32#endif
33
34 EFL_OPS_DEFINE(ops,
35 EFL_OBJECT_OP_FUNC(ecore_obj_exe_command_set, _ecore_exe_command_set),
36 EFL_OBJECT_OP_FUNC(ecore_obj_exe_command_get, _ecore_exe_command_get),
37 EFL_OBJECT_OP_FUNC(efl_destructor, _ecore_exe_efl_object_destructor),
38 EFL_OBJECT_OP_FUNC(efl_finalize, _ecore_exe_efl_object_finalize),
39 EFL_OBJECT_OP_FUNC(efl_control_suspend_set, _ecore_exe_efl_control_suspend_set),
40 ECORE_EXE_EXTRA_OPS
41 );
42 opsp = &ops;
43
44 return efl_class_functions_set(klass, opsp, ropsp);
45}
46
47static const Efl_Class_Description _ecore_exe_class_desc = {
48 EO_VERSION,
49 "Ecore.Exe",
50 EFL_CLASS_TYPE_REGULAR,
51 sizeof(Ecore_Exe_Data),
52 _ecore_exe_class_initializer,
53 NULL,
54 NULL
55};
56
57EFL_DEFINE_CLASS(ecore_exe_class_get, &_ecore_exe_class_desc, EFL_OBJECT_CLASS, EFL_CONTROL_INTERFACE, NULL);