diff options
Diffstat (limited to 'lib/skin_parser/skin_buffer.c')
-rw-r--r-- | lib/skin_parser/skin_buffer.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_buffer.c b/lib/skin_parser/skin_buffer.c index b0910976e2..05cdc0ce03 100644 --- a/lib/skin_parser/skin_buffer.c +++ b/lib/skin_parser/skin_buffer.c @@ -56,3 +56,16 @@ void* skin_buffer_alloc(size_t size) #endif return retval; } + + +#ifdef ROCKBOX +/* get the number of bytes currently being used */ +size_t skin_buffer_usage(void) +{ + return buffer_front - buffer; +} +size_t skin_buffer_freespace(void) +{ + return SKIN_BUFFER_SIZE - skin_buffer_usage(); +} +#endif |