tools

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package main provides a code generator for Wayland virtual input protocol bindings.

This tool parses Wayland protocol XML files and generates Go bindings for them. It supports generating bindings for both virtual pointer and virtual keyboard protocols.

Usage:

go run tools/generate.go -protocol=virtual_pointer -xml=path/to/protocol.xml -output=path/to/output.go
go run tools/generate.go -protocol=virtual_keyboard -xml=path/to/protocol.xml -output=path/to/output.go

The generator creates Go interfaces and implementation stubs based on the protocol specification, making it easier to maintain consistency between the protocol and the Go bindings.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL