osdp_cp_submit_command

Function osdp_cp_submit_command 

Source
pub unsafe extern "C" fn osdp_cp_submit_command(
    ctx: *mut osdp_t,
    pd: c_int,
    cmd: *const osdp_cmd,
) -> c_int
Expand description

@brief Submit CP commands to PD. These commands are queued to be sent to the PD at the next available opportunity. A successful return does not mean PD received it, it only means LibOSDP accepted this submission.

@param ctx OSDP context @param pd PD offset (0-indexed) of this PD in osdp_pd_info_t * passed to osdp_cp_setup() @param cmd command pointer. Must be filled by application.

@retval 0 on success @retval -1 on failure

@note This method only adds the command on to a particular PD’s command queue. The command itself can fail due to various reasons.