From 0131a1ef3a1a80080ae19f38f091176a82e48435 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 4 Dec 2010 19:24:43 +0100 Subject: [PATCH] Remove get_user_file_path for plugins --- apps/plugin.c | 1 - apps/plugin.h | 4 ---- apps/plugins/test_codec.c | 4 +--- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/plugin.c b/apps/plugin.c index 5f487b218..b3392d714 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -728,7 +728,6 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ - get_user_file_path, }; int plugin_load(const char* plugin, const void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 0119261bc..f5e2858b2 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -901,10 +901,6 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ - const char* (*get_user_file_path)(const char *path, - unsigned flags, - char* buf, - const size_t bufsize); }; /* plugin header */ diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 26d960cc8..3d0745fe1 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c @@ -80,9 +80,7 @@ static bool log_init(bool use_logfile) if (use_logfile) { log_close(); #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && !defined(SIMULATOR) - rb->get_user_file_path(ROCKBOX_DIR, NEED_WRITE|IS_FILE|FORCE_BUFFER_COPY, - logfilename, sizeof(logfilename)); - rb->create_numbered_filename(logfilename, logfilename, "test_codec_log_", ".txt", + rb->create_numbered_filename(logfilename, ROCKBOX_DIR, "test_codec_log_", ".txt", 2 IF_CNFN_NUM_(, NULL)); #else rb->create_numbered_filename(logfilename, "/", "test_codec_log_", ".txt", -- 2.11.4.GIT