SDL Visual Test
|
#include <SDL_stdinc.h>
#include <SDL_test.h>
#include <string.h>
#include "SDL_visualtest_action_configparser.h"
#include "SDL_visualtest_rwhelper.h"
#include "SDL_visualtest_parsehelper.h"
Functions | |
int | SDLVisualTest_EnqueueAction (SDLVisualTest_ActionQueue *queue, SDLVisualTest_Action action) |
int | SDLVisualTest_DequeueAction (SDLVisualTest_ActionQueue *queue) |
void | SDLVisualTest_InitActionQueue (SDLVisualTest_ActionQueue *queue) |
SDLVisualTest_Action * | SDLVisualTest_GetQueueFront (SDLVisualTest_ActionQueue *queue) |
int | SDLVisualTest_IsActionQueueEmpty (SDLVisualTest_ActionQueue *queue) |
void | SDLVisualTest_EmptyActionQueue (SDLVisualTest_ActionQueue *queue) |
int | SDLVisualTest_InsertIntoActionQueue (SDLVisualTest_ActionQueue *queue, SDLVisualTest_Action action) |
int | SDLVisualTest_ParseActionConfig (char *file, SDLVisualTest_ActionQueue *queue) |
Source file for the parser for action config files.
int SDLVisualTest_DequeueAction | ( | SDLVisualTest_ActionQueue * | queue) |
Remove an action from the front of the action queue pointed to by queue
.
void SDLVisualTest_EmptyActionQueue | ( | SDLVisualTest_ActionQueue * | queue) |
Dequeues all the elements in the queque pointed to by queue
.
int SDLVisualTest_EnqueueAction | ( | SDLVisualTest_ActionQueue * | queue, |
SDLVisualTest_Action | action | ||
) |
Add an action pointed to by action
to the rear of the action queue pointed to by queue
.
SDLVisualTest_Action* SDLVisualTest_GetQueueFront | ( | SDLVisualTest_ActionQueue * | queue) |
Get the action at the front of the action queue pointed to by queue
. The returned action pointer may become invalid after subsequent dequeues.
void SDLVisualTest_InitActionQueue | ( | SDLVisualTest_ActionQueue * | queue) |
Initialize the action queue pointed to by queue
.
int SDLVisualTest_InsertIntoActionQueue | ( | SDLVisualTest_ActionQueue * | queue, |
SDLVisualTest_Action | action | ||
) |
Inserts an action action
into the queue pointed to by queue
such that the times of actions in the queue increase as we move from the front to the rear.
int SDLVisualTest_IsActionQueueEmpty | ( | SDLVisualTest_ActionQueue * | queue) |
Check if the queue pointed to by queue
is empty or not.
int SDLVisualTest_ParseActionConfig | ( | char * | file, |
SDLVisualTest_ActionQueue * | queue | ||
) |
Parses an action config file with path file
and populates an action queue pointed to by queue
with actions.