create rotation job and EAPI e_border_rotation_set
[platform/core/uifw/e17.git] / src / bin / e_sys.h
1 #ifdef E_TYPEDEFS
2
3 typedef struct _E_Sys_Con_Action E_Sys_Con_Action;
4 typedef enum _E_Sys_Action E_Sys_Action;
5
6 enum _E_Sys_Action
7 {
8    E_SYS_NONE,
9    E_SYS_EXIT,
10    E_SYS_RESTART,
11    E_SYS_EXIT_NOW,
12    E_SYS_LOGOUT,
13    E_SYS_HALT,
14    E_SYS_HALT_NOW,
15    E_SYS_REBOOT,
16    E_SYS_SUSPEND,
17    E_SYS_HIBERNATE
18 };
19
20 struct _E_Sys_Con_Action
21 {
22    const char *label;
23    const char *icon_group;
24    const char *button_name;
25    void (*func) (void *data);
26    const void *data;
27    Eina_Bool disabled : 1;
28 };
29
30 #else
31 #ifndef E_SYS_H
32 #define E_SYS_H
33
34 EINTERN int e_sys_init(void);
35 EINTERN int e_sys_shutdown(void);
36 EAPI int e_sys_action_possible_get(E_Sys_Action a);
37 EAPI int e_sys_action_do(E_Sys_Action a, char *param);
38 EAPI int e_sys_action_raw_do(E_Sys_Action a, char *param);
39
40 EAPI E_Sys_Con_Action *e_sys_con_extra_action_register(const char *label,
41                                                        const char *icon_group,
42                                                        const char *button_name,
43                                                        void (*func) (void *data),
44                                                        const void *data);
45 EAPI void e_sys_con_extra_action_unregister(E_Sys_Con_Action *sca);
46 EAPI const Eina_List *e_sys_con_extra_action_list_get(void);
47 EAPI void e_sys_handlers_set(void (*suspend_func) (void),
48                              void (*hibernate_func) (void),
49                              void (*reboot_func) (void),
50                              void (*shutdown_func) (void),
51                              void (*logout_func) (void),
52                              void (*resume_func) (void));
53
54 #endif
55 #endif