1/* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2016-2017 Intel Corporation 3 */ 4 5#ifndef APP_CRYPTO_PERF_CPERF_TEST_VECTOR_PARSING_H_ 6#define APP_CRYPTO_PERF_CPERF_TEST_VECTOR_PARSING_H_ 7 8#define CPERF_VALUE_DELIMITER "," 9#define CPERF_ENTRY_DELIMITER "=" 10 11/** 12 * Frees the allocated memory for test vector 13 * 14 * @param vector 15 * Destination vector test to release 16 * @param opts 17 * Test options 18 * @return 19 * 0 on success, (-1) on error. 20 */ 21int 22free_test_vector(struct cperf_test_vector *vector, struct cperf_options *opts); 23 24/** 25 * Displays data in test vector 26 * 27 * @param vector 28 * Vector to display 29 */ 30void 31show_test_vector(struct cperf_test_vector *test_vector); 32 33/** 34 * Completes test vector with data from file 35 * 36 * @param opts 37 * Test options 38 * @return 39 * NULL on error. 40 * Test vector pointer on successful. 41 */ 42struct cperf_test_vector* 43cperf_test_vector_get_from_file(struct cperf_options *opts); 44 45#endif /* APP_CRYPTO_PERF_CPERF_TEST_VECTOR_PARSING_H_ */ 46