Go to index / Go to protocols

treeland_example_v1 ↗

one-line protocol summary

Replace this description with the protocol's purpose, object model, and lifecycle guarantees.

If this specification uses RFC 2119 keywords normatively, include the standard interpretation paragraph here.

Warning! This protocol is EXPERIMENTAL and under active development. It may change at any time, including in backward-incompatible ways, without incrementing the interface major version and without prior notice. No compatibility guarantees of any kind are provided. Clients and compositors must track the upstream definition in treeland-protocols and must not rely on the current interface names, requests, events, or semantics remaining stable across releases.

treeland_example_v1
treeland_example_manager_v1

Version 1

manager global

Describe what this global creates, any singleton or binding rules, and a brief high-level workflow for clients.

treeland_example_manager_v1
enum error {
    invalid_argument = 0,
}
  • invalid_argument — an invalid argument was provided
treeland_example_manager_v1
request destroy()
Destructor

    destroy the manager object

    Describe whether child objects must be destroyed first.

    treeland_example_manager_v1
    request create_example(
        id: new_id<treeland_example_object_v1>,
        surface: object<wl_surface>,
    )

      create an example object

      Describe ownership, required call scenarios, preconditions, and lifetime expectations.

      treeland_example_v1
      treeland_example_object_v1

      Version 1

      example per-object interface

      Describe the object's state, lifetime, and relation to Wayland core objects.

      treeland_example_object_v1
      enum mode {
          default = 0,
      }
      • default — default mode
      treeland_example_object_v1
      request destroy()
      Destructor

        destroy the object

        Describe any ordering constraints with related objects.

        treeland_example_object_v1
        request set_mode(
            mode: uint<mode>,
        )
        • mode — requested mode

        set pending mode

        Describe whether this is immediate or latched until commit.

        treeland_example_object_v1
        event configured(
            serial: uint,
        )
        • serial — configuration serial

        notify current state

        Describe event meaning, compositor-side trigger timing, and what the client should do next.