fix structs alignment.

This commit is contained in:
Miroslav Šedivý 2024-09-08 15:01:31 +02:00
parent a4c1f9877f
commit d42165a5fd
3 changed files with 7 additions and 6 deletions

View file

@ -12,8 +12,8 @@ type Message struct {
type SystemInit struct {
Event string `json:"event"`
ImplicitHosting bool `json:"implicit_hosting"`
Locks map[string]string `json:"locks"`
ImplicitHosting bool `json:"implicit_hosting"`
FileTransfer bool `json:"file_transfer"`
}

View file

@ -18,14 +18,15 @@ var (
)
type Sample struct {
// buffer with encoded media
Data []byte
Length int
// timing information
Timestamp time.Time
Duration time.Duration
// metadata
DeltaUnit bool // this unit cannot be decoded independently.
// buffer length
Length int
// buffer with encoded media
Data []byte
}
type SampleListener interface {

View file

@ -147,9 +147,9 @@ type ControlKey struct {
}
type ControlTouch struct {
TouchId uint32 `json:"touch_id"`
*ControlPos
Pressure uint8 `json:"pressure"`
TouchId uint32 `json:"touch_id"`
Pressure uint8 `json:"pressure"`
}
/////////////////////////////