Function event_from_datapacket
Defined in File events.h
Function Documentation
-
Event *event_from_datapacket(const DataPacket *packet, EventFunc func = nullptr)
Create an event from a data packet.
Allocates memory and initializes an Event structure from the provided data packet. If no function is specified, a default error handler is used.
- Parameters:
packet – Pointer to the data packet containing event parameters
func – Optional function pointer (defaults to nullptr)
- Returns:
Pointer to the allocated Event structure