Sync with 5.4.0
[deliverable/titan.core.git] / core / Parameters.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2015 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 #ifndef PARAMETERS_H
9 #define PARAMETERS_H
10
11 #include "Types.h"
12
13 /** @brief Reads and processes the configuration file
14
15 Calls preproc_parse_file(), then opens and parses the filenames returned.
16
17 @param file_name
18 @return 1 if successful, 0 on error
19 */
20 extern boolean process_config_file(const char *file_name);
21
22 /** @brief Parse configuration in a buffer
23
24 @param config_string configuration buffer (not necessarily 0-terminated)
25 @param string_len length of buffer
26 @return 1 if successful, 0 on error
27 */
28 extern boolean process_config_string(const char *config_string, int string_len);
29
30 extern void config_process_error_f(const char *error_str, ...)
31 __attribute__ ((__format__ (__printf__, 1, 2)));
32
33 extern void config_process_error(const char *error_str);
34
35 struct execute_list_item {
36 char *module_name;
37 char *testcase_name;
38 };
39
40 extern int execute_list_len;
41 extern execute_list_item *execute_list;
42
43 #endif
This page took 0.057936 seconds and 5 git commands to generate.