Commit | Line | Data |
---|---|---|
d44e3c4f | 1 | /****************************************************************************** |
2 | * Copyright (c) 2000-2016 Ericsson Telecom AB | |
3 | * All rights reserved. This program and the accompanying materials | |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
7 | * | |
8 | * Contributors: | |
9 | * Balasko, Jeno | |
10 | * Beres, Szabolcs | |
11 | * Raduly, Csaba | |
12 | * Szabo, Janos Zoltan – initial implementation | |
13 | * | |
14 | ******************************************************************************/ | |
970ed795 EL |
15 | #ifndef PARAMETERS_H |
16 | #define PARAMETERS_H | |
17 | ||
18 | #include "Types.h" | |
19 | ||
20 | /** @brief Reads and processes the configuration file | |
21 | ||
22 | Calls preproc_parse_file(), then opens and parses the filenames returned. | |
23 | ||
24 | @param file_name | |
25 | @return 1 if successful, 0 on error | |
26 | */ | |
27 | extern boolean process_config_file(const char *file_name); | |
28 | ||
29 | /** @brief Parse configuration in a buffer | |
30 | ||
31 | @param config_string configuration buffer (not necessarily 0-terminated) | |
32 | @param string_len length of buffer | |
33 | @return 1 if successful, 0 on error | |
34 | */ | |
35 | extern boolean process_config_string(const char *config_string, int string_len); | |
36 | ||
37 | extern void config_process_error_f(const char *error_str, ...) | |
38 | __attribute__ ((__format__ (__printf__, 1, 2))); | |
39 | ||
40 | extern void config_process_error(const char *error_str); | |
41 | ||
42 | struct execute_list_item { | |
43 | char *module_name; | |
44 | char *testcase_name; | |
45 | }; | |
46 | ||
47 | extern int execute_list_len; | |
48 | extern execute_list_item *execute_list; | |
49 | ||
50 | #endif |