Skip to main content

add_comparison_call

Function add_comparison_call 

Source
pub fn add_comparison_call(
    config: &str,
    params: AddComparisonCallParams,
) -> Result<(String, Value)>
Expand description

Add a new comparison call with element list

Creates a new comparison call linking a function to a feature with associated elements (CBOM records). Note: Only one comparison call is allowed per feature.

§Arguments

  • config - Configuration JSON string
  • params - Comparison call parameters (ftype_code, cfunc_code, element_list required)

§Returns

Tuple of (modified_config, new_cfcall_record)

§Errors

  • Duplicate if a comparison call already exists for this feature
  • NotFound if function/feature/element codes don’t exist