SDL Visual Test

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SDL_visualtest_variator_common.h
Go to the documentation of this file.
1 /* See COPYING.txt for the full license governing this code. */
8 #include <SDL_types.h>
9 #include "SDL_visualtest_sut_configparser.h"
10
11 #ifndef _SDL_visualtest_variator_common_h
12 #define _SDL_visualtest_variator_common_h
13
15 #define SDL_SUT_INTEGER_OPTION_TEST_STEPS 3
16
17 /* Set up for C function definitions, even when using C++ */
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
23 typedef enum SDLVisualTest_VariatorType
24 {
25 SDL_VARIATOR_NONE = 0,
26 SDL_VARIATOR_EXHAUSTIVE,
27 SDL_VARIATOR_RANDOM
28 } SDLVisualTest_VariatorType;
29
33 typedef union SDLVisualTest_SUTOptionValue
34 {
36 SDL_bool bool_value;
39 struct {
40 int value;
41 SDL_bool on;
42 } integer;
46 struct {
47 int index;
48 SDL_bool on;
49 } enumerated;
52 struct {
53 char* value;
54 SDL_bool on;
55 } string;
56 } SDLVisualTest_SUTOptionValue;
57
63 typedef struct SDLVisualTest_Variation
64 {
66 SDLVisualTest_SUTOptionValue* vars;
68 int num_vars;
69 } SDLVisualTest_Variation;
70
85 int SDLVisualTest_NextValue(SDLVisualTest_SUTOptionValue* var,
86 SDLVisualTest_SUTOption* opt);
87
98 int SDLVisualTest_MakeStrFromVariation(SDLVisualTest_Variation* variation,
99 SDLVisualTest_SUTConfig* config,
100 char* buffer, int size);
101
112 int SDLVisualTest_InitVariation(SDLVisualTest_Variation* variation,
113 SDLVisualTest_SUTConfig* config);
114
115 /* Ends C function definitions when using C++ */
116 #ifdef __cplusplus
117 }
118 #endif
119
120 #endif /* _SDL_visualtest_variator_common_h */