SDL Visual Test

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SDL_visualtest_harness_argparser.h
Go to the documentation of this file.
1
7 #include <SDL.h>
8 #include "SDL_visualtest_sut_configparser.h"
9 #include "SDL_visualtest_variator_common.h"
10 #include "SDL_visualtest_action_configparser.h"
11
12 #ifndef _SDL_visualtest_harness_argparser_h
13 #define _SDL_visualtest_harness_argparser_h
14
16 #define MAX_PATH_LEN 300
17
18 #define MAX_SUT_ARGS_LEN 600
19
20 /* Set up for C function definitions, even when using C++ */
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
28 typedef struct SDLVisualTest_HarnessState
29 {
31 char sutapp[MAX_PATH_LEN];
33 char sutargs[MAX_SUT_ARGS_LEN];
35 int timeout;
37 SDLVisualTest_SUTConfig sut_config;
39 SDLVisualTest_VariatorType variator_type;
41 int num_variations;
44 SDL_bool no_launch;
46 SDLVisualTest_ActionQueue action_queue;
48 char output_dir[MAX_PATH_LEN];
50 char verify_dir[MAX_PATH_LEN];
51 } SDLVisualTest_HarnessState;
52
61 int SDLVisualTest_ParseHarnessArgs(char** argv, SDLVisualTest_HarnessState* state);
62
66 void SDLVisualTest_FreeHarnessState(SDLVisualTest_HarnessState* state);
67
68 /* Ends C function definitions when using C++ */
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif /* _SDL_visualtest_harness_argparser_h */