summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/devices/ttydev/ttydev_state_autogen.go
blob: 88a1cd0a68ca797f83fe78795d94a166f2ee58ed (plain)
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
// automatically generated by stateify.

package ttydev

import (
	"gvisor.dev/gvisor/pkg/state"
)

func (t *ttyDevice) StateTypeName() string {
	return "pkg/sentry/devices/ttydev.ttyDevice"
}

func (t *ttyDevice) StateFields() []string {
	return []string{}
}

func (t *ttyDevice) beforeSave() {}

// +checklocksignore
func (t *ttyDevice) StateSave(stateSinkObject state.Sink) {
	t.beforeSave()
}

func (t *ttyDevice) afterLoad() {}

// +checklocksignore
func (t *ttyDevice) StateLoad(stateSourceObject state.Source) {
}

func init() {
	state.Register((*ttyDevice)(nil))
}