Switch Evidence Serialize#

Functions for serializing switch evidence.

Functions#

void nvat_switch_evidence_array_free(nvat_switch_evidence_t **switch_evidence_array, size_t num_evidences)

nvat_rc_t nvat_switch_evidence_serialize_json(const nvat_switch_evidence_t *switch_evidence_array, size_t num_evidences, nvat_str_t *out_serialized_evidence)

Serialize the given switch evidence to JSON.

Functions#

void nvat_switch_evidence_array_free(
nvat_switch_evidence_t **switch_evidence_array,
size_t num_evidences,
)#
nvat_rc_t nvat_switch_evidence_serialize_json(
const nvat_switch_evidence_t *switch_evidence_array,
size_t num_evidences,
nvat_str_t *out_serialized_evidence,
)#

Serialize the given switch evidence to JSON.

On success, buffer will contain a null-terminated string. On failure, caller must not make assumptions about the contents of buffer.