pub unsafe extern "C" fn osdp_cp_setup(
num_pd: c_int,
info: *const osdp_pd_info_t,
) -> *mut osdp_tExpand description
@brief This method is used to setup a device in CP mode. Application must store the returned context pointer and pass it back to all OSDP functions intact.
@param num_pd Number of PDs connected to this CP. The osdp_pd_info_t * is
treated as an array of length num_pd.
@param info Pointer to info struct populated by application.
@retval OSDP Context on success @retval NULL on errors