is there any way to identificate the "wl_display" from server and client?
Pekka Paalanen
ppaalanen at gmail.com
Mon Jun 11 08:56:29 UTC 2018
On Mon, 11 Jun 2018 15:54:17 +0800 (CST)
tugouxp <13824125580 at 163.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180611/e325598f/attachment.sig>
More information about the wayland-devel
mailing list