mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
Simplify serialization code and avoid extra copy
This commit is contained in:
@@ -11,14 +11,8 @@ type RemoteControlCmd struct {
|
||||
Password string `json:"password,omitempty"`
|
||||
Async string `json:"async,omitempty"`
|
||||
CancelAsync bool `json:"cancel_async,omitempty"`
|
||||
|
||||
single_sent bool
|
||||
}
|
||||
|
||||
func (self *RemoteControlCmd) SingleSent() bool { return self.single_sent }
|
||||
func (self *RemoteControlCmd) SetSingleSent() { self.single_sent = true }
|
||||
func (self *RemoteControlCmd) ResetSingleSent() { self.single_sent = false }
|
||||
|
||||
type EncryptedRemoteControlCmd struct {
|
||||
Version [3]int `json:"version"`
|
||||
IV string `json:"iv"`
|
||||
|
||||
Reference in New Issue
Block a user