Scanner

The wau-scanner can be used very similarly to the libwayland wayland-scanner.

lua wau-scanner.lua < my-protocol.xml > my-protocol.lua

After that you can require the created protocol through

 local wau = require("wau")
 wau:require("my-protocol")

That will make all interfaces as defined in my-protocol fields in the wau table.

Under the hood, wau:require makes use of luas normal require. That's why the search path is also the same.

By default, wau currently only loads the wayland protocol.

generated by LDoc 1.5.0 Last updated 2023-07-28 15:31:50