# SDL Visual Test: C:/Users/DELL/Work/sdlvisualtest/visualtest/include/SDL_visualtest_harness_argparser.h Source File

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SDL_visualtest_harness_argparser.h
Go to the documentation of this file.
#include <SDL.h>
#include "SDL_visualtest_sut_configparser.h"
#include "SDL_visualtest_variator_common.h"
#include "SDL_visualtest_action_configparser.h"
#ifndef _SDL_visualtest_harness_argparser_h
#define _SDL_visualtest_harness_argparser_h
#define MAX_PATH_LEN 300
#define MAX_SUT_ARGS_LEN 600
/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
extern "C" {
#endif
typedef struct SDLVisualTest_HarnessState
{
char sutapp[MAX_PATH_LEN];
char sutargs[MAX_SUT_ARGS_LEN];
int timeout;
SDLVisualTest_SUTConfig sut_config;
SDLVisualTest_VariatorType variator_type;
int num_variations;
SDL_bool no_launch;
SDLVisualTest_ActionQueue action_queue;
char output_dir[MAX_PATH_LEN];
char verify_dir[MAX_PATH_LEN];
} SDLVisualTest_HarnessState;
int SDLVisualTest_ParseHarnessArgs(char** argv, SDLVisualTest_HarnessState* state);
void SDLVisualTest_FreeHarnessState(SDLVisualTest_HarnessState* state);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}
#endif
#endif /* _SDL_visualtest_harness_argparser_h */