help: is there any way to use integer 64 type in protocol?
Jason Ekstrand
jason at jlekstrand.net
Mon Apr 21 07:30:28 PDT 2014
On Sun, Apr 20, 2014 at 5:41 PM, Thiago Macieira <thiago at kde.org> wrote:
> Em dom 20 abr 2014, às 17:31:48, Jason Ekstrand escreveu:
> > Adding 64-bit types wouldn't be too hard. It would involve adding a
> > int64_t an uint64_t types to wl_argument (I'd call them U and I
> personally)
> > and adding code throughout libwayland to parse them. In terms of
> backwards
> > compatibility, it should be fine as long as you make it 100% clear that
> > your new protocol extension uses the new 64bit types and therefore
> requires
> > the newer libwayland version.
>
> That changes the size and alignment of wl_argument on 32-bit platforms. No
> can
> do until libwayland 2.0, with a binary compatibility break.
>
Yeah, you're right. Thanks for catching that. In retrospect, I should
have put a 64 bit place-holder in the union when it was first added to
ensure that it was 64 bits on both platforms. But, like you said, can't
change it now.
--Jason
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel Open Source Technology Center
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140421/26caafd4/attachment.html>
More information about the wayland-devel
mailing list