SDL Visual Test

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SDL_visualtest_rwhelper.h
1 /* See COPYING.txt for the full license governing this code. */
8 #include <SDL_rwops.h>
9
10 #ifndef _SDL_visualtest_rwhelper_h
11 #define _SDL_visualtest_rwhelper_h
12
14 #define RWOPS_BUFFER_LEN 256
15
16 /* Set up for C function definitions, even when using C++ */
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
25 typedef struct SDLVisualTest_RWHelperBuffer
26 {
28 char buffer[RWOPS_BUFFER_LEN];
30 int buffer_pos;
32 int buffer_width;
33 } SDLVisualTest_RWHelperBuffer;
34
40 void SDLVisualTest_RWHelperResetBuffer(SDLVisualTest_RWHelperBuffer* buffer);
41
50 char SDLVisualTest_RWHelperReadChar(SDL_RWops* rw,
51 SDLVisualTest_RWHelperBuffer* buffer);
52
65 char* SDLVisualTest_RWHelperReadLine(SDL_RWops* rw, char* str, int size,
66 SDLVisualTest_RWHelperBuffer* buffer,
67 char comment_char);
68
76 int SDLVisualTest_RWHelperCountNonEmptyLines(SDL_RWops* rw,
77 SDLVisualTest_RWHelperBuffer* buffer,
78 char comment_char);
79
80 /* Ends C function definitions when using C++ */
81 #ifdef __cplusplus
82 }
83 #endif
84
85 #endif /* _SDL_visualtest_rwhelper_h */