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/evas/src/modules/engines/software_8_x11/evas_engine.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/evas/src/modules/engines/software_8_x11/evas_engine.h')
-rw-r--r-- | libraries/evas/src/modules/engines/software_8_x11/evas_engine.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/software_8_x11/evas_engine.h b/libraries/evas/src/modules/engines/software_8_x11/evas_engine.h new file mode 100644 index 0000000..1fa12df --- /dev/null +++ b/libraries/evas/src/modules/engines/software_8_x11/evas_engine.h | |||
@@ -0,0 +1,65 @@ | |||
1 | #ifndef EVAS_ENGINE_H | ||
2 | #define EVAS_ENGINE_H | ||
3 | |||
4 | #include <sys/ipc.h> | ||
5 | #include <sys/shm.h> | ||
6 | |||
7 | #include <xcb/xcb.h> | ||
8 | #include <xcb/shm.h> | ||
9 | #include <xcb/xcb_image.h> | ||
10 | |||
11 | #include "evas_common.h" | ||
12 | #include "evas_common_soft8.h" | ||
13 | |||
14 | extern int _evas_engine_soft8_x11_log_dom; | ||
15 | #ifdef ERR | ||
16 | # undef ERR | ||
17 | #endif | ||
18 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
19 | |||
20 | #ifdef DBG | ||
21 | # undef DBG | ||
22 | #endif | ||
23 | #define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
24 | |||
25 | #ifdef INF | ||
26 | # undef INF | ||
27 | #endif | ||
28 | #define INF(...) EINA_LOG_DOM_INFO(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
29 | |||
30 | #ifdef WRN | ||
31 | # undef WRN | ||
32 | #endif | ||
33 | #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
34 | |||
35 | #ifdef CRIT | ||
36 | # undef CRIT | ||
37 | #endif | ||
38 | #define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
39 | |||
40 | typedef struct _X_Output_Buffer X_Output_Buffer; | ||
41 | |||
42 | struct _X_Output_Buffer | ||
43 | { | ||
44 | Soft8_Image *im; | ||
45 | xcb_connection_t *connection; | ||
46 | xcb_screen_t *screen; | ||
47 | xcb_image_t *xim; | ||
48 | xcb_drawable_t drawable; | ||
49 | xcb_gcontext_t gc; | ||
50 | xcb_shm_segment_info_t *shm_info; | ||
51 | unsigned char *pal; | ||
52 | void *data; | ||
53 | }; | ||
54 | |||
55 | /****/ | ||
56 | int evas_software_8_x11_x_can_do_shm (xcb_connection_t *c, xcb_screen_t *screen); | ||
57 | X_Output_Buffer *evas_software_8_x11_x_output_buffer_new (xcb_connection_t *, xcb_screen_t *screen, int depth, unsigned char *pal, int w, int h, int try_shm, void *data); | ||
58 | void evas_software_8_x11_x_output_buffer_free (X_Output_Buffer *xob, int sync); | ||
59 | void evas_software_8_x11_x_output_buffer_paste (X_Output_Buffer *xob, xcb_drawable_t d, xcb_gcontext_t gc, int x, int y, int w, int h, int sync); | ||
60 | DATA8 *evas_software_8_x11_x_output_buffer_data (X_Output_Buffer *xob, int *bytes_per_line_ret); | ||
61 | int evas_software_8_x11_x_output_buffer_depth (X_Output_Buffer *xob); | ||
62 | int evas_software_8_x11_x_output_buffer_byte_order (X_Output_Buffer *xob); | ||
63 | int evas_software_8_x11_x_output_buffer_bit_order (X_Output_Buffer *xob); | ||
64 | |||
65 | #endif | ||