mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-30 02:46:21 +02:00
fix structs alignment.
This commit is contained in:
parent
a4c1f9877f
commit
d42165a5fd
3 changed files with 7 additions and 6 deletions
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue