summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/socket_state_autogen.go
blob: 3df219247a240f79664eed5134c2548d166815ad (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
// automatically generated by stateify.

package socket

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

func (x *SendReceiveTimeout) beforeSave() {}
func (x *SendReceiveTimeout) save(m state.Map) {
	x.beforeSave()
	m.Save("send", &x.send)
	m.Save("recv", &x.recv)
}

func (x *SendReceiveTimeout) afterLoad() {}
func (x *SendReceiveTimeout) load(m state.Map) {
	m.Load("send", &x.send)
	m.Load("recv", &x.recv)
}

func init() {
	state.Register("socket.SendReceiveTimeout", (*SendReceiveTimeout)(nil), state.Fns{Save: (*SendReceiveTimeout).save, Load: (*SendReceiveTimeout).load})
}