File: ttydev_state_autogen.go

package info (click to toggle)
golang-gvisor-gvisor 0.0~20221219.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 17,136 kB
  • sloc: asm: 2,860; cpp: 348; python: 89; sh: 40; makefile: 34; ansic: 21
file content (32 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
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))
}