Merge pull request #439 from JupiterRider/automationEvents
#431 AutomationEventList.GetEvents method added
This commit is contained in:
commit
bb20d2da3e
1 changed files with 8 additions and 1 deletions
|
@ -176,7 +176,14 @@ type AutomationEvent struct {
|
||||||
type AutomationEventList struct {
|
type AutomationEventList struct {
|
||||||
Capacity uint32
|
Capacity uint32
|
||||||
Count uint32
|
Count uint32
|
||||||
Events *AutomationEvent
|
// Events array (c array)
|
||||||
|
//
|
||||||
|
// Use AutomationEventList.GetEvents instead (go slice)
|
||||||
|
Events *AutomationEvent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (a *AutomationEventList) GetEvents() []AutomationEvent {
|
||||||
|
return unsafe.Slice(a.Events, a.Count)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CameraMode type
|
// CameraMode type
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue