diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/ecore/src/lib/ecore_fb/ecore_fb_private.h | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/ecore/src/lib/ecore_fb/ecore_fb_private.h')
-rw-r--r-- | libraries/ecore/src/lib/ecore_fb/ecore_fb_private.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_fb/ecore_fb_private.h b/libraries/ecore/src/lib/ecore_fb/ecore_fb_private.h new file mode 100644 index 0000000..3e908a0 --- /dev/null +++ b/libraries/ecore/src/lib/ecore_fb/ecore_fb_private.h | |||
@@ -0,0 +1,91 @@ | |||
1 | #ifndef _ECORE_FB_PRIVATE_H | ||
2 | #define _ECORE_FB_PRIVATE_H | ||
3 | |||
4 | #include "Ecore.h" | ||
5 | #include "ecore_private.h" | ||
6 | #include "Ecore_Input.h" | ||
7 | |||
8 | #include <stdio.h> | ||
9 | #include <string.h> | ||
10 | #include <unistd.h> | ||
11 | #include <termios.h> | ||
12 | #include <sys/types.h> | ||
13 | #include <sys/stat.h> | ||
14 | #include <sys/ioctl.h> | ||
15 | #include <linux/version.h> | ||
16 | #include <linux/kd.h> | ||
17 | #include <linux/vt.h> | ||
18 | #include <linux/fb.h> | ||
19 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) | ||
20 | #define kernel_ulong_t unsigned long | ||
21 | #define BITS_PER_LONG 32 | ||
22 | #include <linux/input.h> | ||
23 | #undef kernel_ulong_t | ||
24 | #undef BITS_PER_LONG | ||
25 | #else | ||
26 | #include <linux/input.h> | ||
27 | #endif | ||
28 | |||
29 | #include <signal.h> | ||
30 | #include <fcntl.h> | ||
31 | #include <errno.h> | ||
32 | |||
33 | /* ecore_fb_li.c */ | ||
34 | struct _Ecore_Fb_Input_Device | ||
35 | { | ||
36 | int fd; | ||
37 | Ecore_Fd_Handler *handler; | ||
38 | int listen; | ||
39 | struct { | ||
40 | Ecore_Fb_Input_Device_Cap cap; | ||
41 | char *name; | ||
42 | char *dev; | ||
43 | } info; | ||
44 | struct | ||
45 | { | ||
46 | /* common mouse */ | ||
47 | int x,y; | ||
48 | int w,h; | ||
49 | |||
50 | double last; | ||
51 | double prev; | ||
52 | double threshold; | ||
53 | Eina_Bool did_double; | ||
54 | Eina_Bool did_triple; | ||
55 | /* absolute axis */ | ||
56 | int min_w, min_h; | ||
57 | double rel_w, rel_h; | ||
58 | int event; | ||
59 | int prev_button; | ||
60 | int last_button; | ||
61 | } mouse; | ||
62 | struct | ||
63 | { | ||
64 | int shift; | ||
65 | int ctrl; | ||
66 | int alt; | ||
67 | int lock; | ||
68 | } keyboard; | ||
69 | void *window; | ||
70 | }; | ||
71 | |||
72 | /* ecore_fb_ts.c */ | ||
73 | EAPI int ecore_fb_ts_init(void); | ||
74 | EAPI void ecore_fb_ts_shutdown(void); | ||
75 | EAPI void ecore_fb_ts_events_window_set(void *window); | ||
76 | EAPI void *ecore_fb_ts_events_window_get(void); | ||
77 | EAPI void ecore_fb_ts_event_window_set(void *window); | ||
78 | |||
79 | /* ecore_fb_vt.c */ | ||
80 | int ecore_fb_vt_init(void); | ||
81 | void ecore_fb_vt_shutdown(void); | ||
82 | |||
83 | /* hacks to stop people NEEDING #include <linux/h3600_ts.h> */ | ||
84 | #ifndef TS_SET_CAL | ||
85 | #define TS_SET_CAL 0x4014660b | ||
86 | #endif | ||
87 | #ifndef TS_GET_CAL | ||
88 | #define TS_GET_CAL 0x8014660a | ||
89 | #endif | ||
90 | |||
91 | #endif | ||