Add "data" argument to event handlers.

This commit is contained in:
Martin Preuss
2023-10-18 15:28:32 +02:00
parent f0cfbfccc4
commit c9b88f2cea
4 changed files with 8 additions and 8 deletions

View File

@@ -77,10 +77,10 @@ void AQH_EventSubscription_SetObjectId(AQH_EVENT_SUBSCRIPTION *evs, uint64_t i)
int AQH_EventSubscription_CallHandler(AQH_EVENT_SUBSCRIPTION *evs, int eventType, uint64_t objectId)
int AQH_EventSubscription_CallHandler(AQH_EVENT_SUBSCRIPTION *evs, int eventType, uint64_t objectId, double data)
{
if (evs && evs->handlerFn)
return evs->handlerFn(evs, eventType, objectId);
return evs->handlerFn(evs, eventType, objectId, data);
return 0;
}