mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
pluginlib: made local functions in static and made sure that source files include their own header file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17353 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
517aca8532
commit
a36c8f1db3
9 changed files with 23 additions and 19 deletions
|
@ -18,17 +18,18 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "plugin.h"
|
||||
#include "playback_control.h"
|
||||
|
||||
struct plugin_api* api = 0;
|
||||
struct viewport *parentvp = NULL;
|
||||
|
||||
bool prevtrack(void)
|
||||
static bool prevtrack(void)
|
||||
{
|
||||
api->audio_prev();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool play(void)
|
||||
static bool play(void)
|
||||
{
|
||||
int audio_status = api->audio_status();
|
||||
if (!audio_status && api->global_status->resume_index != -1)
|
||||
|
@ -46,13 +47,13 @@ bool play(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool stop(void)
|
||||
static bool stop(void)
|
||||
{
|
||||
api->audio_stop();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool nexttrack(void)
|
||||
static bool nexttrack(void)
|
||||
{
|
||||
api->audio_next();
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue