Re: Protocol (scanner) proposals

2014-08-04 Thread Auke Booij
As discussed in IRC, nevermind this. I misread the header files. On 4 August 2014 01:12, Auke Booij wrote: > On 30 July 2014 20:27, Pekka Paalanen wrote: >> Actually no. Binding writers are expected to write their own code >> generator for their language, like wayland-scanner is for C. You >> ar

Re: Protocol (scanner) proposals

2014-08-03 Thread Auke Booij
On 30 July 2014 20:27, Pekka Paalanen wrote: > Actually no. Binding writers are expected to write their own code > generator for their language, like wayland-scanner is for C. You > are expected to not use the static inline generated C functions. > > All the static inline functions are not part of

Re: Protocol (scanner) proposals

2014-08-03 Thread Pekka Paalanen
On Sun, 3 Aug 2014 17:07:44 +0200 Auke Booij wrote: > >> Speaking of which, is there a reason the code samples don't show up > >> correctly in the online documentation? > > > > Which code samples exactly? > > http://wayland.freedesktop.org/docs/html/chap-Library.html > - wl_list > - wl_display_p

Re: Protocol (scanner) proposals

2014-08-03 Thread Auke Booij
On 3 August 2014 09:08, Pekka Paalanen wrote: > It was, hidden in a small paragraph in the documentation... I have to apologize, you are right. >> I guess that this is convention in C? > > [...] Thanks for your perfectly clear explanation, that does clarify it a lot. >> Speaking of which, is t

Re: Protocol (scanner) proposals

2014-08-03 Thread Pekka Paalanen
On Sat, 2 Aug 2014 15:07:19 +0200 Auke Booij wrote: > On 30 July 2014 20:27, Pekka Paalanen wrote: > > Actually no. Binding writers are expected to write their own code > > generator for their language, like wayland-scanner is for C. You > > are expected to not use the static inline generated C

Re: Protocol (scanner) proposals

2014-08-02 Thread Auke Booij
On 30 July 2014 20:27, Pekka Paalanen wrote: > Actually no. Binding writers are expected to write their own code > generator for their language, like wayland-scanner is for C. You > are expected to not use the static inline generated C functions. Okay, that makes some amount of sense. But in that

Re: Protocol (scanner) proposals

2014-07-30 Thread Pekka Paalanen
On Wed, 30 Jul 2014 15:00:55 +0200 Auke Booij wrote: > I am in the process of writing bindings to Wayland for Haskell, and > have run into some issues which I think you may be interested in > solving. ... > 2. The current wayland-scanner produces a huge amount of "static > inline" functions. In

Protocol (scanner) proposals

2014-07-30 Thread Auke Booij
I am in the process of writing bindings to Wayland for Haskell, and have run into some issues which I think you may be interested in solving. They all relate to the protocol files. 1. Haskell is a very richly typed language, which means that if two integers have different meaning (e.g. length of