temporary: add the name argument at pepper_compositor_create_fd 36/262536/1 accepted/tizen/unified/20210816.122912 submit/tizen/20210813.050356
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 13 Aug 2021 04:26:30 +0000 (13:26 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 13 Aug 2021 04:26:30 +0000 (13:26 +0900)
This patch is a temporary one. This patch will be reverted later.

Change-Id: I50ae1145465ffbdf8b5a347531811651076d0dcf

samples/drm-backend.c
samples/fbdev-backend.c
samples/sample-server.c
samples/tdm-backend.c
samples/wayland-backend.c
samples/x11-backend.c
src/bin/doctor/doctor.c
src/lib/pepper/compositor.c
src/lib/pepper/pepper.h

index 8484103..7b232a2 100644 (file)
@@ -94,7 +94,7 @@ main(int argc, char **argv)
        if (!pepper_virtual_terminal_setup(tty))
                goto cleanup;
 
-       compositor = pepper_compositor_create("wayland-0");
+       compositor = pepper_compositor_create("wayland-0", NULL);
        if (!compositor)
                goto cleanup;
 
index 63a6930..db534c6 100644 (file)
@@ -103,7 +103,7 @@ main(int argc, char **argv)
        if (!pepper_virtual_terminal_setup(tty))
                goto cleanup;
 
-       compositor = pepper_compositor_create("wayland-0");
+       compositor = pepper_compositor_create("wayland-0", NULL);
        if (!compositor)
                goto cleanup;
 
index 4dde94e..4836b41 100644 (file)
@@ -203,7 +203,7 @@ main(int argc, char **argv)
        if (!socket_name)
                socket_name = "wayland-0";
 
-       compositor = pepper_compositor_create(socket_name);
+       compositor = pepper_compositor_create(socket_name, NULL);
 
        if (!compositor)
                return -1;
index 32ec8cd..45010f6 100644 (file)
@@ -81,7 +81,7 @@ main(int argc, char **argv)
 
        init_signals();
 
-       compositor = pepper_compositor_create("wayland-0");
+       compositor = pepper_compositor_create("wayland-0", NULL);
        if (!compositor)
                goto cleanup;
 
index 86df933..59e459c 100644 (file)
@@ -37,7 +37,7 @@ main(int argc, char **argv)
        pepper_output_t     *output;
        struct wl_display   *display;
 
-       compositor = pepper_compositor_create("wayland-1");
+       compositor = pepper_compositor_create("wayland-1", NULL);
        PEPPER_ASSERT(compositor);
 
        conn = pepper_wayland_connect(compositor, "wayland-0");
index 8698c5b..cf796d7 100644 (file)
@@ -59,7 +59,7 @@ main(int argc, char **argv)
        if (argc > 2)
                renderer = argv[2];
 
-       compositor = pepper_compositor_create(socket);
+       compositor = pepper_compositor_create(socket, NULL);
        PEPPER_ASSERT(compositor);
 
        conn = pepper_x11_connect(compositor, NULL);
index bcf029e..e949af3 100644 (file)
@@ -270,7 +270,7 @@ int main(int argc, char *argv[])
                setenv("XDG_RUNTIME_DIR", "/run", 1);
 
        /* create pepper compositor */
-       compositor = pepper_compositor_create(socket_name);
+       compositor = pepper_compositor_create(socket_name, NULL);
        PEPPER_CHECK(compositor, return EXIT_FAILURE, "Failed to create compositor !\n");
 
        /* init tbm buffer manager */
index 9d92826..b573a0f 100644 (file)
@@ -207,7 +207,7 @@ pepper_compositor_schedule_repaint(pepper_compositor_t *compositor)
  * @see pepper_compositor_create()
  */
 PEPPER_API pepper_compositor_t *
-pepper_compositor_create_fd(const char *socket_name, int fd)
+pepper_compositor_create_fd(const char *socket_name, int fd, char *name)
 {
        int                  ret;
        pepper_compositor_t *compositor;
@@ -294,9 +294,9 @@ error:
  * @see pepper_compositor_destroy()
  */
 PEPPER_API pepper_compositor_t *
-pepper_compositor_create(const char *socket_name)
+pepper_compositor_create(const char *socket_name, char *name)
 {
-       return pepper_compositor_create_fd(socket_name, -1);
+       return pepper_compositor_create_fd(socket_name, -1, name);
 }
 
 /**
index b293386..b23af84 100644 (file)
@@ -838,10 +838,10 @@ PEPPER_API pepper_object_t *
 pepper_object_from_id(uint32_t id);
 
 PEPPER_API pepper_compositor_t *
-pepper_compositor_create(const char *socket_name);
+pepper_compositor_create(const char *socket_name, char *name);
 
 PEPPER_API pepper_compositor_t *
-pepper_compositor_create_fd(const char *socket_name, int fd);
+pepper_compositor_create_fd(const char *socket_name, int fd, char *name);
 
 PEPPER_API void
 pepper_compositor_destroy(pepper_compositor_t *compositor);