On Mon, 11 Jun 2018 15:54:17 +0800 (CST)
tugouxp  <[email protected]> wrote:

> hi folks:
>    both the client and server has structure wl_display object, is
> there any way to identificate the "wl_display" from the two?

Hi,

what do you mean by "identificate"?
Where would you need this?

If you mean the C types, whether a struct wl_display pointer is a
client or server side struct, there is no intended way to detect
between them. All the API accept either server-side or client-side
struct, there is no API that could use both. The code must always know
before-hand which one it is using.


Thanks,
pq

Attachment: pgpcVYJwdfoPl.pgp
Description: OpenPGP digital signature

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to