SDL.c (SDL_ExitProcess): unconstify its param to match its declaration.
1 /* See COPYING.txt for the full license governing this code. */
3 * \file SDL_visualtest_variators.h
5 * Header for all the variators that vary input parameters to a SUT application.
8 #include "SDL_visualtest_exhaustive_variator.h"
9 #include "SDL_visualtest_random_variator.h"
11 #ifndef SDL_visualtest_variators_h_
12 #define SDL_visualtest_variators_h_
14 /* Set up for C function definitions, even when using C++ */
20 * Struct that acts like a wrapper around the different types of variators
23 typedef struct SDLVisualTest_Variator
25 /*! Type of the variator */
26 SDLVisualTest_VariatorType type;
27 /*! union object that stores the variator */
30 SDLVisualTest_ExhaustiveVariator exhaustive;
31 SDLVisualTest_RandomVariator random;
33 } SDLVisualTest_Variator;
36 * Initializes the variator object pointed to by \c variator of type \c type
37 * with information from the config object pointed to by \c config.
39 * \return 1 on success, 0 on failure
41 int SDLVisualTest_InitVariator(SDLVisualTest_Variator* variator,
42 SDLVisualTest_SUTConfig* config,
43 SDLVisualTest_VariatorType type,
47 * Gets the next variation using the variator.
49 * \return The arguments string representing the variation on success, and
50 * NULL on failure. The pointer returned should not be freed.
52 char* SDLVisualTest_GetNextVariation(SDLVisualTest_Variator* variator);
55 * Frees any resources associated with the variator.
57 void SDLVisualTest_FreeVariator(SDLVisualTest_Variator* variator);
59 /* Ends C function definitions when using C++ */
64 #endif /* SDL_visualtest_variators_h_ */
66 /* vi: set ts=4 sw=4 expandtab: */