[PATCH weston v3 11/17] compositor-wayland: refactor wayland_backend_create

Benoit Gschwind gschwind at gnu-log.net
Thu May 5 20:45:49 UTC 2016


Remove argv, argc and weston_config from wayland_backend_create
function.

Signed-off-by: Benoit Gschwind <gschwind at gnu-log.net>
---
 src/compositor-wayland.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index fe8b082..140b11d 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -2169,8 +2169,7 @@ fullscreen_binding(struct weston_keyboard *keyboard, uint32_t time,
 
 static struct wayland_backend *
 wayland_backend_create(struct weston_compositor *compositor,
-		       struct weston_wayland_backend_config *new_config,
-		       int *argc, char *argv[], struct weston_config *config)
+		       struct weston_wayland_backend_config *new_config)
 {
 	struct wayland_backend *b;
 	struct wl_event_loop *loop;
@@ -2298,7 +2297,7 @@ backend_init(struct weston_compositor *compositor, int *argc, char *argv[],
 	config_init_to_defaults(&new_config);
 	memcpy(&new_config, config_base, config_base->struct_size);
 
-	b = wayland_backend_create(compositor, &new_config, argc, argv, config);
+	b = wayland_backend_create(compositor, &new_config);
 
 	if (!b)
 		return -1;
-- 
2.7.3



More information about the wayland-devel mailing list