SDL Visual Test
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
SDL_visualtest_sut_configparser.h
Go to the documentation of this file.
1
/* See COPYING.txt for the full license governing this code. */
8
#ifndef _SDL_visualtest_sut_configparser_h
9
#define _SDL_visualtest_sut_configparser_h
10
12
#define MAX_SUTOPTION_NAME_LEN 100
13
14
#define MAX_SUTOPTION_CATEGORY_LEN 40
15
16
#define MAX_SUTOPTION_ENUMVAL_LEN 40
17
18
#define MAX_SUTOPTION_LINE_LENGTH 256
19
20
/* Set up for C function definitions, even when using C++ */
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
28
typedef
enum
{
29
SDL_SUT_OPTIONTYPE_STRING = 0,
30
SDL_SUT_OPTIONTYPE_INT,
31
SDL_SUT_OPTIONTYPE_ENUM,
32
SDL_SUT_OPTIONTYPE_BOOL
33
}
SDLVisualTest_SUTOptionType
;
34
38
typedef
struct
SDLVisualTest_SUTIntRange
{
40
int
min
;
42
int
max
;
43
}
SDLVisualTest_SUTIntRange
;
44
48
typedef
struct
SDLVisualTest_SUTOption
{
51
char
name
[
MAX_SUTOPTION_NAME_LEN
];
54
char
**
categories
;
56
SDLVisualTest_SUTOptionType
type
;
58
SDL_bool
required
;
60
union
{
63
SDLVisualTest_SUTIntRange
range
;
66
char
**
enum_values
;
67
}
data
;
68
}
SDLVisualTest_SUTOption
;
69
73
typedef
struct
SDLVisualTest_SUTConfig
74
{
76
SDLVisualTest_SUTOption
*
options
;
78
int
num_options
;
79
}
SDLVisualTest_SUTConfig
;
80
91
int
SDLVisualTest_ParseSUTConfig
(
char
* file,
SDLVisualTest_SUTConfig
* config);
92
96
void
SDLVisualTest_FreeSUTConfig
(
SDLVisualTest_SUTConfig
* config);
97
98
/* Ends C function definitions when using C++ */
99
#ifdef __cplusplus
100
}
101
#endif
102
103
#endif
/* _SDL_visualtest_sut_configparser_h */
Generated on Thu Sep 26 2013 00:18:23 for SDL Visual Test by
1.8.4