Re: [PATCH] server: Add get/set user data for wl_client

2016-02-26 Thread Pekka Paalanen
On Wed, 17 Feb 2016 18:47:44 +0900 Sung-Jin Park wrote: > Hi pq, > I'm sorry for replying late. > > The reasons why I tried to add are following. > - If a wl_client is able to has a user data, > a wayland server can use it for storing the client specific data such as > security privilege, the

Re: [PATCH] server: Add get/set user data for wl_client

2016-02-17 Thread Sung-Jin Park
Hi pq, I'm sorry for replying late. The reasons why I tried to add are following. - If a wl_client is able to has a user data, a wayland server can use it for storing the client specific data such as security privilege, the result of privilege check, and other things. Those kinds of data are t

Re: [PATCH] server: Add get/set user data for wl_client

2016-02-11 Thread Pekka Paalanen
Hi, I think we should think this a little more. There is no absolute requirement to add a user_data member to wl_client, because you can use a destroy listener to look up your user data struct. When you attach user data, you also want to always be notified about wl_client destruction, which means

[PATCH] server: Add get/set user data for wl_client

2016-01-27 Thread Sung-Jin Park
Signed-off-by: Sung-Jin Park --- src/wayland-server-core.h | 6 ++ src/wayland-server.c | 13 + 2 files changed, 19 insertions(+) diff --git a/src/wayland-server-core.h b/src/wayland-server-core.h index e8e1e9c..6990423 100644 --- a/src/wayland-server-core.h +++ b/src/wayla