pub unsafe extern "C" fn osdp_cp_get_capability(
ctx: *const osdp_t,
pd: c_int,
cap: *mut osdp_pd_cap,
) -> c_intExpand description
@brief Get capability associated to a function_code that the PD reports in response to osdp_CAP(0x62) command. Calling this method before the CP has had a the chance to get this information will return invalid/stale results.
@param ctx OSDP context
@param pd PD offset (0-indexed) of this PD in osdp_pd_info_t * passed to
osdp_cp_setup()
@param cap in/out; struct osdp_pd_cap pointer with osdp_pd_cap::function_code
set to the function code to get data for.
@retval 0 on success @retval -1 on failure