cosmetic: Whitespace cleanup of wayland client files

Summary:
cosmetic: Cleanup whitespace for wayland compositor

There is excess trailing whitespace in several of the files for the
wayland implementation.  These patches attempt to apply the spacing
rules for Enlightenment as documented at:
https://phab.enlightenment.org/w/coding_convention/

The whitespace rules are applied using the following emacs tabbing
settings:

 (defun start-efl-c-mode ()
  "C mode with adjusted defaults for use with Enlightenment
  development."
  (interactive)
  (c-mode)
  (c-set-style "gnu")
  (setq tab-width 8)
  (setq indent-tabs-mode nil)
  (setq c-basic-offset 3)
  (setq defun-block-intro 3)
  (setq statement-block-intro 3)
  (setq case-label 1)
  (setq statement-case-intro 3)
 )

This patchset also eliminates all tabs in favor of whitespace, as per
the coding style rules.

Reviewers: zmike, cedric, devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2048
This commit is contained in:
Bryce Harrington 2015-02-24 17:34:20 -05:00 committed by Mike Blumenkrantz
parent 9e585e3f79
commit 89dbb9bd27
5 changed files with 409 additions and 409 deletions

File diff suppressed because it is too large Load Diff

View File

@ -43,7 +43,7 @@ typedef struct _E_Comp_Wl_Client_Data E_Comp_Wl_Client_Data;
typedef struct _E_Comp_Wl_Data E_Comp_Wl_Data;
typedef struct _E_Comp_Wl_Output E_Comp_Wl_Output;
struct _E_Comp_Wl_Buffer
struct _E_Comp_Wl_Buffer
{
struct wl_resource *resource;
struct wl_signal destroy_signal;
@ -95,15 +95,15 @@ struct _E_Comp_Wl_Subsurf_Data
struct _E_Comp_Wl_Data
{
struct
struct
{
struct wl_display *disp;
struct wl_event_loop *loop;
} wl;
struct
struct
{
struct
struct
{
struct wl_signal create;
struct wl_signal activate;
@ -125,13 +125,13 @@ struct _E_Comp_Wl_Data
/* } seat, output; */
} signals;
struct
struct
{
struct wl_resource *shell;
struct wl_resource *xdg_shell;
} shell_interface;
struct
struct
{
Eina_List *resources;
Eina_Bool enabled : 1;
@ -145,7 +145,7 @@ struct _E_Comp_Wl_Data
int mod_changed;
} kbd;
struct
struct
{
Eina_List *resources;
Eina_Bool enabled : 1;
@ -154,13 +154,13 @@ struct _E_Comp_Wl_Data
uint32_t button;
} ptr;
struct
struct
{
Eina_List *resources;
Eina_Bool enabled : 1;
} touch;
struct
struct
{
struct wl_global *global;
Eina_List *resources;
@ -168,7 +168,7 @@ struct _E_Comp_Wl_Data
char *name;
} seat;
struct
struct
{
struct wl_global *global;
Eina_List *data_resources;
@ -194,7 +194,7 @@ struct _E_Comp_Wl_Data
uint32_t edges;
} resize;
struct
struct
{
struct xkb_keymap *keymap;
struct xkb_context *context;
@ -228,7 +228,7 @@ struct _E_Comp_Wl_Client_Data
/* regular surface resource (wl_compositor_create_surface) */
struct wl_resource *surface;
struct
struct
{
/* shell surface resource */
struct wl_resource *surface;
@ -242,7 +242,7 @@ struct _E_Comp_Wl_Client_Data
E_Comp_Wl_Buffer_Ref buffer_ref;
struct
struct
{
int32_t x, y, w, h;
struct wl_resource *buffer;
@ -251,7 +251,7 @@ struct _E_Comp_Wl_Client_Data
Eina_Tiler *input;
} pending;
struct
struct
{
int32_t x, y;
} popup;

View File

@ -13,7 +13,7 @@ extern const struct wl_interface xdg_surface_interface;
#pragma GCC diagnostic pop
static const struct wl_interface *types[] =
static const struct wl_interface *types[] =
{
NULL,
NULL,
@ -36,13 +36,13 @@ static const struct wl_interface *types[] =
NULL,
&wl_seat_interface,
NULL,
&wl_seat_interface,
&wl_seat_interface,
NULL,
NULL,
&wl_output_interface,
};
static const struct wl_message xdg_shell_requests[] =
static const struct wl_message xdg_shell_requests[] =
{
{ "use_unstable_version", "i", types + 0 },
{ "get_xdg_surface", "no", types + 4 },
@ -50,19 +50,19 @@ static const struct wl_message xdg_shell_requests[] =
{ "pong", "u", types + 0 },
};
static const struct wl_message xdg_shell_events[] =
static const struct wl_message xdg_shell_events[] =
{
{ "ping", "u", types + 0 },
};
WL_EXPORT const struct wl_interface xdg_shell_interface =
WL_EXPORT const struct wl_interface xdg_shell_interface =
{
"xdg_shell", 1,
4, xdg_shell_requests,
"xdg_shell", 1,
4, xdg_shell_requests,
1, xdg_shell_events,
};
static const struct wl_message xdg_surface_requests[] =
static const struct wl_message xdg_surface_requests[] =
{
{ "destroy", "", types + 0 },
{ "set_parent", "?o", types + 14 },
@ -80,32 +80,32 @@ static const struct wl_message xdg_surface_requests[] =
{ "set_minimized", "", types + 0 },
};
static const struct wl_message xdg_surface_events[] =
static const struct wl_message xdg_surface_events[] =
{
{ "configure", "iiau", types + 0 },
{ "close", "", types + 0 },
};
WL_EXPORT const struct wl_interface xdg_surface_interface =
WL_EXPORT const struct wl_interface xdg_surface_interface =
{
"xdg_surface", 1,
14, xdg_surface_requests,
"xdg_surface", 1,
14, xdg_surface_requests,
2, xdg_surface_events,
};
static const struct wl_message xdg_popup_requests[] =
static const struct wl_message xdg_popup_requests[] =
{
{ "destroy", "", types + 0 },
};
static const struct wl_message xdg_popup_events[] =
static const struct wl_message xdg_popup_events[] =
{
{ "popup_done", "u", types + 0 },
};
WL_EXPORT const struct wl_interface xdg_popup_interface =
WL_EXPORT const struct wl_interface xdg_popup_interface =
{
"xdg_popup", 1,
1, xdg_popup_requests,
"xdg_popup", 1,
1, xdg_popup_requests,
1, xdg_popup_events,
};

View File

@ -39,7 +39,7 @@ struct xdg_shell_interface
# define XDG_SHELL_PING 0
# define XDG_SHELL_PING_SINCE_VERSION 1
static inline void
static inline void
xdg_shell_send_ping(struct wl_resource *resource_, uint32_t serial)
{
wl_resource_post_event(resource_, XDG_SHELL_PING, serial);
@ -95,13 +95,13 @@ struct xdg_surface_interface
# define XDG_SURFACE_CONFIGURE_SINCE_VERSION 1
# define XDG_SURFACE_CLOSE_SINCE_VERSION 1
static inline void
static inline void
xdg_surface_send_configure(struct wl_resource *resource_, int32_t w, int32_t h, struct wl_array *states, uint32_t serial)
{
wl_resource_post_event(resource_, XDG_SURFACE_CONFIGURE, w, h, states, serial);
}
static inline void
static inline void
xdg_surface_send_close(struct wl_resource *resource_)
{
wl_resource_post_event(resource_, XDG_SURFACE_CLOSE);
@ -115,7 +115,7 @@ struct xdg_popup_interface
# define XDG_POPUP_POPUP_DONE 0
# define XDG_POPUP_POPUP_DONE_SINCE_VERSION 1
static inline void
static inline void
xdg_popup_send_popup_done(struct wl_resource *resource_, uint32_t serial)
{
wl_resource_post_event(resource_, XDG_POPUP_POPUP_DONE, serial);

File diff suppressed because it is too large Load Diff