| Updated: October 28, 2024 |
Register a handler for the specified event type and provider
#include <pips/event.h>
int pips_event_register_handler(const pips_event_type_e type,
pips_provider_t *const provider_handle,
pips_event_handler_t const handler,
void *user_data)
This function registers a handler with the PiPS framework to ensure that the handler (callback) is invoked in response to the specified event type for the specified provider. Any number of callbacks can be registered to handle a particular event type. However, the same callback cannot be registered multiple times in a single thread for the same provider and user data combination.