SDL Visual Test
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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
34 
38 typedef struct SDLVisualTest_SUTIntRange {
40  int min;
42  int max;
44 
48 typedef struct SDLVisualTest_SUTOption {
54  char** categories;
58  SDL_bool required;
60  union {
66  char** enum_values;
67  } data;
69 
74 {
80 
92 
97 
98 /* Ends C function definitions when using C++ */
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif /* _SDL_visualtest_sut_configparser_h */