cli: add commands to inspect clients
This commit is contained in:
parent
5e3465d861
commit
bd04b09171
12 changed files with 557 additions and 16 deletions
|
|
@ -11,6 +11,7 @@ use {
|
|||
};
|
||||
|
||||
pub const ID_SINCE: Version = Version(12);
|
||||
pub const CLIENT_ID_SINCE: Version = Version(18);
|
||||
|
||||
pub struct JayToplevel {
|
||||
pub id: JayToplevelId,
|
||||
|
|
@ -47,6 +48,15 @@ impl JayToplevel {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn send_client_id(&self) {
|
||||
if let Some(cl) = &self.toplevel.tl_data().client {
|
||||
self.client.event(ClientId {
|
||||
self_id: self.id,
|
||||
id: cl.id.raw(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
pub fn send_done(&self) {
|
||||
self.client.event(Done { self_id: self.id })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue