From 047e3bf113f1129ffdd829b6ae0fd370a5677963 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Tue, 29 Oct 2013 19:32:00 -0200 Subject: [PATCH] ecore/wayland: Using underscore on private functions. --- src/lib/ecore_wayland/ecore_wl.c | 4 ++-- src/lib/ecore_wayland/ecore_wl_private.h | 4 ++-- src/lib/ecore_wayland/ecore_wl_subsurf.c | 6 +++--- src/lib/ecore_wayland/ecore_wl_window.c | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c index b3ec5df..bb0c5fe 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -274,7 +274,7 @@ ecore_wl_registry_get(void) } struct wl_compositor * -ecore_wl_compositor_get(void) +_ecore_wl_compositor_get(void) { if ((!_ecore_wl_disp) || (!_ecore_wl_disp->wl.display)) return NULL; @@ -285,7 +285,7 @@ ecore_wl_compositor_get(void) } struct wl_subcompositor * -ecore_wl_subcompositor_get(void) +_ecore_wl_subcompositor_get(void) { if ((!_ecore_wl_disp) || (!_ecore_wl_disp->wl.display)) return NULL; diff --git a/src/lib/ecore_wayland/ecore_wl_private.h b/src/lib/ecore_wayland/ecore_wl_private.h index d615f0f..581774b 100644 --- a/src/lib/ecore_wayland/ecore_wl_private.h +++ b/src/lib/ecore_wayland/ecore_wl_private.h @@ -97,7 +97,7 @@ void _ecore_wl_events_shutdown(void); void _ecore_wl_subsurfs_del_all(Ecore_Wl_Window *win); -struct wl_compositor *ecore_wl_compositor_get(void); -struct wl_subcompositor *ecore_wl_subcompositor_get(void); +struct wl_compositor *_ecore_wl_compositor_get(void); +struct wl_subcompositor *_ecore_wl_subcompositor_get(void); #endif diff --git a/src/lib/ecore_wayland/ecore_wl_subsurf.c b/src/lib/ecore_wayland/ecore_wl_subsurf.c index d59810d..dd883ac 100644 --- a/src/lib/ecore_wayland/ecore_wl_subsurf.c +++ b/src/lib/ecore_wayland/ecore_wl_subsurf.c @@ -30,10 +30,10 @@ ecore_wl_subsurf_create(Ecore_Wl_Window *win) if (!win) return NULL; if (!win->surface) return NULL; - subcomp = ecore_wl_subcompositor_get(); + subcomp = _ecore_wl_subcompositor_get(); if (!subcomp) return NULL; - surface = wl_compositor_create_surface(ecore_wl_compositor_get()); + surface = wl_compositor_create_surface(_ecore_wl_compositor_get()); if (!surface) return NULL; @@ -182,7 +182,7 @@ ecore_wl_subsurf_opaque_region_set(Ecore_Wl_Subsurf *ess, int x, int y, int w, i if ((w > 0) && (h > 0)) { - region = wl_compositor_create_region(ecore_wl_compositor_get()); + region = wl_compositor_create_region(_ecore_wl_compositor_get()); wl_region_add(region, x, y, w, h); wl_surface_set_opaque_region(ess->surface, region); wl_region_destroy(region); diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c index b924691..0de39d9 100644 --- a/src/lib/ecore_wayland/ecore_wl_window.c +++ b/src/lib/ecore_wayland/ecore_wl_window.c @@ -252,7 +252,7 @@ ecore_wl_window_surface_create(Ecore_Wl_Window *win) { if (!win) return NULL; if (win->surface) return win->surface; - win->surface = wl_compositor_create_surface(ecore_wl_compositor_get()); + win->surface = wl_compositor_create_surface(_ecore_wl_compositor_get()); win->surface_id = wl_proxy_get_id((struct wl_proxy *)win->surface); return win->surface; } @@ -610,7 +610,7 @@ ecore_wl_window_input_region_set(Ecore_Wl_Window *win, int x, int y, int w, int struct wl_region *region = NULL; region = - wl_compositor_create_region(ecore_wl_compositor_get()); + wl_compositor_create_region(_ecore_wl_compositor_get()); wl_region_add(region, x, y, w, h); wl_surface_set_input_region(win->surface, region); wl_region_destroy(region); @@ -640,7 +640,7 @@ ecore_wl_window_opaque_region_set(Ecore_Wl_Window *win, int x, int y, int w, int struct wl_region *region = NULL; region = - wl_compositor_create_region(ecore_wl_compositor_get()); + wl_compositor_create_region(_ecore_wl_compositor_get()); switch (win->rotation) { -- 2.7.4