From 2d31d77a8ba231cb03ec35863c4c4ce2024f6509 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 29 Jul 2010 12:37:48 +0000 Subject: 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 --- lib/skin_parser/skin_buffer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/skin_parser/skin_buffer.h') 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 @@ #include #ifndef _SKIN_BUFFFER_H_ #define _SKIN_BUFFFER_H_ -void skin_buffer_init(size_t size); +void skin_buffer_init(char* buffer, size_t size); /* Allocate size bytes from the buffer */ void* skin_buffer_alloc(size_t size); /* get the number of bytes currently being used */ size_t skin_buffer_usage(void); size_t skin_buffer_freespace(void); + +/* save and restore a buffer position incase a skin fails to load */ +void skin_buffer_save_position(void); +void skin_buffer_restore_position(void); #endif -- cgit v1.2.3