summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_buffer.c')
-rw-r--r--lib/skin_parser/skin_buffer.c13
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)
56#endif 56#endif
57 return retval; 57 return retval;
58} 58}
59
60
61#ifdef ROCKBOX
62/* get the number of bytes currently being used */
63size_t skin_buffer_usage(void)
64{
65 return buffer_front - buffer;
66}
67size_t skin_buffer_freespace(void)
68{
69 return SKIN_BUFFER_SIZE - skin_buffer_usage();
70}
71#endif