This structure describes a media event. It consists mainly of the event type and additional data/parameters for the event. Applications can use pjmedia_event_init() to initialize this event structure with basic information about the event.
Pointer information about the source of this event. This field is provided mainly for comparison purpose so that event subscribers can check which source the event originated from. Usage of this pointer for other purpose may require special care such as mutex locking or checking whether the object is already destroyed.
Pointer information about the publisher of this event. This field is provided mainly for comparison purpose so that event subscribers can check which object published the event. Usage of this pointer for other purpose may require special care such as mutex locking or checking whether the object is already destroyed.