From a13e9644b5915215a0617d2c8b279886949f136b Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 17 Oct 2011 18:28:35 +0000 Subject: - Fix some reds by implementing lcd_get_dpi(). - Use the list item centering capabilities in the plugin lib - Bump plugin ABI for the changed viewport struct (sort the API too). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30775 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 8037dab..b9c2e7c 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -517,6 +517,19 @@ static const struct plugin_api rockbox_api = { utf8encode, utf8length, utf8seek, + + /* the buflib memory management library */ + buflib_init, + buflib_available, + buflib_alloc, + buflib_alloc_ex, + buflib_alloc_maximum, + buflib_buffer_in, + buflib_buffer_out, + buflib_free, + buflib_shrink, + buflib_get_data, + buflib_get_name, /* sound */ sound_set, @@ -732,6 +745,8 @@ static const struct plugin_api rockbox_api = { #endif show_logo, tree_get_context, + tree_get_entries, + tree_get_entry_at, set_current_file, set_dirfilter, @@ -790,21 +805,6 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ - tree_get_entries, - tree_get_entry_at, - - /* the buflib memory management library */ - buflib_init, - buflib_available, - buflib_alloc, - buflib_alloc_ex, - buflib_alloc_maximum, - buflib_buffer_in, - buflib_buffer_out, - buflib_free, - buflib_shrink, - buflib_get_data, - buflib_get_name, }; int plugin_load(const char* plugin, const void* parameter) -- cgit v1.1