devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1058cffc0ddd00a74a7c0dfb7c5b3de4b7dc7777

commit 1058cffc0ddd00a74a7c0dfb7c5b3de4b7dc7777
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Aug 26 11:07:02 2014 -0400

    ecore-wayland: Remove need for function prototypes
    
    If we declare/define these functions Before they are needed in the
    listener, then we can remove the need for using function prototypes.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wayland/ecore_wl_output.c | 97 +++++++++++++++------------------
 1 file changed, 45 insertions(+), 52 deletions(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_output.c 
b/src/lib/ecore_wayland/ecore_wl_output.c
index 8d957ce..4a422ff 100644
--- a/src/lib/ecore_wayland/ecore_wl_output.c
+++ b/src/lib/ecore_wayland/ecore_wl_output.c
@@ -4,11 +4,51 @@
 
 #include "ecore_wl_private.h"
 
-/* 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);
+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)
+{
+   Ecore_Wl_Output *output;
+
+   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+   output = data;
+   output->allocation.x = x;
+   output->allocation.y = y;
+   output->mw = w;
+   output->mh = h;
+   output->transform = transform;
+}
+
+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)
+{
+   Ecore_Wl_Output *output;
+   Ecore_Wl_Display *ewd;
+
+   LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+   output = data;
+   ewd = output->display;
+   if (flags & WL_OUTPUT_MODE_CURRENT)
+     {
+        output->allocation.w = w;
+        output->allocation.h = h;
+        _ecore_wl_disp->output = output;
+        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 EINA_UNUSED, struct wl_output *output 
EINA_UNUSED, int scale EINA_UNUSED)
+{
+
+}
 
 /* wayland listeners */
 static const struct wl_output_listener _ecore_wl_output_listener = 
@@ -56,50 +96,3 @@ _ecore_wl_output_del(Ecore_Wl_Output *output)
      eina_inlist_remove(_ecore_wl_disp->outputs, EINA_INLIST_GET(output));
    free(output);
 }
-
-/* local functions */
-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)
-{
-   Ecore_Wl_Output *output;
-
-   LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
-   output = data;
-   output->allocation.x = x;
-   output->allocation.y = y;
-   output->mw = w;
-   output->mh = h;
-   output->transform = transform;
-}
-
-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)
-{
-   Ecore_Wl_Output *output;
-   Ecore_Wl_Display *ewd;
-
-   LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
-   output = data;
-   ewd = output->display;
-   if (flags & WL_OUTPUT_MODE_CURRENT)
-     {
-        output->allocation.w = w;
-        output->allocation.h = h;
-        _ecore_wl_disp->output = output;
-        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 EINA_UNUSED, struct wl_output *output 
EINA_UNUSED, int scale EINA_UNUSED)
-{
-
-}

-- 


Reply via email to