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 { type SystemInit struct {
Event string `json:"event"` Event string `json:"event"`
ImplicitHosting bool `json:"implicit_hosting"`
Locks map[string]string `json:"locks"` Locks map[string]string `json:"locks"`
ImplicitHosting bool `json:"implicit_hosting"`
FileTransfer bool `json:"file_transfer"` FileTransfer bool `json:"file_transfer"`
} }

View file

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

View file

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