extsessionlock

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtSessionLockManagerV1Interface = &wire.Interface{
	Name:    "ext_session_lock_manager_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "lock", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "ext_session_lock_v1"}}},
	},
}
View Source
var ExtSessionLockSurfaceV1Interface = &wire.Interface{
	Name:    "ext_session_lock_surface_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "ack_configure", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}}},
	},
	Events: []wire.MessageSpec{
		{Name: "configure", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "width", Type: wire.ArgUint}, {Name: "height", Type: wire.ArgUint}}},
	},
}
View Source
var ExtSessionLockV1Interface = &wire.Interface{
	Name:    "ext_session_lock_v1",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "get_lock_surface", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "ext_session_lock_surface_v1"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}, {Name: "output", Type: wire.ArgObject, Interface: "wl_output"}}},
		{Name: "unlock_and_destroy", Since: 1, Destructor: true},
	},
	Events: []wire.MessageSpec{
		{Name: "locked", Since: 1},
		{Name: "finished", Since: 1},
	},
}

Functions

This section is empty.

Types

type ExtSessionLockManagerV1

type ExtSessionLockManagerV1 struct {
	// contains filtered or unexported fields
}

func (*ExtSessionLockManagerV1) Base

func (obj *ExtSessionLockManagerV1) Base() *wire.Object

func (*ExtSessionLockManagerV1) Dispatch

func (obj *ExtSessionLockManagerV1) Dispatch(msg *wire.Message) error

func (*ExtSessionLockManagerV1) Handler

type ExtSessionLockManagerV1Handler

type ExtSessionLockManagerV1Handler interface {
	Destroy(obj *ExtSessionLockManagerV1) error
	Lock(obj *ExtSessionLockManagerV1, id *ExtSessionLockV1) (ExtSessionLockV1Handler, error)
}

type ExtSessionLockSurfaceV1

type ExtSessionLockSurfaceV1 struct {
	// contains filtered or unexported fields
}

func (*ExtSessionLockSurfaceV1) Base

func (obj *ExtSessionLockSurfaceV1) Base() *wire.Object

func (*ExtSessionLockSurfaceV1) Dispatch

func (obj *ExtSessionLockSurfaceV1) Dispatch(msg *wire.Message) error

func (*ExtSessionLockSurfaceV1) Handler

func (*ExtSessionLockSurfaceV1) ProtocolError

func (obj *ExtSessionLockSurfaceV1) ProtocolError(code ExtSessionLockSurfaceV1Error, format string, args ...any) error

func (*ExtSessionLockSurfaceV1) SendConfigure

func (obj *ExtSessionLockSurfaceV1) SendConfigure(serial uint32, width uint32, height uint32) error

type ExtSessionLockSurfaceV1Error

type ExtSessionLockSurfaceV1Error uint32
const (
	ExtSessionLockSurfaceV1ErrorCommitBeforeFirstAck ExtSessionLockSurfaceV1Error = 0
	ExtSessionLockSurfaceV1ErrorNullBuffer           ExtSessionLockSurfaceV1Error = 1
	ExtSessionLockSurfaceV1ErrorDimensionsMismatch   ExtSessionLockSurfaceV1Error = 2
	ExtSessionLockSurfaceV1ErrorInvalidSerial        ExtSessionLockSurfaceV1Error = 3
)

func (ExtSessionLockSurfaceV1Error) Valid

func (v ExtSessionLockSurfaceV1Error) Valid(version uint32) bool

type ExtSessionLockSurfaceV1Handler

type ExtSessionLockSurfaceV1Handler interface {
	Destroy(obj *ExtSessionLockSurfaceV1) error
	AckConfigure(obj *ExtSessionLockSurfaceV1, serial uint32) error
}

type ExtSessionLockV1

type ExtSessionLockV1 struct {
	// contains filtered or unexported fields
}

func CreateExtSessionLockV1

func CreateExtSessionLockV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ExtSessionLockV1) (ExtSessionLockV1Handler, error)) (*ExtSessionLockV1, error)

func NewExtSessionLockV1

func NewExtSessionLockV1(p wire.Peer, id wire.ObjectID, version uint32, h ExtSessionLockV1Handler) (*ExtSessionLockV1, error)

func (*ExtSessionLockV1) Base

func (obj *ExtSessionLockV1) Base() *wire.Object

func (*ExtSessionLockV1) Dispatch

func (obj *ExtSessionLockV1) Dispatch(msg *wire.Message) error

func (*ExtSessionLockV1) Handler

func (*ExtSessionLockV1) ProtocolError

func (obj *ExtSessionLockV1) ProtocolError(code ExtSessionLockV1Error, format string, args ...any) error

func (*ExtSessionLockV1) SendFinished

func (obj *ExtSessionLockV1) SendFinished() error

func (*ExtSessionLockV1) SendLocked

func (obj *ExtSessionLockV1) SendLocked() error

type ExtSessionLockV1Error

type ExtSessionLockV1Error uint32
const (
	ExtSessionLockV1ErrorInvalidDestroy     ExtSessionLockV1Error = 0
	ExtSessionLockV1ErrorInvalidUnlock      ExtSessionLockV1Error = 1
	ExtSessionLockV1ErrorRole               ExtSessionLockV1Error = 2
	ExtSessionLockV1ErrorDuplicateOutput    ExtSessionLockV1Error = 3
	ExtSessionLockV1ErrorAlreadyConstructed ExtSessionLockV1Error = 4
)

func (ExtSessionLockV1Error) Valid

func (v ExtSessionLockV1Error) Valid(version uint32) bool

type ExtSessionLockV1Handler

type ExtSessionLockV1Handler interface {
	Destroy(obj *ExtSessionLockV1) error
	GetLockSurface(obj *ExtSessionLockV1, id *ExtSessionLockSurfaceV1, surface *wayland.WlSurface, output *wayland.WlOutput) (ExtSessionLockSurfaceV1Handler, error)
	UnlockAndDestroy(obj *ExtSessionLockV1) error
}

Jump to

Keyboard shortcuts

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