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_screenshot.h
5 * Header for the screenshot API.
8 #include "SDL_visualtest_process.h"
10 #ifndef SDL_visualtest_screenshot_h_
11 #define SDL_visualtest_screenshot_h_
13 /* Set up for C function definitions, even when using C++ */
19 * Takes a screenshot of each window owned by the process \c pinfo and saves
20 * it in a file \c prefix-i.png where \c prefix is the full path to the file
21 * along with a prefix given to each screenshot.
23 * \return 1 on success, 0 on failure.
25 int SDLVisualTest_ScreenshotProcess(SDL_ProcessInfo* pinfo, char* prefix);
28 * Takes a screenshot of the desktop and saves it into the file with path
31 * \return 1 on success, 0 on failure.
33 int SDLVisualTest_ScreenshotDesktop(char* filename);
36 * Compare a screenshot taken previously with SUT arguments \c args that is
37 * located in \c test_dir with a verification image that is located in
40 * \return -1 on failure, 0 if the images were not equal, 1 if the images are equal
41 * and 2 if the verification image is not present.
43 int SDLVisualTest_VerifyScreenshots(char* args, char* test_dir, char* verify_dir);
45 /* Ends C function definitions when using C++ */
50 #endif /* SDL_visualtest_screenshot_h_ */
52 /* vi: set ts=4 sw=4 expandtab: */