github.com/ttpreport/gvisor-ligolo@v0.0.0-20240123134145-a858404967ba/pkg/sentry/devices/ttydev/ttydev_state_autogen.go (about)

     1  // automatically generated by stateify.
     2  
     3  package ttydev
     4  
     5  import (
     6  	"github.com/ttpreport/gvisor-ligolo/pkg/state"
     7  )
     8  
     9  func (t *ttyDevice) StateTypeName() string {
    10  	return "pkg/sentry/devices/ttydev.ttyDevice"
    11  }
    12  
    13  func (t *ttyDevice) StateFields() []string {
    14  	return []string{}
    15  }
    16  
    17  func (t *ttyDevice) beforeSave() {}
    18  
    19  // +checklocksignore
    20  func (t *ttyDevice) StateSave(stateSinkObject state.Sink) {
    21  	t.beforeSave()
    22  }
    23  
    24  func (t *ttyDevice) afterLoad() {}
    25  
    26  // +checklocksignore
    27  func (t *ttyDevice) StateLoad(stateSourceObject state.Source) {
    28  }
    29  
    30  func init() {
    31  	state.Register((*ttyDevice)(nil))
    32  }