Function libosdp_sys::osdp_pd_set_command_callback
source · pub unsafe extern "C" fn osdp_pd_set_command_callback(
ctx: *mut osdp_t,
cb: pd_command_callback_t,
arg: *mut c_void
)Expand description
@brief Set callback method for PD command notification. This callback is invoked when the PD receives a command from the CP.
@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