[][src]Function esp_idf_bindgen::esp_event_handler_unregister

pub unsafe extern "C" fn esp_event_handler_unregister(
    event_base: esp_event_base_t,
    event_id: i32,
    event_handler: esp_event_handler_t
) -> esp_err_t

@brief Unregister a handler with the system event loop (legacy).

@note This function is obsolete and will be deprecated soon, please use esp_event_handler_instance_unregister() instead.

This function can be used to unregister a handler so that it no longer gets called during dispatch. Handlers can be unregistered for either: (1) specific events, (2) all events of a certain event base, or (3) all events known by the system event loop

This function ignores unregistration of handlers that has not been previously registered.

@param[in] event_base the base of the event with which to unregister the handler @param[in] event_id the id of the event with which to unregister the handler @param[in] event_handler the handler to unregister

@return ESP_OK success @return ESP_ERR_INVALID_ARG invalid combination of event base and event id @return others fail