#431 AutomationEventList.GetEvents method added
This commit is contained in:
parent
b7833eeae8
commit
5268babfe0
1 changed files with 8 additions and 1 deletions
|
@ -176,9 +176,16 @@ type AutomationEvent struct {
|
||||||
type AutomationEventList struct {
|
type AutomationEventList struct {
|
||||||
Capacity uint32
|
Capacity uint32
|
||||||
Count uint32
|
Count uint32
|
||||||
|
// Events array (c array)
|
||||||
|
//
|
||||||
|
// Use AutomationEventList.GetEvents instead (go slice)
|
||||||
Events *AutomationEvent
|
Events *AutomationEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (a *AutomationEventList) GetEvents() []AutomationEvent {
|
||||||
|
return unsafe.Slice(a.Events, a.Count)
|
||||||
|
}
|
||||||
|
|
||||||
// CameraMode type
|
// CameraMode type
|
||||||
type CameraMode int32
|
type CameraMode int32
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue