diff options
author | Chris Michael <cp.michael@samsung.com> | 2013-03-07 12:06:50 +0000 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2013-03-21 07:21:44 +0000 |
commit | 4cc4cfaee15233d35df1f77a5570eefec002e08a (patch) | |
tree | 7957de37e3e33fe2b6a36fceace7dca2b48f822c | |
parent | 62041a43905a1033e2a5507fa067b0c347073e1c (diff) | |
download | enlightenment-4cc4cfaee15233d35df1f77a5570eefec002e08a.tar.gz |
Add new desktop_shell protocol header and code with proper naming.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/modules/wl_shell/e_desktop_shell_protocol.c | 12 | ||||
-rw-r--r-- | src/modules/wl_shell/e_desktop_shell_protocol.h | 56 |
2 files changed, 34 insertions, 34 deletions
diff --git a/src/modules/wl_shell/e_desktop_shell_protocol.c b/src/modules/wl_shell/e_desktop_shell_protocol.c index ae531cf902..98d56a1a07 100644 --- a/src/modules/wl_shell/e_desktop_shell_protocol.c +++ b/src/modules/wl_shell/e_desktop_shell_protocol.c @@ -28,7 +28,7 @@ static const struct wl_interface *types[] = { &wl_output_interface, }; -static const struct wl_message desktop_shell_requests[] = { +static const struct wl_message e_desktop_shell_requests[] = { { "set_background", "oo", types + 1 }, { "set_panel", "oo", types + 3 }, { "set_lock_surface", "o", types + 5 }, @@ -36,16 +36,16 @@ static const struct wl_message desktop_shell_requests[] = { { "set_grab_surface", "o", types + 6 }, }; -static const struct wl_message desktop_shell_events[] = { +static const struct wl_message e_desktop_shell_events[] = { { "configure", "uoii", types + 7 }, { "prepare_lock_surface", "", types + 0 }, { "grab_cursor", "u", types + 0 }, }; -WL_EXPORT const struct wl_interface desktop_shell_interface = { - "desktop_shell", 1, - 5, desktop_shell_requests, - 3, desktop_shell_events, +WL_EXPORT const struct wl_interface e_desktop_shell_interface = { + "e_desktop_shell", 1, + 5, e_desktop_shell_requests, + 3, e_desktop_shell_events, }; static const struct wl_message screensaver_requests[] = { diff --git a/src/modules/wl_shell/e_desktop_shell_protocol.h b/src/modules/wl_shell/e_desktop_shell_protocol.h index e42f75d62c..809b941c0b 100644 --- a/src/modules/wl_shell/e_desktop_shell_protocol.h +++ b/src/modules/wl_shell/e_desktop_shell_protocol.h @@ -12,31 +12,31 @@ extern "C" { struct wl_client; struct wl_resource; -struct desktop_shell; +struct e_desktop_shell; struct screensaver; -extern const struct wl_interface desktop_shell_interface; +extern const struct wl_interface e_desktop_shell_interface; extern const struct wl_interface screensaver_interface; -#ifndef DESKTOP_SHELL_CURSOR_ENUM -#define DESKTOP_SHELL_CURSOR_ENUM -enum desktop_shell_cursor { - DESKTOP_SHELL_CURSOR_NONE = 0, - DESKTOP_SHELL_CURSOR_RESIZE_TOP = 1, - DESKTOP_SHELL_CURSOR_RESIZE_BOTTOM = 2, - DESKTOP_SHELL_CURSOR_ARROW = 3, - DESKTOP_SHELL_CURSOR_RESIZE_LEFT = 4, - DESKTOP_SHELL_CURSOR_RESIZE_TOP_LEFT = 5, - DESKTOP_SHELL_CURSOR_RESIZE_BOTTOM_LEFT = 6, - DESKTOP_SHELL_CURSOR_MOVE = 7, - DESKTOP_SHELL_CURSOR_RESIZE_RIGHT = 8, - DESKTOP_SHELL_CURSOR_RESIZE_TOP_RIGHT = 9, - DESKTOP_SHELL_CURSOR_RESIZE_BOTTOM_RIGHT = 10, - DESKTOP_SHELL_CURSOR_BUSY = 11, +#ifndef E_DESKTOP_SHELL_CURSOR_ENUM +#define E_DESKTOP_SHELL_CURSOR_ENUM +enum e_desktop_shell_cursor { + E_DESKTOP_SHELL_CURSOR_NONE = 0, + E_DESKTOP_SHELL_CURSOR_RESIZE_TOP = 1, + E_DESKTOP_SHELL_CURSOR_RESIZE_BOTTOM = 2, + E_DESKTOP_SHELL_CURSOR_ARROW = 3, + E_DESKTOP_SHELL_CURSOR_RESIZE_LEFT = 4, + E_DESKTOP_SHELL_CURSOR_RESIZE_TOP_LEFT = 5, + E_DESKTOP_SHELL_CURSOR_RESIZE_BOTTOM_LEFT = 6, + E_DESKTOP_SHELL_CURSOR_MOVE = 7, + E_DESKTOP_SHELL_CURSOR_RESIZE_RIGHT = 8, + E_DESKTOP_SHELL_CURSOR_RESIZE_TOP_RIGHT = 9, + E_DESKTOP_SHELL_CURSOR_RESIZE_BOTTOM_RIGHT = 10, + E_DESKTOP_SHELL_CURSOR_BUSY = 11, }; -#endif /* DESKTOP_SHELL_CURSOR_ENUM */ +#endif /* E_DESKTOP_SHELL_CURSOR_ENUM */ -struct desktop_shell_interface { +struct e_desktop_shell_interface { /** * set_background - (none) * @output: (none) @@ -76,26 +76,26 @@ struct desktop_shell_interface { struct wl_resource *surface); }; -#define DESKTOP_SHELL_CONFIGURE 0 -#define DESKTOP_SHELL_PREPARE_LOCK_SURFACE 1 -#define DESKTOP_SHELL_GRAB_CURSOR 2 +#define E_DESKTOP_SHELL_CONFIGURE 0 +#define E_DESKTOP_SHELL_PREPARE_LOCK_SURFACE 1 +#define E_DESKTOP_SHELL_GRAB_CURSOR 2 static inline void -desktop_shell_send_configure(struct wl_resource *resource_, uint32_t edges, struct wl_resource *surface, int32_t width, int32_t height) +e_desktop_shell_send_configure(struct wl_resource *resource_, uint32_t edges, struct wl_resource *surface, int32_t width, int32_t height) { - wl_resource_post_event(resource_, DESKTOP_SHELL_CONFIGURE, edges, surface, width, height); + wl_resource_post_event(resource_, E_DESKTOP_SHELL_CONFIGURE, edges, surface, width, height); } static inline void -desktop_shell_send_prepare_lock_surface(struct wl_resource *resource_) +e_desktop_shell_send_prepare_lock_surface(struct wl_resource *resource_) { - wl_resource_post_event(resource_, DESKTOP_SHELL_PREPARE_LOCK_SURFACE); + wl_resource_post_event(resource_, E_DESKTOP_SHELL_PREPARE_LOCK_SURFACE); } static inline void -desktop_shell_send_grab_cursor(struct wl_resource *resource_, uint32_t cursor) +e_desktop_shell_send_grab_cursor(struct wl_resource *resource_, uint32_t cursor) { - wl_resource_post_event(resource_, DESKTOP_SHELL_GRAB_CURSOR, cursor); + wl_resource_post_event(resource_, E_DESKTOP_SHELL_GRAB_CURSOR, cursor); } struct screensaver_interface { |