# To view thetemplate cbindgen.toml file with all of the default values, visit:
#   https://github.com/eqrion/cbindgen/blob/master/template.toml
#
# See https://github.com/eqrion/cbindgen/blob/master/docs.md#cbindgentoml
# for detailed documentation of every option.

language = "C"

############## Options for Wrapping the Contents of the Header #################

after_includes = "typedef struct cli_matcher cli_matcher; typedef struct cli_ctx_tag cli_ctx;"
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
header = "/* Copyright (C) 2021-2025 Cisco Systems, Inc. and/or its affiliates. All rights reserved. */"
include_guard = "__CLAMAV_RUST_H"
includes = ["clamav.h", "matcher-ac.h", "htmlnorm.h"]
no_includes = false
sys_includes = []

[export]
exclude = []
include = [
  "cdiff::cdiff_apply",
  "cdiff::script2cdiff",
  "cvd::cvd_check",
  "cvd::cvd_unpack",
  "cvd::cvd_open",
  "cvd::cvd_verify",
  "cvd::cvd_free",
  "cvd::cvd_get_time_creation",
  "cvd::cvd_get_version",
  "cvd::cvd_get_name",
  "cvd::cvd_get_num_sigs",
  "cvd::cvd_get_min_flevel",
  "cvd::cvd_get_builder",
  "cvd::cvd_get_file_descriptor",
  "codesign::codesign_sign_file",
  "codesign::codesign_verify_file",
  "codesign::codesign_verifier_new",
  "codesign::codesign_verifier_free",
  "fuzzy_hash::fuzzy_hash_calculate_image",
  "fuzzy_hash::fuzzy_hash_load_subsignature",
  "fuzzy_hash::fuzzy_hash_check",
  "ffi_util::FFIError",
  "ffi_util::ffierror_fmt",
  "ffi_util::ffierror_free",
  "ffi_util::ffi_cstring_free",
  "logging::clrs_eprint",
  "evidence::evidence_new",
  "evidence::evidence_new_from_child",
  "evidence::evidence_add_child_evidence",
  "evidence::evidence_free",
  "evidence::evidence_render_verdict",
  "evidence::evidence_get_last_alert",
  "evidence::evidence_num_alerts",
  "evidence::evidence_num_indicators_type",
  "evidence::evidence_add_indicator",
  "evidence::evidence_remove_indicator",
  "evidence::IndicatorType",
  "scanners::scan_onenote",
  "scanners::cli_scanalz",
  "util::glob_rm",
  "util::mkdir_w32",
]

# prefix = "CAPI_"
item_types = []
renaming_overrides_prefixing = false

############## Options for How Your Rust library Should Be Parsed ##############

[parse]
parse_deps = false
# include = []
clean = false
exclude = []
extra_bindings = []

[parse.expand]
all_features = false
crates = []
default_features = true
features = []

[enum]
prefix_with_name = true
