From 7b247093c8ae7d380e9c06ab0b82f807814a8f78 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 24 Jul 2003 10:02:45 +0000 Subject: added functions for the calendar plugin, I don't increase the version since I did that just minutes ago anyway... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3876 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 6 +++++- apps/plugin.h | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/plugin.c b/apps/plugin.c index 2319c9defc..bfa497479c 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -19,6 +19,8 @@ #include #include #include +#include +#include #include "button.h" #include "lcd.h" #include "dir.h" @@ -138,7 +140,9 @@ static struct plugin_api rockbox_api = { splash, qsort, kbd_input, - mpeg_current_track, + mpeg_current_track, + atoi, + get_time }; int plugin_load(char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index a9f551860a..3d6859b0d3 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -168,6 +168,8 @@ struct plugin_api { int(*compar)(const void *, const void *)); int (*kbd_input)(char* buffer, int buflen); struct mp3entry* (*mpeg_current_track)(void); + int (*atoi)(const char *str); + struct tm* (*get_time)(void); }; /* defined by the plugin loader (plugin.c) */ -- cgit v1.2.3