[][src]Function esp_idf_bindgen::esp_event_handler_register_with

pub unsafe extern "C" fn esp_event_handler_register_with(
    event_loop: esp_event_loop_handle_t,
    event_base: esp_event_base_t,
    event_id: i32,
    event_handler: esp_event_handler_t,
    event_handler_arg: *mut c_void
) -> esp_err_t

@brief Register an event handler to a specific loop (legacy).

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

This function behaves in the same manner as esp_event_handler_register, except the additional specification of the event loop to register the handler to.

@param[in] event_loop the event loop to register this handler function to @param[in] event_base the base id of the event to register the handler for @param[in] event_id the id of the event to register the handler for @param[in] event_handler the handler function which gets called when the event is dispatched @param[in] event_handler_arg data, aside from event data, that is passed to the handler when it is called

@note the event loop library does not maintain a copy of event_handler_arg, therefore the user should ensure that event_handler_arg still points to a valid location by the time the handler gets called

@return