diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/ecore/src/lib/ecore_wayland/ecore_wl_output.c | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_wayland/ecore_wl_output.c | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/libraries/ecore/src/lib/ecore_wayland/ecore_wl_output.c b/libraries/ecore/src/lib/ecore_wayland/ecore_wl_output.c deleted file mode 100644 index 9f540d4..0000000 --- a/libraries/ecore/src/lib/ecore_wayland/ecore_wl_output.c +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include "Ecore.h" | ||
6 | #include "ecore_private.h" | ||
7 | #include "ecore_wl_private.h" | ||
8 | #include "Ecore_Wayland.h" | ||
9 | |||
10 | /* local function prototypes */ | ||
11 | static void _ecore_wl_output_cb_geometry(void *data, struct wl_output *wl_output __UNUSED__, int x, int y, int w __UNUSED__, int h __UNUSED__, int subpixel __UNUSED__, const char *make __UNUSED__, const char *model __UNUSED__); | ||
12 | static void _ecore_wl_output_cb_mode(void *data, struct wl_output *wl_output __UNUSED__, unsigned int flags, int w, int h, int refresh __UNUSED__); | ||
13 | |||
14 | /* wayland listeners */ | ||
15 | static const struct wl_output_listener _ecore_wl_output_listener = | ||
16 | { | ||
17 | _ecore_wl_output_cb_geometry, | ||
18 | _ecore_wl_output_cb_mode | ||
19 | }; | ||
20 | |||
21 | void | ||
22 | _ecore_wl_output_add(Ecore_Wl_Display *ewd, unsigned int id) | ||
23 | { | ||
24 | Ecore_Wl_Output *output; | ||
25 | |||
26 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
27 | |||
28 | if (!(output = malloc(sizeof(Ecore_Wl_Output)))) return; | ||
29 | |||
30 | memset(output, 0, sizeof(Ecore_Wl_Output)); | ||
31 | |||
32 | output->display = ewd; | ||
33 | |||
34 | output->output = wl_display_bind(ewd->wl.display, id, &wl_output_interface); | ||
35 | wl_list_insert(ewd->outputs.prev, &output->link); | ||
36 | wl_output_add_listener(output->output, &_ecore_wl_output_listener, output); | ||
37 | } | ||
38 | |||
39 | void | ||
40 | _ecore_wl_output_del(Ecore_Wl_Output *output) | ||
41 | { | ||
42 | if (!output) return; | ||
43 | if (output->destroy) (*output->destroy)(output, output->data); | ||
44 | if (output->output) wl_output_destroy(output->output); | ||
45 | wl_list_remove(&output->link); | ||
46 | free(output); | ||
47 | } | ||
48 | |||
49 | /* local functions */ | ||
50 | static void | ||
51 | _ecore_wl_output_cb_geometry(void *data, struct wl_output *wl_output __UNUSED__, int x, int y, int w __UNUSED__, int h __UNUSED__, int subpixel __UNUSED__, const char *make __UNUSED__, const char *model __UNUSED__) | ||
52 | { | ||
53 | Ecore_Wl_Output *output; | ||
54 | |||
55 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
56 | |||
57 | output = data; | ||
58 | output->allocation.x = x; | ||
59 | output->allocation.y = y; | ||
60 | } | ||
61 | |||
62 | static void | ||
63 | _ecore_wl_output_cb_mode(void *data, struct wl_output *wl_output __UNUSED__, unsigned int flags, int w, int h, int refresh __UNUSED__) | ||
64 | { | ||
65 | Ecore_Wl_Output *output; | ||
66 | Ecore_Wl_Display *ewd; | ||
67 | |||
68 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
69 | |||
70 | output = data; | ||
71 | ewd = output->display; | ||
72 | if (flags & WL_OUTPUT_MODE_CURRENT) | ||
73 | { | ||
74 | output->allocation.w = w; | ||
75 | output->allocation.h = h; | ||
76 | _ecore_wl_disp->output = output; | ||
77 | if (ewd->output_configure) (*ewd->output_configure)(output, ewd->data); | ||
78 | } | ||
79 | } | ||