Vendor the wayland
folder into your project and add the following to your odin
file:
import wl "wayland"
Nothing else, pretty standard.
You can also submodule it and import it with
import wl "wayland-odin/wayland"
If you want to use the scanner, you can do so by running the following command:
odin run wayland -i <xml-input-file> -o <output-file>
The code will be generated with package wayland
at the header. PR are accepted to do it otherwise.
- Port just enough to call wl_display_get_registry and receive the globals list
- Usable wayland-scanner that ports code to odin.
- Write obligatory cornflower blue example
- Solve shm file allocation bug that makes Hyprland crap its pants
- Generate _destroy methods that don't collide with interface 'destroy' methods, check C scanner for this
- Fix WAYLAND_DEBUG=1 crash
- Implement server side generation.
- Generate more ergonomic code maybe without cdecl procs
- Have quality enough to submit as vendor
- Do not depend on libwayland (if this goes in a really awesome fashion)