Merge pull request #439 from JupiterRider/automationEvents

#431 AutomationEventList.GetEvents method added
This commit is contained in:
Milan Nikolic 2024-10-24 07:58:18 +02:00 committed by GitHub
commit bb20d2da3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,9 +176,16 @@ type AutomationEvent struct {
type AutomationEventList struct {
Capacity uint32
Count uint32
// 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
type CameraMode int32