pub unsafe extern "C" fn osdp_cp_set_event_callback(
ctx: *mut osdp_t,
cb: cp_event_callback_t,
arg: *mut c_void,
)Expand description
@brief Set callback method for CP event notification. This callback is invoked when the CP receives an event from the PD.
@param ctx OSDP context
@param cb The callback function’s pointer
@param arg A pointer that will be passed as the first argument of cb