summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-07-24 10:02:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-07-24 10:02:45 +0000
commit7b247093c8ae7d380e9c06ab0b82f807814a8f78 (patch)
treefbd33414ebf12c2e58c7d3b6330e3977ee9bff04
parent832369ce1998bf6b0d29e0aaaf64cf8cea1049c0 (diff)
downloadrockbox-7b247093c8ae7d380e9c06ab0b82f807814a8f78.zip
rockbox-7b247093c8ae7d380e9c06ab0b82f807814a8f78.tar.gz
rockbox-7b247093c8ae7d380e9c06ab0b82f807814a8f78.tar.bz2
rockbox-7b247093c8ae7d380e9c06ab0b82f807814a8f78.tar.xz
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
-rw-r--r--apps/plugin.c6
-rw-r--r--apps/plugin.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 2319c9d..bfa4974 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -19,6 +19,8 @@
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
+#include <atoi.h>
+#include <timefuncs.h>
#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 a9f5518..3d6859b 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) */