summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-03-20 21:18:52 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-03-20 21:18:52 -0400
commit69e827ef0c27ec2536560880da45dad5e68cc683 (patch)
tree9e698ea62a9857fd2e773bcff812bd2bdba9e70e /src/lib/ecore_wayland
parenta051333806d3b3f0f53190ce4949208ebafd9fa0 (diff)
ecore_wayland: Add some comments
Summary: Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewers: zmike Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2209
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c4
-rw-r--r--src/lib/ecore_wayland/ecore_wl_output.c11
2 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 2d1197d..c0031bb 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -1533,12 +1533,12 @@ _ecore_wl_mouse_down_info_get(int dev)
1533 Eina_Inlist *l = NULL; 1533 Eina_Inlist *l = NULL;
1534 Ecore_Wl_Mouse_Down_Info *info = NULL; 1534 Ecore_Wl_Mouse_Down_Info *info = NULL;
1535 1535
1536 //Return the exist info 1536 // Return the existing info
1537 l = _ecore_wl_mouse_down_info_list; 1537 l = _ecore_wl_mouse_down_info_list;
1538 EINA_INLIST_FOREACH(l, info) 1538 EINA_INLIST_FOREACH(l, info)
1539 if (info->dev == dev) return info; 1539 if (info->dev == dev) return info;
1540 1540
1541 //New Device. Add it. 1541 // New Device. Add it.
1542 info = calloc(1, sizeof(Ecore_Wl_Mouse_Down_Info)); 1542 info = calloc(1, sizeof(Ecore_Wl_Mouse_Down_Info));
1543 if (!info) return NULL; 1543 if (!info) return NULL;
1544 1544
diff --git a/src/lib/ecore_wayland/ecore_wl_output.c b/src/lib/ecore_wayland/ecore_wl_output.c
index 412611b..c4cd0b1 100644
--- a/src/lib/ecore_wayland/ecore_wl_output.c
+++ b/src/lib/ecore_wayland/ecore_wl_output.c
@@ -4,6 +4,7 @@
4 4
5#include "ecore_wl_private.h" 5#include "ecore_wl_private.h"
6 6
7/* Sets the output's geometry */
7static void 8static void
8_ecore_wl_output_cb_geometry(void *data, struct wl_output *wl_output EINA_UNUSED, int x, int y, int w, int h, int subpixel EINA_UNUSED, const char *make EINA_UNUSED, const char *model EINA_UNUSED, int transform) 9_ecore_wl_output_cb_geometry(void *data, struct wl_output *wl_output EINA_UNUSED, int x, int y, int w, int h, int subpixel EINA_UNUSED, const char *make EINA_UNUSED, const char *model EINA_UNUSED, int transform)
9{ 10{
@@ -19,6 +20,7 @@ _ecore_wl_output_cb_geometry(void *data, struct wl_output *wl_output EINA_UNUSED
19 output->transform = transform; 20 output->transform = transform;
20} 21}
21 22
23/* Sets the output's mode */
22static void 24static void
23_ecore_wl_output_cb_mode(void *data, struct wl_output *wl_output EINA_UNUSED, unsigned int flags, int w, int h, int refresh EINA_UNUSED) 25_ecore_wl_output_cb_mode(void *data, struct wl_output *wl_output EINA_UNUSED, unsigned int flags, int w, int h, int refresh EINA_UNUSED)
24{ 26{
@@ -59,13 +61,17 @@ static const struct wl_output_listener _ecore_wl_output_listener =
59 _ecore_wl_output_cb_scale 61 _ecore_wl_output_cb_scale
60}; 62};
61 63
62/* @since 1.2 */ 64/* Get list of available outputs */
65 *@since 1.2 */
63EAPI Eina_Inlist * 66EAPI Eina_Inlist *
64ecore_wl_outputs_get(void) 67ecore_wl_outputs_get(void)
65{ 68{
66 return _ecore_wl_disp->outputs; 69 return _ecore_wl_disp->outputs;
67} 70}
68 71
72/* Create new output for the given display, and append it to the display's
73 * list of available outputs
74 */
69void 75void
70_ecore_wl_output_add(Ecore_Wl_Display *ewd, unsigned int id) 76_ecore_wl_output_add(Ecore_Wl_Display *ewd, unsigned int id)
71{ 77{
@@ -84,6 +90,9 @@ _ecore_wl_output_add(Ecore_Wl_Display *ewd, unsigned int id)
84 wl_output_add_listener(output->output, &_ecore_wl_output_listener, output); 90 wl_output_add_listener(output->output, &_ecore_wl_output_listener, output);
85} 91}
86 92
93/* Destruct the output and remove it from the display's list of available
94 * outputs
95 */
87void 96void
88_ecore_wl_output_del(Ecore_Wl_Output *output) 97_ecore_wl_output_del(Ecore_Wl_Output *output)
89{ 98{