Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
1.8 kB · 70 lines
Lua
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071---@meta
---@class SessiondDevice---@field subsystem string udev subsystem, for example "drm" or "input"---@field sysname string Kernel device name, for example "card0"---@field syspath string Absolute sysfs pathlocal Device = {}
---@class SessiondSeatlocal Seat = {}
---Make this seat the default seat.---@return nilfunction Seat:default() end
---Restrict this seat to a user.---@param username string---@return nilfunction Seat:user(username) end
---Set the access group associated with this seat.---@param groupname string---@return nilfunction Seat:group(groupname) end
---Register a device matcher for this seat.---@param matcher fun(device: SessiondDevice): boolean---@return nilfunction Seat:attach(matcher) end
---Register a session matcher for this seat.---@param matcher fun(session: SessiondSession): boolean---@return nilfunction Seat:session(matcher) end
---@class SessiondSession---@field id integer Session identifier---@field uid integer User identifier---@field username string---@field class string Session class, for example "user" or "greeter"---@field vt integer|nil Virtual terminal number, if any---@field leader integer PID of the session leader---@field timestamp integer Session start timestamp---@field is_local boolean---@field remote_host string Empty for local sessions---@field active "online"|"active"|"closing"|"opening"local Session = {}
---@class SessiondSeatslocal Seats = {}
---Get an existing seat.---@param name string---@return SessiondSeatfunction Seats:get(name) end
---Create a new seat.---@param name string---@return SessiondSeatfunction Seats:create(name) end
---Set the default seat by name.---@param name string---@return nilfunction Seats:default(name) end
---@class Sessiond---@field seats SessiondSeats---@type Sessiondsessiond = {}