<div>Hi, Phillip<br></div><div><br></div><div> I was able to easily generate the xdg-shell header with wayland-scanner :)<br></div><div>I will make some tests. If I have some other question I will come back<br></div><div><br></div><div>Thanks for the help!<br></div><div>-- Felipe Ferreira da Silva<br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><br></div></div><blockquote type="cite" class="protonmail_quote"><div>-------- Original Message --------<br></div><div>Subject: Re: Who generate the headers?<br></div><div>Local Time: December 2, 2017 9:02 AM<br></div><div>UTC Time: December 2, 2017 12:02 PM<br></div><div>From: pkerling@casix.org<br></div><div>To: wayland-devel@lists.freedesktop.org <wayland-devel@lists.freedesktop.org><br></div><div>ferreiradaselva <ferreiradaselva@protonmail.com><br></div><div><br></div><div><div>Hi,<br></div><div><br></div><div>2017-12-02 (土) の 06:05 -0500 に ferreiradaselva さんは書きました:<br></div></div><blockquote><div>Hello, everyone<br></div><div><div>I'm still learning how the distribution to the access of the API<br></div><div>works. I'm making a library like GLFW/SDL2 with Wayland as one of the<br></div><div>backends.<br></div></div><div><div>I have in my system <code>/usr/include</code> the headers of my interest<br></div><div><code>wayland-client-protocol.h</code> and <code>wayland-client.h</code>. However, the<br></div><div>protocols header doesn't have the XDG Shell API, since it's just<br></div><div>recently declared stable.<br></div><div>I think there is a fundamental misunderstanding here: wayland-client-<br></div><div>protocol.h only includes the Wayland core protocol, which XDG Shell is<br></div><div>not part of. All other more-or-less-standardized stuff is in wayland-<br></div><div>protocols, which is separate. XDG Shell will (presumably) never be<br></div><div>available in wayland-client-protocol.h, also in future versions.<br></div><div><br></div><div>Only the protocol XML files are installed as part of wayland-protocols<br></div><div>(to /usr/share/wayland-protocols or similar). If you want to use them<br></div><div>in your application, you will have to call wayland-scanner and generate<br></div><div>the header and code files yourself (see below).<br></div><div><br></div><div>The questions:<br></div></div><ol><li><div>If I wanted to have access to the unstable features (could be any,<br></div><div>like XDG output, tablet, text input), could I generate the headers<br></div><div>myself and I would have access to them by just linking my sources<br></div><div>with <code>-lwayland-client</code>?<br></div><div>You have to generate the headers yourself if what you want to use is<br></div><div>not part of the core protocol, no matter whether the extension protocol<br></div><div>is stable or unstable. You also have to generate the code. Linking with<br></div><div>wayland-client is not enough as it also only contains the core protocol<br></div><div>symbols.<br></div></li><li><div>Is there some header generator available, anywhere, that is<br></div><div>recommended?<br></div><div>wayland-scanner is part of core wayland. You hvae to generate the<br></div><div>"client-header" (.h) and "code" (.c) parts out of the XML(s) you want<br></div><div>to use.<br></div><div><br></div><div>Regards,<br></div><div>Philipp<br></div></li></ol></blockquote></blockquote>