test: Reimplemented SDLTest_CommonUsage() to restore binary compatibility.

Fixes Bugzilla .
This commit is contained in:
Ryan C. Gordon 2020-02-12 13:09:38 -05:00
parent 0a6d80abf7
commit afb70f2681
2 changed files with 79 additions and 0 deletions

View file

@ -155,6 +155,19 @@ int SDLTest_CommonArg(SDLTest_CommonState * state, int index);
*/
void SDLTest_CommonLogUsage(SDLTest_CommonState * state, const char *argv0, const char **options);
/**
* \brief Returns common usage information
*
* You should (probably) be using SDLTest_CommonLogUsage() instead, but this
* function remains for binary compatibility. Strings returned from this
* function are valid until SDLTest_CommonQuit() is called, in which case
* those strings' memory is freed and can no longer be used.
*
* \param state The common state describing the test window to create.
* \returns String with usage information
*/
const char *SDLTest_CommonUsage(SDLTest_CommonState * state);
/**
* \brief Open test window.
*