devilhorns pushed a commit to branch master.

commit 82c980ef7b25a745f10608b0ae37056bbd446fb2
Author: Chris Michael <[email protected]>
Date:   Tue Aug 6 11:18:29 2013 +0100

    Add functions for output done and output scale events.
    
    NB: Apparently, setting these functions to NULL in the listener Does
    Not Work anymore ! :( (used to work just fine).
    
    NB: This makes EFL Apps work again inside Weston with latest from git.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_wayland/ecore_wl_output.c | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_output.c 
b/src/lib/ecore_wayland/ecore_wl_output.c
index 46408d5..5e67232 100644
--- a/src/lib/ecore_wayland/ecore_wl_output.c
+++ b/src/lib/ecore_wayland/ecore_wl_output.c
@@ -7,12 +7,16 @@
 /* local function prototypes */
 static void _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 
EINA_UNUSED);
 static void _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);
+static void _ecore_wl_output_cb_done(void *data EINA_UNUSED, struct wl_output 
*output EINA_UNUSED);
+static void _ecore_wl_output_cb_scale(void *data EINA_UNUSED, struct wl_output 
*output EINA_UNUSED, int scale EINA_UNUSED);
 
 /* wayland listeners */
 static const struct wl_output_listener _ecore_wl_output_listener = 
 {
    _ecore_wl_output_cb_geometry,
-   _ecore_wl_output_cb_mode
+   _ecore_wl_output_cb_mode,
+   _ecore_wl_output_cb_done,
+   _ecore_wl_output_cb_scale
 };
 
 /* @since 1.2 */
@@ -36,7 +40,7 @@ _ecore_wl_output_add(Ecore_Wl_Display *ewd, unsigned int id)
    output->display = ewd;
 
    output->output = 
-     wl_registry_bind(ewd->wl.registry, id, &wl_output_interface, 1);
+     wl_registry_bind(ewd->wl.registry, id, &wl_output_interface, 2);
 
    wl_list_insert(ewd->outputs.prev, &output->link);
    wl_output_add_listener(output->output, &_ecore_wl_output_listener, output);
@@ -86,3 +90,14 @@ _ecore_wl_output_cb_mode(void *data, struct wl_output 
*wl_output EINA_UNUSED, un
         if (ewd->output_configure) (*ewd->output_configure)(output, ewd->data);
      }
 }
+
+static void 
+_ecore_wl_output_cb_done(void *data EINA_UNUSED, struct wl_output *output 
EINA_UNUSED)
+{
+
+}
+
+static void _ecore_wl_output_cb_scale(void *data, struct wl_output *output, 
int scale)
+{
+
+}

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to