| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | |
| | | */ |
| | | |
| | | #ifndef _SDL_test_fuzzer_h |
| | | #define _SDL_test_fuzzer_h |
| | | #ifndef SDL_test_fuzzer_h_ |
| | | #define SDL_test_fuzzer_h_ |
| | | |
| | | #include "begin_code.h" |
| | | /* Set up for C function definitions, even when using C++ */ |
| | |
| | | * |
| | | * \returns Generated integer |
| | | */ |
| | | Uint8 SDLTest_RandomUint8(); |
| | | Uint8 SDLTest_RandomUint8(void); |
| | | |
| | | /** |
| | | * Returns a random Sint8 |
| | | * |
| | | * \returns Generated signed integer |
| | | */ |
| | | Sint8 SDLTest_RandomSint8(); |
| | | Sint8 SDLTest_RandomSint8(void); |
| | | |
| | | |
| | | /** |
| | |
| | | * |
| | | * \returns Generated integer |
| | | */ |
| | | Uint16 SDLTest_RandomUint16(); |
| | | Uint16 SDLTest_RandomUint16(void); |
| | | |
| | | /** |
| | | * Returns a random Sint16 |
| | | * |
| | | * \returns Generated signed integer |
| | | */ |
| | | Sint16 SDLTest_RandomSint16(); |
| | | Sint16 SDLTest_RandomSint16(void); |
| | | |
| | | |
| | | /** |
| | |
| | | * |
| | | * \returns Generated integer |
| | | */ |
| | | Sint32 SDLTest_RandomSint32(); |
| | | Sint32 SDLTest_RandomSint32(void); |
| | | |
| | | |
| | | /** |
| | |
| | | * |
| | | * \returns Generated integer |
| | | */ |
| | | Uint32 SDLTest_RandomUint32(); |
| | | Uint32 SDLTest_RandomUint32(void); |
| | | |
| | | /** |
| | | * Returns random Uint64. |
| | | * |
| | | * \returns Generated integer |
| | | */ |
| | | Uint64 SDLTest_RandomUint64(); |
| | | Uint64 SDLTest_RandomUint64(void); |
| | | |
| | | |
| | | /** |
| | |
| | | * |
| | | * \returns Generated signed integer |
| | | */ |
| | | Sint64 SDLTest_RandomSint64(); |
| | | Sint64 SDLTest_RandomSint64(void); |
| | | |
| | | /** |
| | | * \returns random float in range [0.0 - 1.0[ |
| | | */ |
| | | float SDLTest_RandomUnitFloat(); |
| | | float SDLTest_RandomUnitFloat(void); |
| | | |
| | | /** |
| | | * \returns random double in range [0.0 - 1.0[ |
| | | */ |
| | | double SDLTest_RandomUnitDouble(); |
| | | double SDLTest_RandomUnitDouble(void); |
| | | |
| | | /** |
| | | * \returns random float. |
| | | * |
| | | */ |
| | | float SDLTest_RandomFloat(); |
| | | float SDLTest_RandomFloat(void); |
| | | |
| | | /** |
| | | * \returns random double. |
| | | * |
| | | */ |
| | | double SDLTest_RandomDouble(); |
| | | double SDLTest_RandomDouble(void); |
| | | |
| | | /** |
| | | * Returns a random boundary value for Uint8 within the given boundaries. |
| | |
| | | * |
| | | * \returns Newly allocated random string; or NULL if length was invalid or string could not be allocated. |
| | | */ |
| | | char * SDLTest_RandomAsciiString(); |
| | | char * SDLTest_RandomAsciiString(void); |
| | | |
| | | |
| | | /** |
| | |
| | | /** |
| | | * Returns the invocation count for the fuzzer since last ...FuzzerInit. |
| | | */ |
| | | int SDLTest_GetFuzzerInvocationCount(); |
| | | int SDLTest_GetFuzzerInvocationCount(void); |
| | | |
| | | /* Ends C function definitions when using C++ */ |
| | | #ifdef __cplusplus |
| | |
| | | #endif |
| | | #include "close_code.h" |
| | | |
| | | #endif /* _SDL_test_fuzzer_h */ |
| | | #endif /* SDL_test_fuzzer_h_ */ |
| | | |
| | | /* vi: set ts=4 sw=4 expandtab: */ |