From baa070cca6d459a7c5aed81f29e4cc4f6c7410b3 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 30 Aug 2011 14:01:45 +0000 Subject: GSoC/Buflib: Enable compaction in buflib. This enables the ability to allocate (and free) memory dynamically without fragmentation, through compaction. This means allocations can move and fragmentation be reduced. Most changes are preparing Rockbox for this, which many times means adding a move callback which can temporarily disable movement when the corresponding code is in a critical section. For now, the audio buffer allocation has a central role, because it's the one having allocated most. This buffer is able to shrink itself, for which it needs to stop playback for a very short moment. For this, audio_buffer_available() returns the size of the audio buffer which can possibly be used by other allocations because the audio buffer can shrink. lastfm scrobbling and timestretch can now be toggled at runtime without requiring a reboot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30381 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index d70e5634f9..1d8413f6df 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -926,6 +926,8 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ + struct entry* (*tree_get_entries)(struct tree_context* t); + struct entry* (*tree_get_entry_at)(struct tree_context* t, int index); }; /* plugin header */ -- cgit v1.2.3