3 typedef struct _E_Sys_Con_Action E_Sys_Con_Action;
4 typedef enum _E_Sys_Action E_Sys_Action;
20 struct _E_Sys_Con_Action
23 const char *icon_group;
24 const char *button_name;
25 void (*func) (void *data);
27 Eina_Bool disabled : 1;
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);
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),
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));