New upstream version 18.02
[deb_dpdk.git] / app / test-crypto-perf / cperf_test_vector_parsing.h
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  */
21 int
22 free_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  */
30 void
31 show_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  */
42 struct cperf_test_vector*
43 cperf_test_vector_get_from_file(struct cperf_options *opts);
44
45 #endif /* APP_CRYPTO_PERF_CPERF_TEST_VECTOR_PARSING_H_ */