<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2017-02-09 7:56 GMT+01:00 Rémi Thébault <span dir="ltr"><<a href="mailto:remi.thebault@gmail.com" target="_blank">remi.thebault@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hello,<br><br></div>I've started to build new bindings to Wayland for the D programming language.<br></div>Available at <a href="http://github.com/rtbo/wayland-d" target="_blank">github.com/rtbo/wayland-d</a>. Only client protocol supported at the moment.<br></div>I come over an issue when starting to test requests. I wrote a simple program using the bindings:<br><br></div>
</blockquote></div>Sorry, premature email shoot! So,<br>I come over an issue when starting to test requests. I wrote a simple program using the bindings:<br></div><div class="gmail_extra"> - connect to display<br></div><div class="gmail_extra"> - get the registry<br></div><div class="gmail_extra"> - roundtrip<br><br></div><div class="gmail_extra">I suspect wrong marshalling of the request because during roundtrip, this message is printed:<br><br>message too short, object (2), message error(ous)<br><br></div><div class="gmail_extra">2 is the registry id, and "ous" is the signature of wl_display.error.<br></div><div class="gmail_extra">What can possibly go wrong here?<br><br></div><div class="gmail_extra">Some insights over the bindings:<br></div><div class="gmail_extra"> - I link to libwayland-client for the connection and marshalling code, but not for the main protocol interfaces objects.<br></div><div class="gmail_extra"> - the D scanner create code for initialization of wl_interface instances at program startup<br></div><div class="gmail_extra"> - wl_interfaces are wrapped in higher level WlInterface instances which act as Factory objects.<br></div><div class="gmail_extra"> - each protocol interface translates into a wrapper over a wl_proxy object, and requests translates to marshalling calls in libwayland-client.<br><br></div><div class="gmail_extra">Any help appreciated!<br></div><div class="gmail_extra">Thanks,<br></div><div class="gmail_extra">Rémi<br></div></div>