diff options
Diffstat (limited to 'lib/skin_parser/skin_buffer.h')
-rw-r--r-- | lib/skin_parser/skin_buffer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/skin_parser/skin_buffer.h b/lib/skin_parser/skin_buffer.h index ff477da539..1698b8afb2 100644 --- a/lib/skin_parser/skin_buffer.h +++ b/lib/skin_parser/skin_buffer.h | |||
@@ -25,11 +25,15 @@ | |||
25 | #include <stdlib.h> | 25 | #include <stdlib.h> |
26 | #ifndef _SKIN_BUFFFER_H_ | 26 | #ifndef _SKIN_BUFFFER_H_ |
27 | #define _SKIN_BUFFFER_H_ | 27 | #define _SKIN_BUFFFER_H_ |
28 | void skin_buffer_init(size_t size); | 28 | void skin_buffer_init(char* buffer, size_t size); |
29 | /* Allocate size bytes from the buffer */ | 29 | /* Allocate size bytes from the buffer */ |
30 | void* skin_buffer_alloc(size_t size); | 30 | void* skin_buffer_alloc(size_t size); |
31 | 31 | ||
32 | /* get the number of bytes currently being used */ | 32 | /* get the number of bytes currently being used */ |
33 | size_t skin_buffer_usage(void); | 33 | size_t skin_buffer_usage(void); |
34 | size_t skin_buffer_freespace(void); | 34 | size_t skin_buffer_freespace(void); |
35 | |||
36 | /* save and restore a buffer position incase a skin fails to load */ | ||
37 | void skin_buffer_save_position(void); | ||
38 | void skin_buffer_restore_position(void); | ||
35 | #endif | 39 | #endif |