summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_buffer.h')
-rw-r--r--lib/skin_parser/skin_buffer.h6
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_
28void skin_buffer_init(size_t size); 28void skin_buffer_init(char* buffer, size_t size);
29/* Allocate size bytes from the buffer */ 29/* Allocate size bytes from the buffer */
30void* skin_buffer_alloc(size_t size); 30void* 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 */
33size_t skin_buffer_usage(void); 33size_t skin_buffer_usage(void);
34size_t skin_buffer_freespace(void); 34size_t skin_buffer_freespace(void);
35
36/* save and restore a buffer position incase a skin fails to load */
37void skin_buffer_save_position(void);
38void skin_buffer_restore_position(void);
35#endif 39#endif