From f3358eb20a9a07b6788fd9cf9d58cffb0e072342 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Sun, 10 Apr 2022 06:29:01 +0200 Subject: Properties plugin: Eliminate redundant Track Info code When opening an audio file from the file browser or database using the Properties plugin, it will now use existing code from the Show Track Info screen for displaying metadata. The menu option has been renamed accordingly. Change-Id: I5a824865b9f980151b91aff3c3c18ec45830a12c --- apps/plugin.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 89b8782cc7..a487f64168 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -7,7 +7,7 @@ * \/ \/ \/ \/ \/ * $Id$ * - * Copyright (C) 2002 Björn Stenberg + * Copyright (C) 2002 Björn Stenberg * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -112,6 +112,7 @@ int plugin_open(const char *plugin, const char *parameter); #include "core_alloc.h" #include "screen_access.h" #include "onplay.h" +#include "screens.h" #ifdef HAVE_ALBUMART #include "albumart.h" @@ -156,7 +157,7 @@ int plugin_open(const char *plugin, const char *parameter); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 250 +#define PLUGIN_API_VERSION 251 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -942,6 +943,8 @@ struct plugin_api { #endif void (*sys_poweroff)(void); void (*sys_reboot)(void); + bool (*browse_id3)(struct mp3entry *id3, + int playlist_display_index, int playlist_amount); }; /* plugin header */ -- cgit v1.2.3