aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/imfos/imfos_devices.h
diff options
context:
space:
mode:
authorMichaël Bouchaud (yoz) <yoz@efl.so>2016-09-03 19:49:35 +0200
committerMichaël Bouchaud (yoz) <yoz@efl.so>2016-09-05 03:39:46 +0200
commita128042fce1b85c9540ecc6a4b47babc71e75a1d (patch)
treeba8ef3aa40df39b067163671b93406cabfb3ad4a /src/modules/imfos/imfos_devices.h
parentIntroduce a new module to detect your presence in front of the screen. (diff)
downloadenlightenment-devs/yoz/imfos.tar.gz
Imfos: In the end I will not keep this name. The project became bigger.devs/yoz/imfos
Now the modules take a new turn. The new goal of this module is to track human activity and environments.
Diffstat (limited to 'src/modules/imfos/imfos_devices.h')
-rw-r--r--src/modules/imfos/imfos_devices.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/modules/imfos/imfos_devices.h b/src/modules/imfos/imfos_devices.h
new file mode 100644
index 000000000..6fe524de8
--- /dev/null
+++ b/src/modules/imfos/imfos_devices.h
@@ -0,0 +1,60 @@
+#ifndef IMFOS_DEVICES_H_
+#define IMFOS_DEVICES_H_
+
+#include <e.h>
+
+typedef struct _Imfos_Device
+{
+ const char *syspath;
+ const char *name;
+ const char *dev_name;
+ int type;
+ Ecore_Thread *thread;
+ int capacities;
+ int poll_interval;
+ int powersave_min_state;
+ int priority;
+ int timeout;
+ double time_start;
+ double last_catch;
+ int catch_count;
+ int catch_time_average;
+ Eina_Bool init_time_fixed;
+ Eina_Bool catched;
+ Eina_Bool async;
+ Eina_Bool auto_screen_on;
+ Eina_Bool auto_screen_off;
+ Eina_Bool auto_logout;
+ Eina_Bool auto_login;
+ Eina_Bool timeout_enabled;
+ Eina_Bool found;
+ Eina_Bool enabled;
+ Eina_Bool dev_name_locked;
+ struct
+ {
+ struct
+ {
+ Evas_Object *cam;
+ Eina_Bool flip;
+ int init_time;
+ int init_time_average;
+ } v4l;
+ struct
+ {
+ const char *ssid;
+ } wifi;
+ struct
+ {
+ const char *id;
+ } bluetooth;
+ } param;
+} Imfos_Device;
+
+void imfos_devices_init(void);
+void imfos_devices_shutdown(void);
+Eina_Bool imfos_devices_run(Imfos_Device *dev);
+Eina_Bool imfos_devices_cancel(Imfos_Device *dev);
+Eina_Bool imfos_devices_timeout(Imfos_Device *dev);
+
+
+#endif /* IMFOS_DEVICES_H_ */