Function libosdp_sys::osdp_cp_modify_flag
source · pub unsafe extern "C" fn osdp_cp_modify_flag(
ctx: *mut osdp_t,
pd: c_int,
flags: u32,
do_set: bool
) -> c_intExpand description
@brief Set or clear OSDP public flags
@param ctx OSDP context
@param pd PD offset (0-indexed) of this PD in osdp_pd_info_t * passed to
osdp_cp_setup()
@param flags One or more of the public flags (OSDP_FLAG_XXX) exported from
osdp.h. Any other bits will cause this method to fail.
@param do_set when true: set flags in ctx; when false: clear flags in ctx
@retval 0 on success @retval -1 on failure
@note It doesn’t make sense to call some initialization time flags during runtime. This method is for dynamic flags that can be turned on/off at runtime.