#ifndef E_MOD_MAIN_H #define E_MOD_MAIN_H typedef struct _Config Config; typedef struct _Battery Battery; typedef struct _Battery_Face Battery_Face; #define CHECK_NONE 0 #define CHECK_LINUX_ACPI 1 #define CHECK_LINUX_APM 2 struct _Config { int width; double x, y; double poll_time; }; struct _Battery { E_Menu *config_menu; Battery_Face *face; E_Config_DD *conf_edd; Config *conf; }; struct _Battery_Face { Battery *bat; E_Container *con; Evas *evas; Evas_Object *bat_object; Evas_Object *event_object; Evas_Coord minsize, maxsize; unsigned char move : 1; unsigned char resize : 1; Evas_Coord xx, yy; Evas_Coord fx, fy, fw; int battery_check_mode; Ecore_Timer *battery_check_timer; int battery_prev_drain; int battery_prev_ac; int battery_prev_battery; Ecore_Event_Handler *ev_handler_container_resize; }; EAPI void *init (E_Module *m); EAPI int shutdown (E_Module *m); EAPI int save (E_Module *m); EAPI int info (E_Module *m); EAPI int about (E_Module *m); #endif