[PATCH] wayland-client: Initialize newly created wl_proxys to zero.
Pekka Paalanen
ppaalanen at gmail.com
Mon Aug 11 10:36:49 PDT 2014
On Mon, 11 Aug 2014 18:12:20 +0200
"Nils Chr. Brause" <nilschrbrause at gmail.com> wrote:
> On Mon, Aug 11, 2014 at 8:39 AM, Pekka Paalanen <ppaalanen at gmail.com> wrote
>
> > No, I do not think that is wrong, but are you not writing language
> > bindings or a wrapper library, which means you do not know how your code
> > will be used?
> >
>
> Yes, I'm writing C++ Bindings. These bindings don't expose the user_data at
> all,
> because in C++ you can assign class member functions (or even lambda
> closures) as event handlers, which have access to their class instance
> without
> the need of a user user data void pointer. Therefore, the user should not
> be able
> to mess with it. ;)
>
Which brings us back to my earlier question, now rephrased
differently: are you going to forbid using the same Wayland
connection with a 3rd party library?
If yes, you're all good. ;-)
Thanks,
pq
More information about the wayland-devel
mailing list