diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-29 12:37:48 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-29 12:37:48 +0000 |
commit | 2d31d77a8ba231cb03ec35863c4c4ce2024f6509 (patch) | |
tree | b85ca1bede3e83695619064ee9a323f0a8da1865 /lib/skin_parser/skin_buffer.h | |
parent | e436483b66a931fef6436e9cd3e69eb2b3ff1f7b (diff) | |
download | rockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.tar.gz rockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.zip |
FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27613 a1c6a512-1295-4272-9138-f99709370657
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 |