Function esp_idf_hal::sys::esp_event_handler_unregister_with
source ยท pub unsafe extern "C" fn esp_event_handler_unregister_with(
event_loop: *mut c_void,
event_base: *const i8,
event_id: i32,
event_handler: Option<unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: i32, _: *mut c_void)>,
) -> i32
Expand description
@brief Unregister a handler from a specific event loop (legacy).
This function behaves in the same manner as esp_event_handler_unregister, except the additional specification of the event loop to unregister the handler with.
@param[in] event_loop the event loop with which to unregister this handler function, must not be NULL @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
- ESP_ERR_INVALID_ARG: Invalid combination of event base and event ID
- Others: Fail