-
Notifications
You must be signed in to change notification settings - Fork 7
/
ipc_dummy.go
executable file
·75 lines (55 loc) · 1.33 KB
/
ipc_dummy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package client
var _ IPC = (*DummyIPC)(nil)
type DummyIPC struct{}
func (d DummyIPC) Receive() ([]ReceivedData, error) {
return []ReceivedData{}, nil
}
func (d DummyIPC) Dispatch(*ByteQueue) ([]byte, error) {
return []byte{}, nil
}
func (d DummyIPC) Workspaces() ([]Workspace, error) {
return []Workspace{}, nil
}
func (d DummyIPC) ActiveWorkspace() (Workspace, error) {
return Workspace{}, nil
}
func (d DummyIPC) Monitors() ([]Monitor, error) {
return []Monitor{}, nil
}
func (d DummyIPC) Clients() ([]Client, error) {
return []Client{}, nil
}
func (d DummyIPC) ActiveWindow() (Window, error) {
return Window{}, nil
}
func (d DummyIPC) Layers() (Layers, error) {
return Layers{}, nil
}
func (d DummyIPC) Devices() (Devices, error) {
return Devices{}, nil
}
func (d DummyIPC) Version() (Version, error) {
return Version{}, nil
}
func (d DummyIPC) Keyword(*ByteQueue) error {
return nil
}
func (d DummyIPC) Reload() error {
return nil
}
func (d DummyIPC) SetCursor(string, string) error {
return nil
}
func (d DummyIPC) Kill() error {
return nil
}
func (d DummyIPC) Splash() (string, error) {
return "", nil
}
func (d DummyIPC) GetOption(string) (string, error) {
return "", nil
}
func (d DummyIPC) CursorPos() (CursorPos, error) {
return CursorPos{}, nil
}
func (d DummyIPC) Binds() ([]Bind, error) { return []Bind{}, nil }