#include /* SeJo: Removed these headers as including E.h above inheritly includes e_desk.h, e_zone.h etc etc */ #include "e_mod_main.h" static const char *_esmack_module_edje = NULL; static int SENS=4; int calx; int caly; Ecore_File_Monitor *monitor; static void _switch_desktop(void *data, Ecore_File_Monitor *monitor, Ecore_File_Event event, const char *path); // ... // void _add_monitor (E_Module *m) { monitor = ecore_file_monitor_add("/sys/devices/platform/hdaps/position",_switch_desktop, m); printf("%s", "blah monitor added."); } static void _switch_desktop(void *data, Ecore_File_Monitor *monitor, Ecore_File_Event event, const char *path) { printf("%s", "in _switch_desktop"); E_Module *m; FILE *f; char buf[1024]; char tmpx[1024]; char tmpy[1024];