Updated: April 19, 2023 |
De-register a handler for the specified event type and provider
#include <pips/event.h>
int pips_event_remove_handler(const pips_event_type_e type, pips_provider_t *const provider_handle, pips_event_handler_t const handler, void *user_data)
This function de-registers the given handler for the specified event type, provider, and user data. This function should be called before deleting the user data to prevent the event handler from being invoked with invalid user data. After the function call, the handler (callback) won't be invoked with the given user data when an event of the specified type is received by the specified provider.