mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-28 18:06:20 +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 {
|
||||
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"`
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
|
|
Loading…
Add table
Reference in a new issue