client: added function wayland_tbm_client_set_event_queue 67/115467/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 20 Feb 2017 05:55:35 +0000 (14:55 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 20 Feb 2017 06:45:24 +0000 (22:45 -0800)
Change-Id: I1f15c4bb8560da1089ccabb2cdf186f999b83188

src/wayland-tbm-client.c
src/wayland-tbm-client.h

index a8123e7..366b36b 100644 (file)
@@ -57,6 +57,8 @@ struct wayland_tbm_client {
        int queue_dump;
 
        struct wl_list queue_info_list;
+
+       struct wl_event_queue *event_queue;
 };
 
 struct wayland_tbm_buffer {
@@ -368,6 +370,17 @@ static const struct wl_registry_listener registry_listener = {
        NULL
 };
 
+int
+wayland_tbm_client_set_event_queue(struct wayland_tbm_client *tbm_client, struct wl_event_queue *queue)
+{
+       WL_TBM_RETURN_VAL_IF_FAIL(tbm_client != NULL, 0);
+
+       wl_proxy_set_queue((struct wl_proxy *)tbm_client->wl_tbm, queue);
+       tbm_client->event_queue = queue;
+
+       return 1;
+}
+
 struct wayland_tbm_client *
 wayland_tbm_client_init(struct wl_display *display)
 {
index 95f89bb..289c283 100644 (file)
@@ -74,6 +74,9 @@ wayland_tbm_client_get_wl_tbm_queue(struct wayland_tbm_client *tbm_client, struc
 struct wl_tbm *
 wayland_tbm_client_get_wl_tbm(struct wayland_tbm_client *tbm_client);
 
+int
+wayland_tbm_client_set_event_queue(struct wayland_tbm_client *tbm_client, struct wl_event_queue *queue);
+
 #ifdef  __cplusplus
 }
 #endif