renew pui prototype again
[platform/core/uifw/libpui.git] / include / PUI.h
1 #ifndef _LIBPUI_H_
2 #define _LIBPUI_H_
3
4 #include "PUI_common.h"
5
6 #define EFL_BETA_API_SUPPORT
7 #include <Ecore_Wl2.h>
8
9 #define PUI_API __attribute__ ((visibility("default")))
10
11 extern PUI_API int PUI_EVENT_ANI_STARTED;
12 extern PUI_API int PUI_EVENT_ANI_STOPPED;
13 extern PUI_API int PUI_EVENT_ANI_PAUSED;
14 extern PUI_API int PUI_EVENT_ANI_READY_TO_START;
15 extern PUI_API int PUI_EVENT_ANI_READY_TO_RESUME;
16 extern PUI_API int PUI_EVENT_ANI_FRAME_DONE;
17 extern PUI_API int PUI_EVENT_ANI_BUFFER_RELEASED;
18
19 struct _PUI_Event_Animation_Status
20 {
21    unsigned int win;
22    pui_ani_status status;
23 };
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 PUI_API int
30 pui_init(void);
31
32 PUI_API int
33 pui_shutdown(void);
34
35 PUI_API pui_h
36 pui_create(Ecore_Wl2_Window *win);
37
38 PUI_API void
39 pui_destroy(pui_h handle);
40
41 PUI_API pui_error_string
42 pui_error_to_string(pui_error e);
43
44 PUI_API pui_ani_h
45 pui_ani_create(pui_h handle, pui_id id);
46
47 PUI_API pui_error
48 pui_ani_control(pui_ani_h handle, pui_ani_cmd cmd, int repeat);
49
50 PUI_API void
51 pui_ani_destroy(pui_ani_h ani_h);
52
53 PUI_API pui_id
54 pui_ani_get_id(pui_ani_h ani_h);
55
56 PUI_API pui_ani_cmd
57 pui_ani_get_cmd(pui_ani_h ani_h);
58
59 PUI_API int
60 pui_ani_get_repeat(pui_ani_h ani_h);
61
62 #ifdef __cplusplus
63 }
64 #endif
65
66 #endif//_LIBPUI_H_